Revert "read last row from r.wb.adr not r.req_adr in icache"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 12 Mar 2022 14:43:19 +0000 (14:43 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 12 Mar 2022 14:43:19 +0000 (14:43 +0000)
This reverts commit 1bcb90676398c8fa0c309c3c7ed3c9ef306c577e.

src/soc/experiment/icache.py

index 02b54a03932f56d151b6c553950b3d4385341d15..5523c50ca0fd3b1e0b7a7dcf5d30978db4fd77fe 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.wb.adr, r.end_row_ix)):
+            with m.If(self.is_last_row_addr(r.req_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)