YosysHQ / picorv32

PicoRV32 - A Size-Optimized RISC-V CPU
ISC License
3.08k stars 748 forks source link

makehex.py for compressed instructions #206

Open vivh3 opened 2 years ago

vivh3 commented 2 years ago

When I am compiling using RV32IM, running firmware/makehex.py to create a hex file works perfectly to load into my FPGA's memory through $readmemh. However, when I am compiling using RV32IMC, due to instructions being both 16 or 32 bits, running makehex.py yields machine code that is out of order. How may one produce the hex file correctly when using the RV32 compressed instruction set?