[Libre-soc-dev] daily kan-ban update 03mar2021

Luke Kenneth Casson Leighton lkcl at lkcl.net
Wed Mar 3 18:02:54 GMT 2021


On Wednesday, March 3, 2021, Tobias Platen <libre-soc at platen-software.de>
wrote:
> today: working on a class RADIX that looks like this

cool.

you will also need to pass in the ISACaller itself, to be able to access
the SPRs.  also to be able to call the ISACaller.TRAP function on LD/ST
exceptions.

> class RADIX:
>     def __init__(self,mem):
>         self.mem = mem

..... (self, mem, caller)
self.caller = caller

>
>     def ld(self, address, width=8, swap=True, check_in_mem=False):
>         print("RADIX: ld from addr 0x{:x} width {:d}".format(address,
width))

perfect

>
> --
> Tobias Platen <libre-soc[at]platen-software[dot]de>
>
> _______________________________________________
> Libre-soc-dev mailing list
> Libre-soc-dev at lists.libre-soc.org
> http://lists.libre-soc.org/mailman/listinfo/libre-soc-dev
>

-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68


More information about the Libre-soc-dev mailing list