Skip to content

Commit d77a5fc

Browse files
committedJun 23, 2015
fhdl/specials: add Keep SynthesisDirective
1 parent 71627cf commit d77a5fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

Diff for: ‎migen/fhdl/specials.py

+5
Original file line numberDiff line numberDiff line change
@@ -337,3 +337,8 @@ def emit_verilog(directive, ns, add_data_file):
337337
name_dict = dict((k, ns.get_name(sig)) for k, sig in directive.signals.items())
338338
formatted = directive.template.format(**name_dict)
339339
return "// synthesis " + formatted + "\n"
340+
341+
342+
class Keep(SynthesisDirective):
343+
def __init__(self, signal):
344+
SynthesisDirective.__init__(self, "attribute keep of {s} is true", s=signal)

0 commit comments

Comments
 (0)
Please sign in to comment.