3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Merge pull request #3526 from jix/mux-simlib-eval

Consistent $mux undef handling
This commit is contained in:
Jannis Harder 2022-10-24 16:25:33 +02:00 committed by GitHub
commit 408fc60c95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 15 deletions

View file

@ -1282,10 +1282,7 @@ input S;
output reg [WIDTH-1:0] Y;
always @* begin
if (S)
Y = B;
else
Y = A;
assign Y = S ? B : A;
end
endmodule