Merge pull request #3530 from jix/simlib-mux-fix

simlib: Simplify recently changed $mux model
This commit is contained in:
Jannis Harder 2022-10-29 14:54:36 +02:00 committed by GitHub
commit 31c15e5fa6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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