mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-22 15:08:39 +00:00
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:
parent
57d8050d56
commit
ed08d4bd35
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user