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之二选一电路
最新推荐文章于 2022-12-06 15:08:22 发布
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