Instruction Type | Instructions |
---|---|
R-Type | add, sub, and, or, slt |
I-Type | addi, slti, ld |
S-Type | sd |
B-Type | beq |
J-Type | jal |
Decoding instructions with following table: |
You can run these .v files through icarusverilog to compile and run the .out files. ex. iverilog -o ".outfilename" testbench.v