l1btsb.v 637 Bytes
module l1btsb (q, so, d, e, cdn, sdn, si, a, b);
   input d, e, cdn, sdn, si, a, b;
   output q, so;
   reg notifier;
   pullup               G2(N2);
   or                   G4(N4, e, a);
   not                  G6(N6, N13),
                        G7(N7, N10);
   UDP_LATCH            G8(so, N6, b, N2, N2, notifier);
   or                   G10(N10, N15, N16, N17);
   buf                  G11(q, N6);
   UDP_LATCH            G13(N13, N7, N4, cdn, sdn, notifier);
   not                  G14(N14, e);
   and                  G15(N15, si, N14),
                        G16(N16, e, d),
                        G17(N17, si, d);
endmodule