fhdl/verilog: Only collect IOs when ios set is empty.

This commit is contained in:
Florent Kermarrec 2021-10-25 17:17:50 +02:00
parent 7662ec5531
commit 36b26006a4
1 changed files with 4 additions and 3 deletions

View File

@ -500,9 +500,10 @@ def convert(f, ios=set(), name="top", platform=None,
# Lower basics (for basics included in specials).
f = lower_basics(f)
# IOs collection.
if platform is not None:
ios.update(platform.constraint_manager.get_io_signals())
# IOs collection (when not specified).
if len(ios) == 0:
assert platform is not None
ios = platform.constraint_manager.get_io_signals()
# IOs backtrace/naming.
for io in sorted(ios, key=lambda x: x.duid):