mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #3530 from jix/simlib-mux-fix
simlib: Simplify recently changed $mux model
This commit is contained in:
commit
31c15e5fa6
|
@ -1279,11 +1279,9 @@ parameter WIDTH = 0;
|
||||||
|
|
||||||
input [WIDTH-1:0] A, B;
|
input [WIDTH-1:0] A, B;
|
||||||
input S;
|
input S;
|
||||||
output reg [WIDTH-1:0] Y;
|
output [WIDTH-1:0] Y;
|
||||||
|
|
||||||
always @* begin
|
|
||||||
assign Y = S ? B : A;
|
assign Y = S ? B : A;
|
||||||
end
|
|
||||||
|
|
||||||
endmodule
|
endmodule
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue