module mux2_1(s,x,y,q)
input s,x,y;
output q;
reg q;
always @(s,x,y)
begin
if(s) q=y;
else q=x;
end
endmodule
FPGA之二选一电路
最新推荐文章于 2025-04-09 21:33:59 发布
module mux2_1(s,x,y,q)
input s,x,y;
output q;
reg q;
always @(s,x,y)
begin
if(s) q=y;
else q=x;
end
endmodule