mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-11-13 02:53:37 +00:00
Fix assignment of overflow to increment input of counter
This commit is contained in:
parent
fd75e4c84c
commit
1d5bc8b75e
@ -205,7 +205,7 @@ class Component():
|
||||
self.ports['input'][obj.inst_name] =\
|
||||
("logic" if obj.width == 1 else 'logic [{}:0]'.format(obj.width), [])
|
||||
else:
|
||||
name.append('__')
|
||||
name.append('_')
|
||||
name.append(obj.name)
|
||||
|
||||
name.append(split_name[1])
|
||||
|
@ -426,11 +426,15 @@ class Field(Component):
|
||||
)
|
||||
)
|
||||
|
||||
if incr.width > 0:
|
||||
self.logger.error("Increment signal '{}' is wider than 1-bit. "\
|
||||
"This might result in unwanted behavior and "\
|
||||
"will also cause Lint-errors.".format(
|
||||
incr.inst_name))
|
||||
try:
|
||||
if incr.width > 0:
|
||||
self.logger.error("Increment signal '{}' is wider than 1-bit. "\
|
||||
"This might result in unwanted behavior and "\
|
||||
"will also cause Lint-errors.".format(
|
||||
incr.inst_name))
|
||||
except AttributeError:
|
||||
# 'PropRef_overflow' object has no attribute 'width'
|
||||
pass
|
||||
else:
|
||||
# Tie signal to 0
|
||||
self.rtl_footer.append(
|
||||
|
Loading…
Reference in New Issue
Block a user