Ensured case variable assignment is internally consistent with other possibilities to ensure optimal case synthesis

This commit is contained in:
riley committed 2026-09-13 23:53:47 +10:00
1 parent 49f539c855
commit 4df723318b
3 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ module shifter #(width=8)(input logic [2:0] op,
3'b100: OUT_1 = A << B;
3'b101: OUT_1 = A >> B;
3'b111: OUT_1 = $signed(A) >>> B;
default:;
default:OUT_1 = A;
endcase
end
endmodule