aboutsummaryrefslogtreecommitdiff
path: root/src/shift_unit.v
diff options
context:
space:
mode:
Diffstat (limited to 'src/shift_unit.v')
-rw-r--r--src/shift_unit.v8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shift_unit.v b/src/shift_unit.v
index e92334d..ea83e4a 100644
--- a/src/shift_unit.v
+++ b/src/shift_unit.v
@@ -11,10 +11,10 @@ module shift_unit (
always @ (*) begin
case (op)
- SHIFT_OP_SLL: result <= a << b; // SLL
- SHIFT_OP_SRL: result <= a >> b; // SRL
- SHIFT_OP_SRA: result <= a >>> b; // SRA
- default: result <= 32'b0;
+ SHIFT_OP_SLL: result = a << b; // SLL
+ SHIFT_OP_SRL: result = a >> b; // SRL
+ SHIFT_OP_SRA: result = a >>> b; // SRA
+ default: result = 32'b0;
endcase
end