Thursday, June 8, 2017

VERILOG PROGRAM FOR 3X8 DECODER



3:8 DECODER
module decoder(d,x,y,z);
output[7:0]d;
input x,y,z;
assign d[0]=(~x)&(~y)&(~z);
assign d[1]=(x)&(~y)&(~z);
assign d[2]=(~x)&(y)&(~z);
assign d[3]=x&y&(~z);
assign d[4]=(~x)&(~y)&z;
assign d[5]=x&(~y)&z;
assign d[6]=(~x)&y&z;
assign d[7]=x&y&z;
endmodule

No comments:

Post a Comment