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

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Oct 8 19:25:25 BST 2020


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

--- Comment #60 from Cole Poirier <colepoirier at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #58)
> def wb_get(c, mem=default_mem):
> 
> never do this with a dictionary in python.
> 
> def wb_get(c, mem):
>    ...
>    ...
> 
> 
>  140     sim.add_sync_process(wrap(mmu_sim(mmu)))
>  141     sim.add_sync_process(wrap(wb_get(dcache, default_mem)))

Got it. Out of curiosity and to be a better python programmer, why is this bad
practice?

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


More information about the libre-soc-bugs mailing list