I'm working on a 32-bit RISC-V CPU in Logisim, like always i'm using CustomASM for the assembler to write code.
but i somehow broke it again.
customasm v0.11.9 (2021-05-09, x86_64-pc-windows-gnu)
assembling `Z:\Logisim\RISC-V\CASM\Testing.RVA`...
thread 'main' panicked at 'slice index starts at 5 but ends at 4', src/syntax/parser.rs:138:43
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
the only thing that is kinda weird about this CPU file is the fact that each instruction in inside the le() function, because RISC-V uses little endian for the instructions, and manually flipping the bit fields is way too much work so i just opted to use le() instead
I'm working on a 32-bit RISC-V CPU in Logisim, like always i'm using CustomASM for the assembler to write code. but i somehow broke it again.
here the CPU File: https://pastebin.com/Gie1jhwx and the Program i tried to assemble: https://pastebin.com/FuPpkAqy
the only thing that is kinda weird about this CPU file is the fact that each instruction in inside the
le()
function, because RISC-V uses little endian for the instructions, and manually flipping the bit fields is way too much work so i just opted to usele()
instead