add back in rd-flag qualification into fn unit
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 May 2019 11:34:31 +0000 (12:34 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 16 May 2019 11:34:31 +0000 (12:34 +0100)
src/scoreboard/fn_unit.py

index c8fc8d76e80d35023d0967034e303272588f9e96..fc05a9af3c198583b46ae3dc546c516a91ae9f72 100644 (file)
@@ -165,7 +165,7 @@ class FnUnit(Elaboratable):
         ro = Signal(reset_less=True)
         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)
+        m.d.comb += self.readable_o.eq(ro & rd_l.q)
 
         # writable output signal
         g_wr_v = Signal(self.reg_width, reset_less=True)