[Libre-soc-bugs] [Bug 450] Create MMU from microwatt mmu.vhdl

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Aug 14 18:33:43 BST 2020


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

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

> For example from what I'm struggling to translate in dcache.vhdl:
> ```
> # Number of ways
> NUM_WAYS     =  4

that's a parameter to the class (i'm assuming you've called it Dcache
   def __init__(self, NUM_WAYS=4)
      self.NUM_WAYS=4

> How should I translate `type cache_tags_set_t is array(way_t) of
> cache_tag_t;` into nmigen?

you don't.  manually substitute it.  it's a "type".

whenever you see "cache_tags_set_t", replace it with Array(....)

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


More information about the libre-soc-bugs mailing list