# if not in stall condition, update the temporary register
with m.If(self.p.o_ready): # not stalled
m.d.sync += eq(r_data, result) # update buffer
# if not in stall condition, update the temporary register
with m.If(self.p.o_ready): # not stalled
m.d.sync += eq(r_data, result) # update buffer