From 3d8270b89ba66464346a927f7de7b887282761e2 Mon Sep 17 00:00:00 2001 From: ChUrl Date: Wed, 29 Mar 2023 13:54:44 +0200 Subject: [PATCH] Fix sensitivity list for AithmeticUnit --- ArithmeticUnit.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArithmeticUnit.sv b/ArithmeticUnit.sv index b12be9b..fe293bf 100644 --- a/ArithmeticUnit.sv +++ b/ArithmeticUnit.sv @@ -12,7 +12,7 @@ module ArithmeticUnit( ); // If the least significant opcode bit is 0, it is an addition - always_comb case (opcode) + always @(opcode or operandA or operandB) case (opcode) 3'b100: result = operandA + operandB; 3'b101: result = operandA - operandB; default: result = 0;