//BlueTechspot.blogspot.com
module encoder42(d,y);
input [3:0]d;
output [1:0]y;
or(y[0],d[1],d[3]);
or(y[1],d[2],d[3]);
endmodule
module encoder42(d,y);
input [3:0]d;
output [1:0]y;
or(y[0],d[1],d[3]);
or(y[1],d[2],d[3]);
endmodule
A tech blog that provides Software and Hardware support as well as reviews to latest electronic gadgets.