From: Luke Kenneth Casson Leighton Date: Sun, 25 Apr 2021 10:55:31 +0000 (+0100) Subject: add TODO comment in dcache X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e8ebe521cfe2b4e3f9e63e29ba9bb8d02bddddf;p=soc.git add TODO comment in dcache --- 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)