Cleans up control unit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user