From 30f1e77c1889dec9444443521cc65f1631c9f083 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 13 Jul 2012 20:21:04 +0200 Subject: [PATCH] corelogic/ReorderBuffer: do not touch empty count when issuing and reading at the same time --- migen/corelogic/buffers.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/migen/corelogic/buffers.py b/migen/corelogic/buffers.py index b788a34f..96d13aff 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) -- 2.30.2