From d107f7e40f02a7374b8685ba310500a6c38d43b1 Mon Sep 17 00:00:00 2001 From: Flavian Kaufmann Date: Tue, 14 May 2024 10:38:47 +0200 Subject: bug fixes --- src/shift_unit.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/shift_unit.v') 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 -- cgit v1.2.3