fhdl/specials: add Keep SynthesisDirective
This commit is contained in:
parent
71627cf9f0
commit
d77a5fc5ac
|
@ -337,3 +337,8 @@ class SynthesisDirective(Special):
|
|||
name_dict = dict((k, ns.get_name(sig)) for k, sig in directive.signals.items())
|
||||
formatted = directive.template.format(**name_dict)
|
||||
return "// synthesis " + formatted + "\n"
|
||||
|
||||
|
||||
class Keep(SynthesisDirective):
|
||||
def __init__(self, signal):
|
||||
SynthesisDirective.__init__(self, "attribute keep of {s} is true", s=signal)
|
||||
|
|
Loading…
Reference in New Issue