Skip to content

Commit

Permalink
fhdl/verilog: call get_ports() to get default ios
Browse files Browse the repository at this point in the history
sbourdeauducq committed Aug 1, 2016
1 parent 462005f commit 8b64f86
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions migen/fhdl/verilog.py
Original file line number Diff line number Diff line change
@@ -274,11 +274,14 @@ def convert(f, ios=None, name="top",
create_clock_domains=True,
display_run=False, asic_syntax=False):
r = ConvOutput()
if not isinstance(f, _Fragment):
f = f.get_fragment()
if ios is None:
ios = set()
if hasattr(f, "get_ports"):
ios = f.get_ports()
else:
ios = set()
ios = set(ios)
if not isinstance(f, _Fragment):
f = f.get_fragment()

for cd_name in sorted(list_clock_domains(f)):
try:

0 comments on commit 8b64f86

Please sign in to comment.