mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/verilog: fix dummy signal initial event
This commit is contained in:
parent
3aee58f484
commit
7fa1cd72a8
1 changed files with 2 additions and 1 deletions
|
@ -184,7 +184,8 @@ def _printcomb(f, ns, display_run):
|
|||
syn_on = "// synthesis translate_on\n"
|
||||
dummy_s = Signal(name_override="dummy_s")
|
||||
r += syn_off
|
||||
r += "reg " + _printsig(ns, dummy_s) + " = 1'd0;\n"
|
||||
r += "reg " + _printsig(ns, dummy_s) + ";\n"
|
||||
r += "initial " + ns.get_name(dummy_s) + " <= 1'd0;\n"
|
||||
r += syn_on
|
||||
|
||||
groups = group_by_targets(f.comb)
|
||||
|
|
Loading…
Reference in a new issue