Skip to content

Commit 078491c

Browse files
committed
from_verilog is updated: A bug of importing Case object is fixed.
1 parent 4218b2c commit 078491c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

veriloggen/from_verilog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def visit_CasexStatement(self, node):
618618
return case
619619

620620
def visit_Case(self, node):
621-
condition = tuple([ self.visit(c) for c in node.cond ])
621+
condition = tuple([ self.visit(c) for c in node.cond ]) if node.cond else [ None ]
622622
statement = to_tuple(self.visit(node.statement))
623623
when = vtypes.When(*condition)
624624
when = when(*statement)

0 commit comments

Comments
 (0)