From: Sebastien Bourdeauducq Date: Fri, 13 Jul 2012 18:21:04 +0000 (+0200) Subject: corelogic/ReorderBuffer: do not touch empty count when issuing and reading at the... X-Git-Tag: 24jan2021_ls180~2099^2~858 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30f1e77c1889dec9444443521cc65f1631c9f083;p=litex.git corelogic/ReorderBuffer: do not touch empty count when issuing and reading at the same time --- 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)