Replies: 7 comments 7 replies
-
There's two major parts to this; support in the assembler and support in a/the instruction model(s). The assembler, as it stands now, should be generalized to both variable register and instruction length. However, I've only really tested/worked with variable register length (for supporting RV32 and RV64). I have a lot on my plate at the moment, so it is not something that would be on the top of my priority list. I'd be open to look into the assembler support if someone volunteers for taking a look at the processor-model side of things 👍 . |
Beta Was this translation helpful? Give feedback.
-
I am looking into adding support for the C extension in the assembler, at the moment. There's some larger changes that needs to be made to the assembler/disassembler infrastructure to be able to handle mixed instruction widths. |
Beta Was this translation helpful? Give feedback.
-
I am studying ISA and I believe that modifying the decoder and Imm blocks to support the modified instructions is not that complex. I believe that keeping RVC support always on will not influence code simulation without 16-bit instructions. I plan to start implementing the c.nop statement initially. |
Beta Was this translation helpful? Give feedback.
-
The https://github.com/mortbopet/Ripes/tree/c_ext branch contains preliminary support for a few of the compressed instructions: Ripes/src/assembler/rv_c_ext.h Lines 30 to 35 in 957eb95 There remains a few issues wrt. the disassembled view in both the editor and processor tab. But, you should be able to write Let me know if it works for you - hopefully it'll make your experimentation a bit easier! |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help, of course it will make it much more easier. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I've added #125 to track the progress of all of this; feel free to raise new issues and add them into that tracking issue. |
Beta Was this translation helpful? Give feedback.
-
First of all, thank you for your work at Ripes which is an excellent and didactic simulator.
My question is what is the possibility and difficulty of adding support for C extension (Compressed Instructions) in Ripes?
Beta Was this translation helpful? Give feedback.
All reactions