From f8bf441ea1e4cf7b0e609b80aecca786fa2a48f3 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 27 Oct 2023 11:01:07 +0200 Subject: [PATCH] chore: move default case --- src/alu.sv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/alu.sv b/src/alu.sv index d48b652..1be6dbe 100755 --- a/src/alu.sv +++ b/src/alu.sv @@ -20,7 +20,7 @@ module alu( always_comb begin - out = {WIDTH{1'bX}}; + case (op) 3'b000 : out = a + real_b; 3'b001 : out = a << real_b; @@ -35,6 +35,7 @@ module alu( end 3'b110 : out = a | real_b; 3'b111 : out = a & real_b; + default: out = {WIDTH{1'bX}}; endcase end -- 2.49.0