Fix external-register bug where the sw_rd-wire is missing

This was introduced in dc37c879 because sw_rd-wires got removed
here for registers that don't need it.
This commit is contained in:
Dennis Potter 2021-10-06 23:39:04 -07:00
parent 57d8050d56
commit ed08d4bd35
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -1235,6 +1235,10 @@ class Field(Component):
self.properties['sw_wr'] = obj.get_property('sw') in (AccessType.rw, AccessType.w) self.properties['sw_wr'] = obj.get_property('sw') in (AccessType.rw, AccessType.w)
self.properties['sw_rd'] = obj.get_property('sw') in (AccessType.rw, AccessType.r) self.properties['sw_rd'] = obj.get_property('sw') in (AccessType.rw, AccessType.r)
# In case of an external register, a wire to indicate a read
# is always required
self.properties['sw_rd_wire'] = self.config['external'] and self.properties['sw_rd']
# Save dimensions of unpacked dimension # Save dimensions of unpacked dimension
self.array_dimensions = array_dimensions self.array_dimensions = array_dimensions
self.total_array_dimensions = array_dimensions self.total_array_dimensions = array_dimensions