diff --git a/migen/corelogic/buffers.py b/migen/corelogic/buffers.py index b788a34fb..96d13affa 100644 --- a/migen/corelogic/buffers.py +++ b/migen/corelogic/buffers.py @@ -77,4 +77,11 @@ class ReorderBuffer: ) ] - return Fragment(comb, sync) \ No newline at end of file + # do not touch empty count when issuing and reading at the same time + sync += [ + If(self.issue & self.can_issue & self.read & self.can_read, + self._empty_count.eq(self._empty_count) + ) + ] + + return Fragment(comb, sync)