read last row from r.wb.adr not r.req_adr in icache
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 12 Mar 2022 13:22:15 +0000 (13:22 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 12 Mar 2022 13:22:15 +0000 (13:22 +0000)
src/soc/experiment/icache.py

index 5523c50ca0fd3b1e0b7a7dcf5d30978db4fd77fe..02b54a03932f56d151b6c553950b3d4385341d15 100644 (file)
@@ -704,7 +704,7 @@ class ICache(FetchUnitInterface, Elaboratable, ICacheConfig):
         # If we are still sending requests, was one accepted?
         with m.If(~bus.stall & r.wb.stb):
             # That was the last word? We are done sending.  Clear stb
-            with m.If(self.is_last_row_addr(r.req_adr, r.end_row_ix)):
+            with m.If(self.is_last_row_addr(r.wb.adr, r.end_row_ix)):
                 sync += Display("IS_LAST_ROW_ADDR r.wb.addr:%x "
                          "r.end_row_ix:%x r.wb.stb:%x",
                          r.wb.adr, r.end_row_ix, r.wb.stb)