remove ORR instruction

This commit is contained in:
Arthur Lu
2022-08-20 00:33:07 -07:00
parent ca7bf9fc6e
commit 218445e20c
6 changed files with 5 additions and 10 deletions

View File

@@ -35,7 +35,6 @@ module ALU #(parameter W=8)(
CIN = 'b1;
Out = AdderResult[W-1:0];
end
ORR: Out = A | B; // bitwise OR between A and B
AND: Out = A & B; // bitwise AND between A and B
LSH: Out = B << A; // shift B by A bits (limitation of control)
RXOR_7: Out = ^(A[6:0]); // perform reduction XOR of lower 7 bits of A

View File

@@ -90,10 +90,6 @@ module Ctrl #(
ALU_OP = ADD;
RaddrA = A_operand;
end
'b0_0110_?: begin // ORR
ALU_OP = ORR;
RaddrA = A_operand;
end
'b0_0111_?: begin // AND
ALU_OP = AND;
RaddrA = A_operand;