fhdl/verilog: Remove reg_initialization (always enabled in LiteX).
This commit is contained in:
parent
84e8fd0f9e
commit
f692f50d06
|
@ -328,8 +328,7 @@ def _list_comb_wires(f):
|
||||||
r |= g[0]
|
r |= g[0]
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def _print_module(f, ios, name, ns, attr_translate,
|
def _print_module(f, ios, name, ns, attr_translate):
|
||||||
reg_initialization):
|
|
||||||
sigs = list_signals(f) | list_special_ios(f, ins=True, outs=True, inouts=True)
|
sigs = list_signals(f) | list_special_ios(f, ins=True, outs=True, inouts=True)
|
||||||
special_outs = list_special_ios(f, ins=False, outs=True, inouts=True)
|
special_outs = list_special_ios(f, ins=False, outs=True, inouts=True)
|
||||||
inouts = list_special_ios(f, ins=False, outs=False, inouts=True)
|
inouts = list_special_ios(f, ins=False, outs=False, inouts=True)
|
||||||
|
@ -367,10 +366,7 @@ def _print_module(f, ios, name, ns, attr_translate,
|
||||||
if sig in wires:
|
if sig in wires:
|
||||||
r += "wire " + _print_signal(ns, sig) + ";\n"
|
r += "wire " + _print_signal(ns, sig) + ";\n"
|
||||||
else:
|
else:
|
||||||
if reg_initialization:
|
r += "reg " + _print_signal(ns, sig) + " = " + _print_expression(ns, sig.reset)[0] + ";\n"
|
||||||
r += "reg " + _print_signal(ns, sig) + " = " + _print_expression(ns, sig.reset)[0] + ";\n"
|
|
||||||
else:
|
|
||||||
r += "reg " + _print_signal(ns, sig) + ";\n"
|
|
||||||
r += "\n"
|
r += "\n"
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
@ -497,7 +493,6 @@ def convert(f, ios=set(), name="top",
|
||||||
special_overrides = dict(),
|
special_overrides = dict(),
|
||||||
attr_translate = DummyAttrTranslate(),
|
attr_translate = DummyAttrTranslate(),
|
||||||
create_clock_domains = True,
|
create_clock_domains = True,
|
||||||
reg_initialization = True,
|
|
||||||
dummy_signal = True,
|
dummy_signal = True,
|
||||||
blocking_assign = False,
|
blocking_assign = False,
|
||||||
regular_comb = True):
|
regular_comb = True):
|
||||||
|
@ -565,7 +560,7 @@ def convert(f, ios=set(), name="top",
|
||||||
verilog = generated_banner("//")
|
verilog = generated_banner("//")
|
||||||
|
|
||||||
# Module Top.
|
# Module Top.
|
||||||
verilog += _print_module(f, ios, name, ns, attr_translate, reg_initialization=reg_initialization)
|
verilog += _print_module(f, ios, name, ns, attr_translate)
|
||||||
|
|
||||||
# Combinatorial Logic.
|
# Combinatorial Logic.
|
||||||
if regular_comb:
|
if regular_comb:
|
||||||
|
|
Loading…
Reference in New Issue