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 S;
|
||||
output reg [WIDTH-1:0] Y;
|
||||
output [WIDTH-1:0] Y;
|
||||
|
||||
always @* begin
|
||||
assign Y = S ? B : A;
|
||||
end
|
||||
assign Y = S ? B : A;
|
||||
|
||||
endmodule
|
||||
|
||||
|
|
Loading…
Reference in New Issue