renode icon indicating copy to clipboard operation
renode copied to clipboard

Endianness translator

Open ydnatag opened this issue 2 years ago • 2 comments

I'm trying to simulate a system which has a big-endian cpu and several little-endian and big-endian peripherals. I got it working modifying the C# models and assigning them bigendianness.

In the hardware we are using, the endianness translation is done in the bus crossbar/interconnect. Is there any way to model this behavior without modifying any of the peripherals already supported by renode?

Thanks you

ydnatag avatar Sep 08 '22 18:09 ydnatag

Hi @andresdemski, that's an interesting topic.

At the moment automatic endianness translation can be achieved by marking peripheral models with the atrribute (which I assume it's what you've already tried).

We are currently looking into extending the bus implementation to support dynamic setups, though. We'll let you know once we have a working solution.

mateusz-holenko avatar Sep 13 '22 11:09 mateusz-holenko

Let me know if i can help you. I'm not good coding c# but maybe I can help with testing.

Thank you for this amazing tool!

ydnatag avatar Sep 14 '22 22:09 ydnatag

Hey, me again.

Is there any way to override that attribute or change endianess in runtime? I want to modify it at least from the REPL instantiation.

ydnatag avatar Nov 22 '22 22:11 ydnatag