module tl2_1 (
   d11,
   d10,
   s1,
   d01,
   d00,
   s0,
   rst,
   q1,
   q0,
   dn
);

   input d11;
   input d10;
   input s1;
   input d01;
   input d00;
   input s0;
   input rst;
   output q1;
   output q0;
   output dn;
   wire w1;
   wire w2;
   wire w3;
   wire w4;
   wire w5;
   wire w6;
   wire w7;

   NA2 I0 (d11, s1, w1);
   NA2 I1 (d01, s0, w2);
   NA2 I2 (d10, s1, w3);
   NA2 I3 (d00, s0, w4);
   NA3 I4 (w1, w2, q0, q1);
   NA4 I5 (w3, w4, q1, rst, q0);
   NA3 I6 (w1, w2, q1, w5);
   NA3 I7 (q0, w3, w4, w6);
   NA2 I8 (w5, w6, w7);
   IN1 I9 (w7, dn);
endmodule

