From 6e8ebe521cfe2b4e3f9e63e29ba9bb8d02bddddf Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 25 Apr 2021 11:55:31 +0100 Subject: [PATCH] add TODO comment in dcache --- src/soc/experiment/dcache.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/soc/experiment/dcache.py b/src/soc/experiment/dcache.py index 943228f6..a12237a1 100644 --- a/src/soc/experiment/dcache.py +++ b/src/soc/experiment/dcache.py @@ -1258,6 +1258,11 @@ class DCache(Elaboratable): with m.If(i == replace_way): ct = Signal(TAG_RAM_WIDTH) comb += ct.eq(cache_tags[r1.store_index]) + """ +TODO: check this +cache_tags(r1.store_index)((i + 1) * TAG_WIDTH - 1 downto i * TAG_WIDTH) <= + (TAG_WIDTH - 1 downto TAG_BITS => '0') & r1.reload_tag; + """ comb += ct.word_select(i, TAG_WIDTH).eq(r1.reload_tag) sync += cache_tags[r1.store_index].eq(ct) sync += r1.store_way.eq(replace_way) -- 2.30.2