Tuesday, 2 August 2016

dec2x4

dec 2x4:


module dec2x4(y,i);
    output [3:0] y;
    input [1:0] i;
assign y[0] = ~i[1] & ~i[0],
       y[1] = ~i[1] & i[0],
 y[2] = i[1] & ~i[0],
 y[3] = i[1] & i[0];

endmodule

0 comments:

Post a Comment

if you have any doubt please let me know