`timescale 1ns / 1ps ////////////////////////////////////////////////////////////////////////////////// // Company: // Engineer: // // Create Date: 03/01/2019 03:53:18 PM // Design Name: // Module Name: four_bit_decoder // Project Name: // Target Devices: // Tool Versions: // Description: // // Dependencies: // // Revision: // Revision 0.01 - File Created // Additional Comments: // ////////////////////////////////////////////////////////////////////////////////// module four_bit_decoder( input a, input b, input c, input d, output dec0, output dec1, output dec2, output dec3, output dec4, output dec5, output dec6, output dec7, output dec8, output dec9 ); wire a_not, b_not, c_not, d_not; not n0(a_not, a); not n1(b_not, b); not n2(c_not, c); not n3(d_not, d); and g0(dec0, a_not, b_not, c_not, d_not); and g1(dec1, a_not, b_not, c_not, d); and g2(dec2, a_not, b_not, c, d_not); and g3(dec3, a_not, b_not, c, d); and g4(dec4, a_not, b, c_not, d_not); and g5(dec5, a_not, b, c_not, d); and g6(dec6, a_not, b, c, d_not); and g7(dec7, a_not, b, c, d); and g8(dec8, a, b_not, c_not, d_not); and g9(dec9, a, b_not, c_not, d); endmodule