remove SUB instruction from ISA,

update program2 and program3,
update control logic,
update assembler
This commit is contained in:
Arthur Lu
2022-08-19 23:34:51 -07:00
parent f31ac21f65
commit ca7bf9fc6e
4 changed files with 7 additions and 11 deletions

View File

@@ -68,7 +68,7 @@ module Ctrl #(
RegWrite = 'b0;
write_mem = 'b1;
end
'b0_0011_0: begin // N?T
'b0_0011_0: begin // NXT
if(S_operand == 'd8 || S_operand == 'd9 || S_operand == 'd10) begin
ALU_OP = SUB;
ALU_B = 'b1;
@@ -90,10 +90,6 @@ module Ctrl #(
ALU_OP = ADD;
RaddrA = A_operand;
end
'b0_0101_?: begin // SUB
ALU_OP = SUB;
RaddrA = A_operand;
end
'b0_0110_?: begin // ORR
ALU_OP = ORR;
RaddrA = A_operand;