missed setting of r0_full to zero in dcache. not encountered as
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Jan 2022 15:19:00 +0000 (15:19 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Jan 2022 15:19:00 +0000 (15:19 +0000)
a bug but would have done in future

src/soc/experiment/dcache.py

index 3d06ef9bb6899f0ca5d3cfd1e9022a5364565a2d..ee6cc5cab58fab5dfafbc42a5864033f7c29192e 100644 (file)
@@ -747,6 +747,7 @@ class DCache(Elaboratable):
             comb += r.mmu_req.eq(0)
             comb += r.d_valid.eq(0)
 
+        sync += r0_full.eq(0)
         with m.If((~r1.full & ~d_in.hold) | ~r0_full):
             sync += r0.eq(r)
             sync += r0_full.eq(r.req.valid)