mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-22 15:08:39 +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] =\
|
self.ports['input'][obj.inst_name] =\
|
||||||
("logic" if obj.width == 1 else 'logic [{}:0]'.format(obj.width), [])
|
("logic" if obj.width == 1 else 'logic [{}:0]'.format(obj.width), [])
|
||||||
else:
|
else:
|
||||||
name.append('__')
|
name.append('_')
|
||||||
name.append(obj.name)
|
name.append(obj.name)
|
||||||
|
|
||||||
name.append(split_name[1])
|
name.append(split_name[1])
|
||||||
|
@ -426,11 +426,15 @@ class Field(Component):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
if incr.width > 0:
|
if incr.width > 0:
|
||||||
self.logger.error("Increment signal '{}' is wider than 1-bit. "\
|
self.logger.error("Increment signal '{}' is wider than 1-bit. "\
|
||||||
"This might result in unwanted behavior and "\
|
"This might result in unwanted behavior and "\
|
||||||
"will also cause Lint-errors.".format(
|
"will also cause Lint-errors.".format(
|
||||||
incr.inst_name))
|
incr.inst_name))
|
||||||
|
except AttributeError:
|
||||||
|
# 'PropRef_overflow' object has no attribute 'width'
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
# Tie signal to 0
|
# Tie signal to 0
|
||||||
self.rtl_footer.append(
|
self.rtl_footer.append(
|
||||||
|
Loading…
Reference in New Issue
Block a user