Update systemrdl-compiler to v1.19.0

The main difference in this release
(https://github.com/SystemRDL/systemrdl-compiler/releases/tag/v1.19.0)
is that FieldNode.get_property('resetsignal') will now default to
finding the nearest in-scope field reset signal if not explicitly set.
The same is true for the cpuif-signal.

Before this commit, the addmap-class searched for resetsignal and cpuif
signals and saved it for the fields to be picked up later. This code is
now not required anymore
This commit is contained in:
Dennis Potter 2021-08-15 11:46:40 -07:00
parent 1d50b2b457
commit fd75e4c84c
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF
3 changed files with 3 additions and 50 deletions

View File

@ -0,0 +1 @@
systemrdl-compiler==1.19.0

View File

@ -25,9 +25,6 @@ class AddrMap(Component):
# Check if global resets are defined
glbl_settings = dict()
(glbl_settings['field_reset'], glbl_settings['cpuif_reset']) = \
self.__process_global_resets()
# Set defaults so that some of the common component methods work
self.total_dimensions = 0
self.total_array_dimensions = []
@ -249,44 +246,6 @@ class AddrMap(Component):
self.rtl_header.append(genvars)
def __process_global_resets(self):
field_reset_list = \
[x for x in self.obj.signals() if x.get_property('field_reset')]
cpuif_reset_list = \
[x for x in self.obj.signals() if x.get_property('cpuif_reset')]
if field_reset_list:
rst_name = field_reset_list[0].inst_name
self.logger.info("Found field_reset signal '{}'".format(rst_name))
# Save to set to generate input
self.resets.add(rst_name)
# Save position 0 of list
field_reset_item = field_reset_list[0]
else:
field_reset_item = None
if cpuif_reset_list:
rst_name = cpuif_reset_list[0].inst_name
self.logger.info("Found cpuif_reset signal '{}'".format(rst_name))
# Save to set to generate input
self.resets.add(rst_name)
# Save position 0 of list
cpuif_reset_item = cpuif_reset_list[0]
else:
cpuif_reset_item = None
# Method is only called once on a global level. Otherwise, process_reset_signal
# is called several times to calculate the dictionary, although it will always
# return the same result.
field_reset = AddrMap.process_reset_signal(field_reset_item)
cpuif_reset = AddrMap.process_reset_signal(cpuif_reset_item)
return (field_reset, cpuif_reset)
def get_package_names(self) -> set():
names = set()

View File

@ -980,15 +980,8 @@ class Field(Component):
# Determine resets. This includes checking for async/sync resets,
# the reset value, and whether the field actually has a reset
self.rst = dict()
reset_signal = obj.get_property("resetsignal")
if reset_signal:
self.rst = Field.process_reset_signal(reset_signal)
else:
# Only use global reset (if present) if no local reset is set
self.rst = glbl_settings['field_reset']
self.rst = Field.process_reset_signal(
obj.get_property("resetsignal"))
self.resets.add(self.rst['name'])