Fixed bug introduced in a previous commit about fixing ADD
This commit is contained in:
parent
96b7a4d298
commit
9ed3dc3312
@ -100,15 +100,10 @@ always @( CIR or SIMPLE_MICRO or seq_addr_input ) begin
|
|||||||
reg_read_port2_addr={Wbit,3'b000};
|
reg_read_port2_addr={Wbit,3'b000};
|
||||||
reg_write_addr={Wbit,3'b000};
|
reg_write_addr={Wbit,3'b000};
|
||||||
ALU_1OP=`ALU_OP_ADD;
|
ALU_1OP=`ALU_OP_ADD;
|
||||||
case({Sbit,Wbit})
|
if(Wbit)
|
||||||
2'b00,2'b11:
|
|
||||||
next_state=`PROC_DE_LOAD_8_PARAM;
|
|
||||||
2'b01:
|
|
||||||
next_state=`PROC_DE_LOAD_16_PARAM;
|
next_state=`PROC_DE_LOAD_16_PARAM;
|
||||||
default:begin
|
else
|
||||||
`invalid_instruction
|
next_state=`PROC_DE_LOAD_8_PARAM;
|
||||||
end
|
|
||||||
endcase
|
|
||||||
end
|
end
|
||||||
11'b1000_00xx_101, /* SUB */
|
11'b1000_00xx_101, /* SUB */
|
||||||
11'b1000_00xx_000 : /* ADD */ begin
|
11'b1000_00xx_000 : /* ADD */ begin
|
||||||
|
Loading…
Reference in New Issue
Block a user