Skip to content

Commit e4aa048

Browse files
committed
ast_code_generator/codegen.py: visit_width returns always empty text if the width is 1. However the width explicitly defined as 1, it should return [0:0]. This bug is fixed.
1 parent 511f39c commit e4aa048

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pyverilog/ast_code_generator/codegen.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def visit_Width(self, node):
116116
'lsb' : self.visit(node.lsb),
117117
}
118118
rslt = template.render(template_dict)
119-
if rslt == '[0:0]': return ''
120119
return rslt
121120

122121
def visit_Length(self, node):

0 commit comments

Comments
 (0)