move Signals in dcache to relevant context
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Apr 2021 10:46:50 +0000 (11:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Apr 2021 10:46:50 +0000 (11:46 +0100)
src/soc/experiment/dcache.py

index cd1946b7f3ad13ebf7dcac7ba446f86a423d0771..943228f6710c7f81614e51d447689e33f36d6af7 100644 (file)
@@ -1203,8 +1203,6 @@ class DCache(Elaboratable):
         wb_in = self.wb_in
 
         req         = MemAccessRequest("mreq_ds")
-        acks        = Signal(3)
-        adjust_acks = Signal(3)
 
         req_row = Signal(ROW_BITS)
         req_idx = Signal(INDEX_BITS)
@@ -1451,6 +1449,9 @@ class DCache(Elaboratable):
 
             with m.Case(State.STORE_WAIT_ACK):
                 st_stbs_done = Signal()
+                acks        = Signal(3)
+                adjust_acks = Signal(3)
+
                 comb += st_stbs_done.eq(~r1.wb.stb)
                 comb += acks.eq(r1.acks_pending)