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:
commit
408fc60c95
5 changed files with 38 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue