corelogic/ReorderBuffer: do not touch empty count when issuing and reading at the...
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 13 Jul 2012 18:21:04 +0000 (20:21 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Fri, 13 Jul 2012 18:21:04 +0000 (20:21 +0200)
migen/corelogic/buffers.py

index b788a34fbf1a5b2d51a14c5463930d08ec8b1803..96d13affa2879a56ba083df8a602f0d044af0d2a 100644 (file)
@@ -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)