read_buffering & write_buffering: get_trigger's accesswidth and regwidth should be taken from trigger when trigger is of RegNode type, not from node
This commit is contained in:
committed by
Alex Mykyta
parent
be8d84bba0
commit
cf2be63c20
@@ -37,8 +37,8 @@ class ReadBuffering:
|
|||||||
if isinstance(trigger, RegNode):
|
if isinstance(trigger, RegNode):
|
||||||
# Trigger is a register.
|
# Trigger is a register.
|
||||||
# trigger when lowermost address of the register is written
|
# trigger when lowermost address of the register is written
|
||||||
regwidth = node.get_property('regwidth')
|
regwidth = trigger.get_property('regwidth')
|
||||||
accesswidth = node.get_property('accesswidth')
|
accesswidth = trigger.get_property('accesswidth')
|
||||||
strb_prefix = self.exp.dereferencer.get_access_strobe(trigger, reduce_substrobes=False)
|
strb_prefix = self.exp.dereferencer.get_access_strobe(trigger, reduce_substrobes=False)
|
||||||
|
|
||||||
if accesswidth < regwidth:
|
if accesswidth < regwidth:
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ class WriteBuffering:
|
|||||||
if isinstance(trigger, RegNode):
|
if isinstance(trigger, RegNode):
|
||||||
# Trigger is a register.
|
# Trigger is a register.
|
||||||
# trigger when uppermost address of the register is written
|
# trigger when uppermost address of the register is written
|
||||||
regwidth = node.get_property('regwidth')
|
regwidth = trigger.get_property('regwidth')
|
||||||
accesswidth = node.get_property('accesswidth')
|
accesswidth = trigger.get_property('accesswidth')
|
||||||
strb_prefix = self.exp.dereferencer.get_access_strobe(trigger, reduce_substrobes=False)
|
strb_prefix = self.exp.dereferencer.get_access_strobe(trigger, reduce_substrobes=False)
|
||||||
|
|
||||||
if accesswidth < regwidth:
|
if accesswidth < regwidth:
|
||||||
|
|||||||
Reference in New Issue
Block a user