remove SUB instruction from ISA,
update program2 and program3, update control logic, update assembler
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user