a "Scope "Replacement"" (see: About this Blog>About Simulators / LT Spice)
about
model* CD4013S.cir * Q iQ CPE R D S Vss Vdd .subckt CD4013S 1 2 3 4 5 6 7 14 .param zVt = 2/(5**.5+3) .param zVtH = zVt/5 * OUTPUT 1Ohm R20 121 1 1 R21 122 2 1 S1 14 121 114 0 FMSW S2 121 7 114 0 FMiS S3 14 122 115 0 FMSW S4 122 7 115 0 FMiS * GENERAL B1 99 0 V=V(15,7)*2 R1 99 0 10k B2 98 0 V=zVt R2 98 0 10k R3 14 15 5E5 R4 15 7 5E5 C4 15 7 5E-13 * C 103 * R 104 * D 105 * S 106 B3 103 0 V=if(V(99)>2,V(3,7)/V(99),0) B4 104 0 V=if(V(99)>2,V(4,7)/V(99),0) B5 105 0 V=if(V(99)>2,V(5,7)/V(99),0) B6 106 0 V=if(V(99)>2,V(6,7)/V(99),0) * ED EL iD D Q iQ R10 110 0 1k R11 111 0 1k R12 112 0 1k R13 113 0 1k R14 114 0 1k R15 115 0 1k * ED - enable data Q0 110 .machine .state sa0 0 .state sa1 1 .rule sa1 sa0 (V(110)>V(98)) & (V(103)>V(98)) & (V(111)<V(98)) .rule sa0 sa1 (V(110)<V(98)) & (V(103)<V(98)) & (V(111)<V(98)) .output (110) state .endmachine * EL - enable latch Q1 111 .machine .state sb0 0 .state sb1 1 .rule sb1 sb0 (V(111)>V(98)) & (V(110)<V(98)) & (V(103)<V(98)) .rule sb0 sb1 (V(111)<V(98)) & (V(110)<V(98)) & (V(103)>V(98)) .output (111) state .endmachine * INP Buff iD _Q2 112 .machine .state sc0 0 .state sc1 1 .rule sc1 sc0 (V(112)>V(98)) & (V(104)<V(98)) & ( ( (V(110)>V(98)) & (V(105)>V(98)) ) | ( (V(110)<V(98)) & (V(113)>V(98)) ) ) .rule sc0 sc1 (V(112)<V(98)) & ( ( (V(110)>V(98)) & (V(105)<V(98)) ) | (V(104)>V(98)) ) .output (112) state .endmachine * INP Buff D Q2 113 .machine .state so0 0 .state so1 1 .rule so1 so0 (V(113)>V(98)) & (V(112)>V(98)) & (V(106)<V(98)) .rule so0 so1 (V(113)<V(98)) & ( (V(112)<V(98)) | (V(106)>V(98)) ) .output (113) state .endmachine * OUTP Buff Q Q3 114 .machine .state sd0 0 .state sd1 1 .rule sd1 sd0 (V(114)>V(98)) & (V(106)<V(98)) & ( ( (V(111)>V(98)) & (V(112)>V(98)) ) | ( (V(111)<V(98)) & (V(115)>V(98)) ) ) .rule sd0 sd1 (V(114)<V(98)) & ( ( (V(111)>V(98)) & (V(112)<V(98)) ) | (V(106)>V(98)) ) .output (114) state .endmachine * OUTP Buff iQ _Q3 115 .machine .state sx0 0 .state sx1 1 .rule sx1 sx0 (V(115)>V(98)) & (V(114)>V(98)) & (V(104)<V(98)) .rule sx0 sx1 (V(115)<V(98)) & ( (V(114)<V(98)) | (V(104)>V(98)) ) .output (115) state .endmachine .model FMSW SW(Ron=1 Roff=.1G Vt={zVt} Vh={-zVtH} Ilimit=.1) .model FMiS SW(Ron=.1G Roff=1 Vt={zVt} Vh={-zVtH} Ilimit=.1) .ends
[Eop]