实例1 二选一多路选择器
module muxtwo(out a,b,sl);
input a,b,sl;
output reg out;
always@(sl or a or b)
if(!sl) out=a;
else out=b
转载:https://blog.csdn.net/qq_45941706/article/details/128480299
查看评论
module muxtwo(out a,b,sl);
input a,b,sl;
output reg out;
always@(sl or a or b)
if(!sl) out=a;
else out=b