mirror of
https://github.com/handsomezhuzhu/2025-yatcpu.git
synced 2026-02-20 20:10:14 +00:00
实验一的执行
This commit is contained in:
@@ -47,9 +47,17 @@ class Execute extends Module {
|
|||||||
alu_ctrl.io.funct7 := funct7
|
alu_ctrl.io.funct7 := funct7
|
||||||
|
|
||||||
// lab1(Execute)
|
// lab1(Execute)
|
||||||
|
alu.io.func := alu_ctrl.io.alu_funct
|
||||||
|
alu.io.op1 := Mux(
|
||||||
|
io.aluop1_source === ALUOp1Source.Register,
|
||||||
|
io.reg1_data,
|
||||||
|
io.instruction_address
|
||||||
|
)
|
||||||
|
alu.io.op2 := Mux(
|
||||||
|
io.aluop2_source === ALUOp2Source.Register,
|
||||||
|
io.reg2_data,
|
||||||
|
io.immediate
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
// lab1(Execute) end
|
// lab1(Execute) end
|
||||||
|
|||||||
Reference in New Issue
Block a user