Commit graph

8 commits

Author SHA1 Message Date
Sean Cross
5c52fbd522 emulation: fix renode compatibility for peripherals
Many of the devicse have changed from `uint` to `ulong`, so forward-port
the peripherals to work with the new format.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-04-06 10:48:45 +08:00
Sean Cross
d645f00d5b emulation: timer0: adapt timer0 to custom precursor
Precursor has a custom TIMER0 module that is different from other LiteX
timers. Adapt the Renode model to match the hardware.

Signed-off-by: Sean Cross <sean@xobs.io>
2023-01-30 22:15:01 +08:00
Sean Cross
153736810b Revert "renode: remove custom LiteX_Timer_32"
The custom litex timer is more custom than we thought.

This reverts commit 46fab8cbc8.
2023-01-30 22:15:01 +08:00
Sean Cross
46fab8cbc8 renode: remove custom LiteX_Timer_32
When we started this project, all Renode Litex modules were 8-bits, and
we had to custom-make a 32-bit timer module. However, in the interim,
upstream has grown a 32-bit variant of this timer. As of this writing,
this change was made two years ago.

Remove our custom variant and use the upstream version instead.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-10-21 08:40:10 +08:00
Sean Cross
4b3d1503e7 renode: place all peripherals under "Betrusted" ns
Give a "Betrusted" namespace to all of the peripherals. This will enable
us to upstream various modules without breaking compatibility with our
own versions of these peripherals.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-10-20 22:19:40 +08:00
Sean Cross
2979f4453f emulation: ensure peripherals are reset
Add a `Reset()` call to many more peripherals to ensure they are reset
when the board is reset.

Signed-off-by: Sean Cross <sean@xobs.io>
2022-04-21 10:18:35 +08:00
Sean Cross
62cb867ad5 emulation: litex_timer_32: remove dead code
Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 17:30:58 +08:00
Sean Cross
8b57b8c36b emulation: add 32-bit litex timer
Litex uses 32-bit CSRs, so add a version of the litex timer module that
uses 32-bit CSRs.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-03-10 16:41:07 +08:00