[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:56:18 BST 2020


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

--- Comment #48 from Cole Poirier <colepoirier at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #47)
> (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(....)

Sorry that's not that helpful, can you expand on this. As of right now what I'm
interpreting is that any type that contains the keyword array() in vhdl should
be translated into an empty array? Well actually that's not what I'm
understanding, I'm unable to reach any useful conclusions from what you've
instructed here.

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


More information about the libre-soc-bugs mailing list