* SPICE netlist
D1 In Vcc Dd
D2 Com In Dd
D3 HO VB Dd
D4 VS HO Dd
D5 VS VB 25V
C2 VB HO 22p
C3 HO VS 22p Rpar=100k
S1 HO VB 4 0 SH
S2 HO VS 5 0 SL
A2 VB VS 0 0 0 0 3 0 SCHMITT Vt=8.9 Vh=.35
C1 In Com 10p Rpar=1e6
D6 Com VB 625V
D7 _SD Vcc Dd
D8 Com _SD Dd
A4 _SD Com 0 0 0 0 6 0 SCHMITT Vt=1.9 Vh=1 Trise=120n Tripdt=25n
A5 Vcc Com 0 0 0 0 7 0 SCHMITT Vt=8.9 Vh=.35
C4 _SD Com 10p Rpar=1e6
S3 LO Vcc 8 0 SH
S4 LO Com 9 0 SL
D9 LO Vcc Dd
D10 Com LO Dd
D11 Com Vcc 25V
C5 Vcc LO 22p
C6 LO Com 22p Rpar=100k
A3 3 1 0 6 7 5 4 0 AND Trise=100n Tripdt=20n
A6 7 6 0 2 0 9 8 0 AND Trise=100n Tripdt=20n
A1 In Com 0 0 0 2 1 0 SCHMITT Vt=1.9 Vh=1 Trise=1110n Tfall=100n Tripdt=50n

* LTspice schematic (.asc)
Version 4
SHEET 1 1248 992
WIRE -592 -496 -624 -496
WIRE 624 -496 592 -496
WIRE -624 -464 -624 -496
WIRE 624 -464 624 -496
WIRE -352 -336 -480 -336
WIRE 144 -336 16 -336
WIRE 224 -336 144 -336
WIRE 304 -336 224 -336
WIRE 384 -336 304 -336
WIRE 480 -336 384 -336
WIRE -80 -320 -112 -320
WIRE -48 -320 -80 -320
WIRE -352 -304 -352 -336
WIRE 32 -304 16 -304
WIRE 144 -304 144 -336
WIRE 96 -288 64 -288
WIRE 224 -288 224 -336
WIRE 304 -288 304 -336
WIRE 384 -272 384 -336
WIRE 400 -272 384 -272
WIRE 480 -272 464 -272
WIRE -112 -224 -112 -320
WIRE -48 -224 -112 -224
WIRE -352 -208 -352 -240
WIRE -256 -208 -352 -208
WIRE -176 -208 -192 -208
WIRE -48 -208 -176 -208
WIRE 48 -208 16 -208
WIRE 64 -208 64 -288
WIRE 64 -208 48 -208
WIRE -432 -192 -480 -192
WIRE -352 -192 -352 -208
WIRE -352 -192 -432 -192
WIRE 96 -192 96 -240
WIRE 112 -192 96 -192
WIRE 144 -192 144 -224
WIRE 224 -192 224 -224
WIRE 224 -192 144 -192
WIRE 304 -192 304 -224
WIRE 304 -192 224 -192
WIRE 496 -192 304 -192
WIRE -256 -176 -288 -176
WIRE -176 -176 -192 -176
WIRE -144 -176 -176 -176
WIRE -48 -176 -128 -176
WIRE 48 -176 16 -176
WIRE 64 -176 48 -176
WIRE -432 -160 -432 -192
WIRE -352 -160 -352 -192
WIRE -48 -160 -112 -160
WIRE 144 -160 144 -192
WIRE 224 -160 224 -192
WIRE 304 -160 304 -192
WIRE 384 -160 384 -272
WIRE 96 -144 96 -192
WIRE 64 -96 64 -176
WIRE 96 -96 64 -96
WIRE -432 -48 -432 -96
WIRE -432 -48 -480 -48
WIRE -352 -48 -352 -96
WIRE -352 -48 -432 -48
WIRE -288 -48 -288 -176
WIRE -288 -48 -352 -48
WIRE 32 -48 32 -304
WIRE 144 -48 144 -80
WIRE 144 -48 32 -48
WIRE 224 -48 224 -96
WIRE 224 -48 144 -48
WIRE 304 -48 304 -96
WIRE 304 -48 224 -48
WIRE 384 -48 384 -96
WIRE 384 -48 304 -48
WIRE 480 -48 384 -48
WIRE -352 128 -480 128
WIRE 144 128 16 128
WIRE 224 128 144 128
WIRE 304 128 224 128
WIRE 384 128 304 128
WIRE 480 128 384 128
WIRE -112 144 -112 -160
WIRE -80 144 -112 144
WIRE -48 144 -80 144
WIRE -352 160 -352 128
WIRE 32 160 16 160
WIRE 144 160 144 128
WIRE 96 176 64 176
WIRE 224 176 224 128
WIRE 304 176 304 128
WIRE -112 240 -112 144
WIRE -48 240 -112 240
WIRE -352 256 -352 224
WIRE -256 256 -352 256
WIRE -176 256 -192 256
WIRE -128 256 -128 -176
WIRE -128 256 -176 256
WIRE -48 256 -128 256
WIRE 48 256 16 256
WIRE 64 256 64 176
WIRE 64 256 48 256
WIRE -432 272 -480 272
WIRE -352 272 -352 256
WIRE -352 272 -432 272
WIRE 96 272 96 224
WIRE 112 272 96 272
WIRE 144 272 144 240
WIRE 224 272 224 240
WIRE 224 272 144 272
WIRE 304 272 304 240
WIRE 304 272 224 272
WIRE 496 272 304 272
WIRE -256 288 -288 288
WIRE -144 288 -144 -176
WIRE -48 288 -144 288
WIRE 48 288 16 288
WIRE 64 288 48 288
WIRE -432 304 -432 272
WIRE -352 304 -352 272
WIRE 144 304 144 272
WIRE 224 304 224 272
WIRE 304 304 304 272
WIRE 384 304 384 128
WIRE 96 320 96 272
WIRE 64 368 64 288
WIRE 96 368 64 368
WIRE -432 416 -432 368
WIRE -432 416 -480 416
WIRE -352 416 -352 368
WIRE -352 416 -432 416
WIRE -288 416 -288 288
WIRE -288 416 -352 416
WIRE 32 416 32 160
WIRE 144 416 144 384
WIRE 144 416 32 416
WIRE 224 416 224 368
WIRE 224 416 144 416
WIRE 304 416 304 368
WIRE 304 416 224 416
WIRE 384 416 384 368
WIRE 384 416 304 416
WIRE 480 416 384 416
WIRE -624 496 -624 464
WIRE -592 496 -624 496
WIRE 624 496 624 464
WIRE 624 496 592 496
FLAG 496 -192 HO
IOPIN 720 -288 Out
FLAG -480 -192 In
IOPIN -256 -288 In
FLAG -480 -336 Vcc
IOPIN -256 -432 In
FLAG 480 -336 VB
IOPIN 704 -432 In
FLAG 480 -48 VS
IOPIN 704 -144 In
FLAG -480 -48 Com
IOPIN -256 -144 In
FLAG 480 -272 Com
IOPIN 704 -368 In
FLAG -480 272 _SD
IOPIN -256 176 In
FLAG -480 128 Vcc
IOPIN -256 32 In
FLAG -480 416 Com
IOPIN -256 320 In
FLAG 480 128 Vcc
IOPIN 704 32 In
FLAG 480 416 Com
IOPIN 704 320 In
FLAG 496 272 LO
IOPIN 720 176 Out
FLAG -176 -208 1
FLAG -176 -176 2
FLAG -80 -320 3
FLAG 112 272 0
FLAG 112 -192 0
FLAG -80 144 7
FLAG 48 -208 4
FLAG 48 -176 5
FLAG -176 256 6
FLAG 48 256 8
FLAG 48 288 9
SYMBOL diode -368 -240 M180
SYMATTR InstName D1
SYMATTR Value Dd
SYMBOL diode -368 -96 M180
SYMATTR InstName D2
SYMATTR Value Dd
SYMBOL diode 288 -224 M180
SYMATTR InstName D3
SYMATTR Value Dd
SYMBOL diode 288 -96 M180
SYMATTR InstName D4
SYMATTR Value Dd
SYMBOL zener 368 -96 M180
SYMATTR InstName D5
SYMATTR Value 25V
SYMBOL cap 208 -288 R0
SYMATTR InstName C2
SYMATTR Value 22p
SYMBOL cap 208 -160 R0
SYMATTR InstName C3
SYMATTR Value 22p
SYMATTR SpiceLine Rpar=100k
SYMBOL sw 144 -208 M180
SYMATTR InstName S1
SYMATTR Value SH
SYMBOL sw 144 -176 R0
SYMATTR InstName S2
SYMATTR Value SL
SYMBOL Digital\\diffschmtbuf 16 -384 M0
SYMATTR InstName A2
SYMATTR Value Vt=8.9 Vh=.35
SYMBOL cap -448 -160 R0
SYMATTR InstName C1
SYMATTR Value 10p
SYMATTR SpiceLine Rpar=1e6
SYMBOL zener 464 -256 M270
SYMATTR InstName D6
SYMATTR Value 625V
SYMBOL diode -368 224 M180
SYMATTR InstName D7
SYMATTR Value Dd
SYMBOL diode -368 368 M180
SYMATTR InstName D8
SYMATTR Value Dd
SYMBOL Digital\\diffschmitt -256 208 R0
SYMATTR InstName A4
SYMATTR Value Vt=1.9 Vh=1
SYMATTR Value2 Trise=120n
SYMATTR SpiceLine Tripdt=25n
SYMBOL Digital\\diffschmtbuf 16 80 M0
SYMATTR InstName A5
SYMATTR Value Vt=8.9 Vh=.35
SYMBOL cap -448 304 R0
SYMATTR InstName C4
SYMATTR Value 10p
SYMATTR SpiceLine Rpar=1e6
SYMBOL sw 144 256 M180
SYMATTR InstName S3
SYMATTR Value SH
SYMBOL sw 144 288 R0
SYMATTR InstName S4
SYMATTR Value SL
SYMBOL diode 288 240 M180
SYMATTR InstName D9
SYMATTR Value Dd
SYMBOL diode 288 368 M180
SYMATTR InstName D10
SYMATTR Value Dd
SYMBOL zener 368 368 M180
SYMATTR InstName D11
SYMATTR Value 25V
SYMBOL cap 208 176 R0
SYMATTR InstName C5
SYMATTR Value 22p
SYMBOL cap 208 304 R0
SYMATTR InstName C6
SYMATTR Value 22p
SYMATTR SpiceLine Rpar=100k
SYMBOL Digital\\and -16 -256 R0
SYMATTR InstName A3
SYMATTR Value Trise=100n
SYMATTR Value2 Tripdt=20n
SYMBOL Digital\\and -16 208 R0
SYMATTR InstName A6
SYMATTR Value Trise=100n
SYMATTR Value2 Tripdt=20n
SYMBOL Digital\\diffschmitt -256 -256 R0
SYMATTR InstName A1
SYMATTR Value Vt=1.9 Vh=1
SYMATTR Value2 Trise=1110n
SYMATTR SpiceLine Tfall=100n
SYMATTR SpiceLine2 Tripdt=50n