$ Chip library for MSF Clock Board decoder.
$ Commenced November 84
$ most chips stolen from either chiplib.src or rwt:dcc.src

chip ls00(a1,b1,a2,b2,a3,b3,a4,b4,.vcc,.gnd)->y1,y2,y3,y4
      pins(1,2,4,5,9,10,12,13,14,7,3,6,8,11)
      on "dil14"
   nand(a1,b1)->y1
   nand(a2,b2)->y2
   nand(a3,b3)->y3
   nand(a4,b4)->y4
end

chip ls02(a1,b1,a2,b2,a3,b3,a4,b4,.vcc,.gnd)->y1,y2,y3,y4
      pins(2,3,5,6,8,9,11,12,14,7,1,4,10,13)
      on "dil14"
   nor(a1,b1)->y1
   nor(a2,b2)->y2
   nor(a3,b3)->y3
   nor(a4,b4)->y4
end

chip ls04(a1,a2,a3,a4,a5,a6,.vcc,.gnd)->y1,y2,y3,y4,y5,y6
      pins(1,3,5,9,11,13,14,7,2,4,6,8,10,12)
      on "dil14"
   inv(a1)->y1
   inv(a2)->y2
   inv(a3)->y3
   inv(a4)->y4
   inv(a5)->y5
   inv(a6)->y6
end

chip ttl07(a1,a2,a3,a4,a5,a6,.vcc,.gnd)->y1,y2,y3,y4,y5,y6
      pins(1,3,5,9,11,13,14,7,2,4,6,8,10,12)
      on "dil14"
   bufoc(a1)->y1
   bufoc(a2)->y2
   bufoc(a3)->y3
   bufoc(a4)->y4
   bufoc(a5)->y5
   bufoc(a6)->y6
end

chip ls08(a1,b1,a2,b2,a3,b3,a4,b4,.vcc,.gnd)->y1,y2,y3,y4
      pins(1,2,4,5,9,10,12,13,14,7,3,6,8,11)
      on "dil14"
   and(a1,b1)->y1
   and(a2,b2)->y2
   and(a3,b3)->y3
   and(a4,b4)->y4
end

chip ls14(a1,a2,a3,a4,a5,a6,.vcc,.gnd)->y1,y2,y3,y4,y5,y6
      pins(1,3,5,9,11,13,14,7,2,4,6,8,10,12)
      on "dil14"
   invs(a1)->y1
   invs(a2)->y2
   invs(a3)->y3
   invs(a4)->y4
   invs(a5)->y5
   invs(a6)->y6
end

chip ls32(a1,b1,a2,b2,a3,b3,a4,b4,.vcc,.gnd)->y1,y2,y3,y4
      pins(1,2,4,5,9,10,12,13,14,7,3,6,8,11)
      on "dil14"
   or(a1,b1)->y1
   or(a2,b2)->y2
   or(a3,b3)->y3
   or(a4,b4)->y4
end

chip ls74(d1,set'1,clr'1,ck1,d2,set'2,clr'2,ck2,.vcc,.gnd)->q1,q'1,q2,q'2
      pins(2,4,1,3,12,10,13,11,14,7,5,6,9,8)
      on "dil14"
   u74(d1,set'1,clr'1,ck1)->q1,q'1
   u74(d2,set'2,clr'2,ck2)->q2,q'2
end

chip ls86(a1,b1,a2,b2,a3,b3,a4,b4,.vcc,.gnd)->y1,y2,y3,y4
      pins(1,2,4,5,9,10,12,13,14,7,3,6,8,11)
      on "dil14"
   xor(a1,b1)->y1
   xor(a2,b2)->y2
   xor(a3,b3)->y3
   xor(a4,b4)->y4
end

chip ls125(i1,e'1,i2,e'2,i3,e'3,i4,e'4,.vcc,.gnd)->o1,o2,o3,o4
      pins(2,1,5,4,9,10,12,13, 14,7, 3,6,8,11)
      on "dil14"
   u125(i1,e'1)->o1
   u125(i2,e'2)->o2
   u125(i3,e'3)->o3
   u125(i4,e'4)->o4
end

chip ls138(.gnd,.vcc,c,b,a,g1,g2a',g2b') -> o'<7:0>
     pins(8,16,3,2,1,6,4,5,7,9,10,11,12,13,14,15)
     on "dil16"
     u138(c,b,a,g1,g2a',g2b') -> o'<7:0>
end

chip ls240(i<7:0>,e'<4,0>,.vcc,.gnd) -> o'<7:0>
  pins(2,4,6,8,11,13,15,17, 1,19,20,10, 18,16,14,12,9,7,5,3)
  on dil20
  u240 (i<7:4>,e'<4>) -> o'<7:4>
  u240 (i<3:0>,e'<0>) -> o'<3:0>
end

chip ls245(dir,a<1:8>,.gnd,eg',.vcc) -> b<8:1>
     pins(1,2,3,4,5,6,7,8,9,10,19,20,11,12,13,14,15,16,17,18)
     on dil20
     u245(dir,eg',a<1:8>) -> b<1:8>
end

chip 25ls2521(a<7:0>,b<7:0>,e',.vcc,.gnd)->eq'
  pins(2,4,6,8,11,13,15,17, 3,5,7,9,12,14,16,18, 1,20,10,19)
  on dil20
  u521(a<7:0>,b<7:0>,e')->eq'
end

chip 4020 (ck,res,.vcc,.gnd) -> q<0>,q<3:13>
  pins(10,11,16,8, 9, 7,5,4,6,13,12,14,15,1,2,3)
  on dil16
  cd4020(ck,res) -> q<0>,q<3:13>
end

chip 6116 (a<10:0>,we',ce',oe',.vcc,.gnd) -> d<7:0>
  pins (19,22,23,1,2,3,4,5,6,7,8, 21,18,20, 24,12, 17,16,15,14,13,11,10,9)
  on "dil24"
  u6116 (a<10:0>,we',ce',oe') -> d<7:0>
end

chip 74c917 (d<0:4>,a<0:2>,ce',we',ose',soe',.gnd,.vcc) -> led<1:6>,seg<1:8>
  pins(3,4,5,6,7, 26,27,28, 1,2,8,16,15,20, 14,13,12,11,10,9,
       17,18,19,21,22,23,24,25)
  on "dil28"
  u917 (d<0:4>,a<0:2>,ce',we',ose',soe') -> led<1:6>,seg<1:8>
end

chip dilleds (led<1:4>,seg<1:8>)
  pins(7,10,12,14, 13,9,4,3,2,11,6,5)
  on "dil14"
  dilled(led<1:4>,seg<1:8)
end

chip Zil80(ck,d<4>,d<3>,d<5:6>,.vcc,d<2>,d<7>,d<0>,d<1>,int,nmi,wait,busrq,
           reset,.GND)
        -> a<11:15>,halt,mreq,iorq,rd,wr,busak,m1,rfsh,a<0:10>
     pins(6,7,8,9,10,11,12,13,14,15,16,17,24,25,26,29,1,2,3,4,5,18,19,20,
          21,22,23,27,28,30,31,32,33,34,35,36,37,38,39,40)
     on "DIL40"
     uZ80(d<0:7>,wait,int,nmi,reset,busrq,ck)
       -> a<0:15>,m1,mreq,iorq,rd,wr,rfsh,halt,busak
end

chip dilswitch(s<0:3>) -> y<0:3>
     pins (1,2,3,4, 8,7,6,5)
     on "DIL8"
     dilsw4(s<0:3>) -> y<0:3>
end

chip rotbswitch(com)->d<0:3>
   pins(5,1,3,6,4)
   on dil6h
   binswitch(com)->d<0:3>
end

chip silres1k (a<1:8>) -> com
   pins(9,8,7,6,5,4,3,2,1)
   on sil9
   respac1k(a<1:8>) -> com
end

chip dilres330 (a<1:8>) -> b<1:8>
   pins(16,15,14,13,12,11,10,9, 1,2,3,4,5,6,7,8)
   on "dil16"
   respac330(a<1:8>) -> b<1:8>
end

chip dilres1k (a<1:13>) -> com
   pins(1,2,3,4,5,6,7,8,9,10,11,12,13, 14)
   on "dil14"
   drespac1k(a<1:13>) -> com
end

chip Xtal3.2768 (.vcc,.gnd,nc) -> output
   pins(14,7,1, 8)
   on "dil14"
   Xtal -> output
end

chip link3way (a,b) -> c
   pins(1,3,2)
   on sil3
   link(a,b) -> c
end

chip led(h) -> l
   pins(1,2)
   on sil2
   led(h) -> l
end

chip discrete1 (x1,x2,x3,x4,x5,x6,x7,x8) -> y1,y2,y3,y4,y5,y6,y7,y8
   pins(1,2,3,4,5,6,7,8, 16,15,14,13,12,11,10,9)
   on "dil16"
   H1(x1) -> y1
   C1(x2) -> y2
   R1(x3) -> y3
   H2(x4) -> y4
   C2(x5) -> y5
   R2(x6) -> y6
   D1(x7) -> y7
   C3(x8) -> y8
end

chip transistors (base<1:6>,.gnd) -> collector<1:6>
   pins(16,15,14,13,12,11, 8, 1,2,3,4,5,6)
   on "dil16"
   trans(base<1:6>) -> collector<1:6>
end

chip plugin(rxvcc,rxdata,rxgnd)
   pins(1,3,4)
   on "sil4"
   plugin(rxvcc,rxdata,rxgnd)
end

finish
