From f115426371727c0ef5222a8877b2f99c35d1c703 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 22 May 2019 20:43:35 +0100 Subject: [PATCH] invert write pending before use --- src/scoreboard/fn_unit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scoreboard/fn_unit.py b/src/scoreboard/fn_unit.py index 886c8cf2..a0d31715 100644 --- a/src/scoreboard/fn_unit.py +++ b/src/scoreboard/fn_unit.py @@ -163,7 +163,7 @@ class FnUnit(Elaboratable): # readable output signal g_rd = Signal(self.reg_width, reset_less=True) ro = Signal(reset_less=True) - m.d.comb += g_rd.eq(self.g_wr_pend_i & self.rd_pend_o) + m.d.comb += g_rd.eq(~self.g_wr_pend_i & self.rd_pend_o) m.d.comb += ro.eq(~g_rd.bool()) m.d.comb += self.readable_o.eq(ro) -- 2.30.2