data/full_repos/permissive/211316121/lab1_nexys4_1/decoder38.v
data/verilator_xmls/d3bbf787-f31a-41e2-be53-aa69d2c7923c.xml
module decoder38(
    input G1,
    input G2A,
    input G2B,
    input [2:0] S,
    output [7:0] Y
    );
    wire valid;
    wire notg1;
    wire nots0,nots1,nots2;
    not(notg1,G1);
    nor(valid,notg1,G2A,G2B);
    not(nots0,S[0]);
    not(nots1,S[1]);
    not(nots2,S[2]);
    nand(Y[7],valid,S[2],S[1],S[0]);
    nand(Y[6],valid,S[2],S[1],nots0);
    nand(Y[5],valid,S[2],nots1,S[0]);
    nand(Y[4],valid,S[2],nots1,nots0);
    nand(Y[3],valid,nots2,S[1],S[0]);
    nand(Y[2],valid,nots2,S[1],nots0);
    nand(Y[1],valid,nots2,nots1,S[0]);
    nand(Y[0],valid,nots2,nots1,nots0);
 endmodule
module decoder38(
    input G1,
    input G2A,
    input G2B,
    input [2:0] S,
    output [7:0] Y
    );

    wire valid;
    wire notg1;
    wire nots0,nots1,nots2;
    not(notg1,G1);
    nor(valid,notg1,G2A,G2B);
    not(nots0,S[0]);
    not(nots1,S[1]);
    not(nots2,S[2]);
    nand(Y[7],valid,S[2],S[1],S[0]);
    nand(Y[6],valid,S[2],S[1],nots0);
    nand(Y[5],valid,S[2],nots1,S[0]);
    nand(Y[4],valid,S[2],nots1,nots0);
    nand(Y[3],valid,nots2,S[1],S[0]);
    nand(Y[2],valid,nots2,S[1],nots0);
    nand(Y[1],valid,nots2,nots1,S[0]);
    nand(Y[0],valid,nots2,nots1,nots0);
 endmodule