mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
fhdl/verilog: do not attempt to initialize instance and mem output signals
This commit is contained in:
parent
6e3b25ebb6
commit
623e8e436a
1 changed files with 6 additions and 2 deletions
|
@ -220,9 +220,13 @@ def _printmemories(f, ns, handler, clk):
|
|||
r += handler(memory, ns, clk)
|
||||
return r
|
||||
|
||||
def _printinit(f, exclude, ns):
|
||||
def _printinit(f, ios, ns):
|
||||
r = ""
|
||||
signals = list_signals(f) - exclude - list_targets(f)
|
||||
signals = list_signals(f) \
|
||||
- ios \
|
||||
- list_targets(f) \
|
||||
- list_inst_ios(f, False, True, False) \
|
||||
- list_mem_ios(f, False, True)
|
||||
if signals:
|
||||
r += "initial begin\n"
|
||||
for s in signals:
|
||||
|
|
Loading…
Reference in a new issue