diff --git a/rtl/mips_cpu_harvard.v b/rtl/mips_cpu_harvard.v index 0f29199..03fc0eb 100644 --- a/rtl/mips_cpu_harvard.v +++ b/rtl/mips_cpu_harvard.v @@ -40,6 +40,7 @@ logic[5:0] opcode = instr_readdata[31:26]; logic[4:0] rs = instr_readdata[25:21]; logic[4:0] rt = instr_readdata[20:16]; logic[4:0] rd = RegDst==2'b10 ? 5'b11111 : RegDst==2'b01 ? instr_readdata[15:11] : instr_readdata[20:16]; +logic[15:0] immediate = instr_readdata[15:0]; logic[10:6] shamt = instr_readdata[10:6]; // Shamt needed for the sll instruction