Cleans up control unit

This commit is contained in:
2025-11-12 11:58:49 +01:00
parent 992cf37b92
commit 8ac17f20fe
7 changed files with 22 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ import projet.CUInterface
import projet.AluOpCode
import chisel3.util.is
import projet.DMemSize
import projet.OpType
object OpLoad {
// Implements functions for all instruction of the OpLoad kind
@@ -21,6 +22,7 @@ object OpLoad {
val LHU = "b101".U
}
io.optype := OpType.I
io.alu_opcode := AluOpCode.Add
io.mux_alu_imm := true.B
io.mux_rega_pc := true.B