data/full_repos/permissive/14593708/lib/data-latch.v
data/verilator_xmls/180bc051-401c-4436-b88e-bf722da93041.xml
module data_latch(input data, input enable, output q, output q_bar);

    wire not_data;
    wire qi0;
    wire qi1;

    nand (qi0, data, enable);

    not  (not_data, data);
    nand (qi1, not_data, enable);

    nand (q, qi0, q_bar);
    nand (q_bar, qi1, q);

endmodule
module data_latch(input data, input enable, output q, output q_bar);


    wire not_data;
    wire qi0;
    wire qi1;

    nand (qi0, data, enable);

    not  (not_data, data);
    nand (qi1, not_data, enable);

    nand (q, qi0, q_bar);
    nand (q_bar, qi1, q);

endmodule