Skip to content

Commit cbd1182

Browse files
implement fixed lui addi and lw
1 parent 1266dcb commit cbd1182

File tree

8 files changed

+78
-451
lines changed

8 files changed

+78
-451
lines changed

src/main/scala/RISCV/Decoder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Decoder(val width: Int = 32) extends Module {
5656
}
5757
is(InstructionFormat.I) {
5858
io.operation := io.instruction(14,12) ## io.instruction(6,0);
59-
io.immediate := io.instruction(31,31) ## 0.U(20.W) ## io.instruction(30,20);
59+
io.immediate := Fill(21, io.instruction(31,31)) ## io.instruction(30,20);
6060
}
6161
is(InstructionFormat.S) {
6262
io.operation := io.instruction(14,12) ## io.instruction(6,0);

0 commit comments

Comments
 (0)