do not overwrite parameter ra in dcache
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Apr 2021 22:03:05 +0000 (23:03 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 25 Apr 2021 22:03:05 +0000 (23:03 +0100)
src/soc/experiment/dcache.py

index 8d16c8c9a301bd8de92e91a02167d06b2d64db64..2569abb6ba7c04146db50eaf776bf453c4577f63 100644 (file)
@@ -1488,8 +1488,8 @@ cache_tags(r1.store_index)((i + 1) * TAG_WIDTH - 1 downto i * TAG_WIDTH) <=
                     # See if there is another store waiting
                     # to be done which is in the same real page.
                     with m.If(req.valid):
-                        ra = req.real_addr[0:SET_SIZE_BITS]
-                        sync += r1.real_adr[0:SET_SIZE_BITS].eq(ra)
+                        _ra = req.real_addr[0:SET_SIZE_BITS]
+                        sync += r1.real_adr[0:SET_SIZE_BITS].eq(_ra)
                         sync += r1.wb.dat.eq(req.data)
                         sync += r1.wb.sel.eq(req.byte_sel)