mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-22 21:35:48 +00:00
Merge branch 'main' of https://github.com/supleed2/AM04_CPU into main
This commit is contained in:
commit
64b9d16776
|
@ -46,7 +46,7 @@ logic[4:0] shamt = instr_readdata[10:6]; // Shamt needed for the sll instruction
|
||||||
|
|
||||||
//ALU Data
|
//ALU Data
|
||||||
logic[31:0] alu_in1 = read_data1;
|
logic[31:0] alu_in1 = read_data1;
|
||||||
logic[31:0] alu_in2 = ALUSrc ? {{16{in[15]}},immediate} : read_data2;
|
logic[31:0] alu_in2 = ALUSrc ? {{16{immediate[15]}},immediate} : read_data2;
|
||||||
logic[31:0] ALUOut;
|
logic[31:0] ALUOut;
|
||||||
|
|
||||||
//Data MEM
|
//Data MEM
|
||||||
|
@ -99,7 +99,6 @@ alu alu(
|
||||||
.B(alu_in2), //operand 2
|
.B(alu_in2), //operand 2
|
||||||
.ALUzero(ALUZero), //is the result zero, used for checks
|
.ALUzero(ALUZero), //is the result zero, used for checks
|
||||||
.ALUOut(ALUOut), //output/result of operation
|
.ALUOut(ALUOut), //output/result of operation
|
||||||
.immediate(immediate),
|
|
||||||
.shamt(shamt)
|
.shamt(shamt)
|
||||||
);
|
);
|
||||||
endmodule : mips_cpu_harvard
|
endmodule : mips_cpu_harvard
|
||||||
|
|
Loading…
Reference in a new issue