File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
pyverilog/ast_code_generator Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ def visit_Ioport(self, node):
358358 'second' : '' if node .second is None else node .second .__class__ .__name__ .lower (),
359359 'name' : escape (node .first .name ),
360360 'width' : '' if node .first .width is None else self .visit (node .first .width ),
361+ 'signed' : node .first .signed or (node .second is not None and node .second .signed )
361362 }
362363 rslt = template .render (template_dict )
363364 return rslt
Original file line number Diff line number Diff line change 1- {{ first }} {% if second != '' %}{{ second }} {% endif %}{% if width != '' %}{{ width }} {% endif %}{{ name }}
1+ {{ first }} {% if second != '' %}{{ second }} {% endif %}{% if signed %}signed {% endif %}{% if width != '' %}{{ width }} {% endif %}{{ name }}
You can’t perform that action at this time.
0 commit comments