[Libre-soc-bugs] [Bug 485] Create I-Cache from microwatt icache.vhdl

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Tue Sep 29 17:22:35 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=485

--- Comment #17 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Cole Poirier from comment #11)

> 1236                     for i in range(NUM_WAYS):
> 1237                         with m.If(i == replace_way):
> 1238                             comb += tagset.eq(cache_tags[r.store_index])
> 1239                             comb += write_tag(i, tagset, r.store_tag)
> 1240                             sync += cache_tags[r.store_index].eq(tagset)
> ```
> 
> At first I only changed line 1238 to comb, but got a nmigen error about
> trying to drive tagset from comb and sync domains, changing line 1239 to
> comb as well fixed that error.

err... errr... yes!  exactly the same pattern as with cv, a few lines above.

copy into a temp var using comb.  modify.  store back.

btw the use of write_tag there will result in some awful code but we sort that
later.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list