Rv64i : passing test

This commit is contained in:
2025-11-13 09:49:18 +01:00
parent 7bb8b993ae
commit 030149cbea
16 changed files with 166 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ import projet.op.OpBranch
import projet.op.OpStore
import projet.op.OpLoad
import projet.op.OpImmW
import projet.op.OpRW
class CUInterface extends Bundle {
val instruction = Input(UInt(32.W))
@@ -113,6 +114,9 @@ object OpCode extends ChiselEnum {
// ~~ Rv64i ~~
val OpImmW = "b0011011".U
// TypeR
val OpRW = "b0111011".U
}
class ControlUnit() extends Module {
@@ -213,5 +217,9 @@ class ControlUnit() extends Module {
is(OpCode.OpImmW) {
OpImmW.opImmW(io);
}
is(OpCode.OpRW) {
OpRW.opRW(io);
}
}
}