aboutsummaryrefslogtreecommitdiff
path: root/src/alu_op_decode.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/alu_op_decode.v')
-rw-r--r--src/alu_op_decode.v4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alu_op_decode.v b/src/alu_op_decode.v
index 895b952..b9db664 100644
--- a/src/alu_op_decode.v
+++ b/src/alu_op_decode.v
@@ -1,6 +1,6 @@
module alu_op_decode (
input [6:0] opcode,
- input [1:0] alu_ctrl,
+ input alu_ctrl,
input [2:0] funct3,
input [6:0] funct7,
output reg [3:0] alu_op
@@ -19,7 +19,7 @@ parameter ALU_OP_ADD = 4'b0000,
always @ (*) begin
- if (alu_ctrl == 2'b00) alu_op <= ALU_OP_ADD;
+ if (alu_ctrl == 1'b1) alu_op <= ALU_OP_ADD;
else case (opcode)
7'b0110011: begin // ADD, SUB, SLL, SLT, SLTU, XOR, SRL, SRA, OR, AND
case (funct3)