use latched readflag (recspec_decode_read "ok") instead of global one
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Nov 2021 16:12:31 +0000 (16:12 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Nov 2021 16:12:31 +0000 (16:12 +0000)
src/soc/simple/core.py

index c00298ec5479c33600f2c8a796da95b7244a33f5..825c7d4d92453eb52ced901a800a6fb0adafdf3a 100644 (file)
@@ -586,7 +586,7 @@ class NonProductionCore(ControlBase):
                 wvchk_en = Signal(len(wvchk), name="wv_chk_addr_en_"+name)
                 issue_active = Signal(name="rd_iactive_"+name)
                 # XXX combinatorial loop here
-                comb += issue_active.eq(fu_active & rf)
+                comb += issue_active.eq(fu_active & rdflag)
                 with m.If(issue_active):
                     if rfile.unary:
                         comb += wvchk_en.eq(read)