[Libre-soc-dev] daily kan-ban update 03may2021
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Mon May 3 19:17:06 BST 2021
On Monday, May 3, 2021, Tobias Platen <libre-soc at platen-software.de> wrote:
> today: unit tests dcache ld/st, maybe error handling.
> For the first unit test I was thinking about using a large rom
> implemented as a python directory.
you probably mean dictionary.
> After that a read/write test could be done.
it _should_ be possible to base it off of the rom one. you will have to
check in TestRunner if the extra wb sim process does read/write.
can it do write?
no it can't, only read. that will need sorting, and carefully: probably
the first thing to do.
have to bear in mind, the write must respect the "sel" bits. and, the
result dictionary might not have a value in it.
so use this:
val = wb.data.get(addr, 0)
do NOT use wb.data[addr]
then use the bits of sel as a bitmask, one per byte, and update val.
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68
More information about the Libre-soc-dev