Skip to content

Commit

Permalink
Fix mantle.verilog regression
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardt committed Nov 6, 2019
1 parent def1a4e commit 7ff5563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magma/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse(decl):
names = decl[::2]
ports = decl[1::2]
# If name is empty, convert to the index.
names = [name if name else str(i) for i, name in enumerate(names)]
names = [name if name else i for i, name in enumerate(names)]
# Check that all ports are given as instances of Kind or Type.
if not all(isinstance(port, (Kind, Type)) for port in ports):
raise ValueError(f"Expected kinds or types, got {ports}")
Expand Down

0 comments on commit 7ff5563

Please sign in to comment.