From 67633f3fb388eda62ec932f46f8814b8905f77d8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 25 Apr 2021 23:03:05 +0100 Subject: [PATCH] do not overwrite parameter ra in dcache --- src/soc/experiment/dcache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 8d16c8c9..2569abb6 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -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) -- 2.30.2