* SPICE netlist
V1 VDC 0 0.9
V2 Vin N010 SINE(0 {vamp1} {X1/T})
A1 Vin 0 0 VCLK 0 0 V_snh 0 SAMPLEHOLD
V3 VDD 0 1.8
A2 N002 VSS VCLK VSS VSS ~PRBS_OUT PRBS_OUT VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A3 PRBS_OUT VSS VCLK VSS VSS VSS N003 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A4 N003 VSS VCLK VSS VSS VSS N004 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A5 N004 VSS VCLK VSS VSS VSS N005 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A6 N005 VSS VCLK VSS VSS VSS N006 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A7 N006 VSS VCLK VSS VSS VSS N007 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A8 N007 VSS VCLK VSS VSS VSS N001 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A9 N001 PRBS_OUT VSS VSS VSS N002 VSS VSS XOR Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
V4 VCLK 0 PULSE({VDD} {VSS} {Tp} 500p 500p {Tp} {T})
A10 VCLK 0 0 0 0 ~VCLK 0 0 BUF Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
G1 VDD N008 V_snh 0 {G}
G2 N011 0 V_snh 0 {G}
S1 N008 Vp1 CHARGE1 0 MYSW
S2 Vp1 N011 DISCHARGE1 0 MYSW
S3 N011 VDC ~DISCHARGE1 0 MYSW
S4 VDC N008 ~CHARGE1 0 MYSW
C1 Vp1 0 5p
S5 VDC Vp1 RESET1 0 MYSW
A11 ~VCLK PRBS_OUT ~RESET1 VDD VDD ~CHARGE1 CHARGE1 0 AND Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A12 ~VCLK ~PRBS_OUT ~RESET1 VDD VDD ~DISCHARGE1 DISCHARGE1 0 AND Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
V5 VSS 0 0
V6 N009 0 PULSE({VSS} {VDD} {4*T+Tp} 500p 500p {3*T+Tp} {8*T})
A13 RESET1 0 0 0 0 ~RESET1 0 0 BUF Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
G3 VDD N012 V_snh 0 {G}
G4 N013 0 V_snh 0 {G}
S6 N012 Vp2 CHARGE2 0 MYSW
S7 Vp2 N013 DISCHARGE2 0 MYSW
S8 N013 VDC ~DISCHARGE2 0 MYSW
S9 VDC N012 ~CHARGE2 0 MYSW
C2 Vp2 0 5p
S10 VDC Vp2 RESET2 0 MYSW
V7 RESET2 0 PULSE({VDD} {VSS} {4*T} 500p 500p {4*T+Tp1} {8*T})
A14 RESET2 0 0 0 0 ~RESET2 0 0 BUF Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A15 ~VCLK PRBS_OUT ~RESET2 VDD VDD ~CHARGE2 CHARGE2 0 AND Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A16 ~VCLK ~PRBS_OUT ~RESET2 VDD VDD ~DISCHARGE2 DISCHARGE2 0 AND Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A17 VSS VSS VSS INIT N009 0 RESET1 0 OR Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
V8 INIT 0 PULSE({VSS} {VDD} 0 500p 500p {Tp} {1000*T})
V9 N010 VDC SINE(0 {vamp2} {X2/T})
.include tsmc018.txt
.ic V(vp) = 0 V(Q0) = 0 V(Q1) = 0 V(D0) = 0 V(D1) = 0
.options gmin = 1e-10
.options abstol = 1e-10
.options reltol = 0.003
.param vamp1 = 0.2 X1 = 0.23
.param G = 0.0001
.tran {200*T} uic
.param td_DFF = 50p tff_rise = 500p
.param VDD=1.8V VSS=0V T=40n Tp=20n Tp1=20n
.param vamp2 = 0.2 X2 = 0.23

* LTspice schematic (.asc)
Version 4
SHEET 1 3312 2368
WIRE 600 -1152 -1176 -1152
WIRE -1112 -1136 -1176 -1136
WIRE -1160 -1120 -1176 -1120
WIRE -1256 -1104 -1480 -1104
WIRE -1160 -1104 -1160 -1120
WIRE -1160 -1104 -1176 -1104
WIRE -1160 -1088 -1160 -1104
WIRE -1160 -1088 -1176 -1088
WIRE -1208 -1056 -1208 -1088
WIRE -1192 -1056 -1208 -1056
WIRE -1160 -1056 -1160 -1088
WIRE -1160 -1056 -1192 -1056
WIRE 1032 -1056 1032 -1120
WIRE 1176 -1056 1176 -1120
WIRE -968 -960 -1320 -960
WIRE -648 -960 -968 -960
WIRE -376 -960 -648 -960
WIRE -88 -960 -376 -960
WIRE 184 -960 -88 -960
WIRE 488 -960 184 -960
WIRE 776 -960 488 -960
WIRE 856 -960 776 -960
WIRE -1320 -896 -1320 -960
WIRE -968 -896 -968 -960
WIRE -648 -896 -648 -960
WIRE -376 -896 -376 -960
WIRE -88 -896 -88 -960
WIRE 184 -896 184 -960
WIRE 488 -896 488 -960
WIRE -1480 -848 -1480 -1104
WIRE -1400 -848 -1480 -848
WIRE -1160 -848 -1240 -848
WIRE -1112 -848 -1112 -1136
WIRE -1112 -848 -1160 -848
WIRE -1048 -848 -1112 -848
WIRE -728 -848 -888 -848
WIRE -456 -848 -568 -848
WIRE -168 -848 -296 -848
WIRE 104 -848 -8 -848
WIRE 408 -848 264 -848
WIRE 600 -848 600 -1152
WIRE 600 -848 568 -848
WIRE -1400 -800 -1496 -800
WIRE -1160 -800 -1224 -800
WIRE -1128 -800 -1160 -800
WIRE -1048 -800 -1080 -800
WIRE -728 -800 -760 -800
WIRE -456 -800 -472 -800
WIRE -168 -800 -184 -800
WIRE 104 -800 72 -800
WIRE 408 -800 376 -800
WIRE -1496 -720 -1496 -800
WIRE -1496 -720 -1576 -720
WIRE -1080 -720 -1080 -800
WIRE -1080 -720 -1496 -720
WIRE -808 -720 -1080 -720
WIRE -760 -720 -760 -800
WIRE -760 -720 -808 -720
WIRE -472 -720 -472 -800
WIRE -472 -720 -760 -720
WIRE -184 -720 -184 -800
WIRE -184 -720 -472 -720
WIRE 72 -720 72 -800
WIRE 72 -720 -184 -720
WIRE 376 -720 376 -800
WIRE 376 -720 72 -720
WIRE -1496 -704 -1496 -720
WIRE -1400 -688 -1400 -752
WIRE -1320 -688 -1320 -752
WIRE -1320 -688 -1400 -688
WIRE -1048 -688 -1048 -752
WIRE -1048 -688 -1320 -688
WIRE -968 -688 -968 -752
WIRE -968 -688 -1048 -688
WIRE -728 -688 -728 -752
WIRE -728 -688 -968 -688
WIRE -648 -688 -648 -752
WIRE -648 -688 -728 -688
WIRE -456 -688 -456 -752
WIRE -456 -688 -648 -688
WIRE -376 -688 -376 -752
WIRE -376 -688 -456 -688
WIRE -280 -688 -376 -688
WIRE -168 -688 -168 -752
WIRE -168 -688 -280 -688
WIRE -88 -688 -88 -752
WIRE -88 -688 -168 -688
WIRE 104 -688 104 -752
WIRE 104 -688 -88 -688
WIRE 184 -688 184 -752
WIRE 184 -688 104 -688
WIRE 408 -688 408 -752
WIRE 408 -688 184 -688
WIRE 488 -688 488 -752
WIRE 488 -688 408 -688
WIRE -280 -640 -280 -688
WIRE -280 -624 -280 -640
WIRE -1576 -560 -1576 -720
WIRE -1576 -448 -1576 -496
WIRE -1576 -432 -1576 -448
WIRE 56 -320 56 -384
WIRE -984 -288 -1096 -288
WIRE -584 -288 -984 -288
WIRE 200 -272 200 -320
WIRE -584 -256 -632 -256
WIRE 8 -256 -56 -256
WIRE -312 -240 -408 -240
WIRE -216 -240 -312 -240
WIRE 56 -224 56 -240
WIRE 184 -224 56 -224
WIRE 376 -224 264 -224
WIRE -584 -192 -648 -192
WIRE 56 -192 56 -224
WIRE 376 -176 376 -224
WIRE 520 -176 376 -176
WIRE 1096 -176 1016 -176
WIRE -1608 -160 -1624 -160
WIRE -1544 -160 -1608 -160
WIRE -1544 -144 -1624 -144
WIRE -1384 -144 -1480 -144
WIRE -1368 -144 -1384 -144
WIRE 1272 -144 1272 -192
WIRE 1304 -144 1272 -144
WIRE -1592 -128 -1608 -128
WIRE -1544 -128 -1592 -128
WIRE 8 -128 -40 -128
WIRE 1272 -128 1272 -144
WIRE 1304 -128 1272 -128
WIRE 1448 -128 1448 -160
WIRE 1448 -128 1368 -128
WIRE 1528 -128 1448 -128
WIRE 1640 -128 1592 -128
WIRE 1656 -128 1640 -128
WIRE -1544 -112 -1576 -112
WIRE -1368 -112 -1480 -112
WIRE 1272 -112 1272 -128
WIRE 1304 -112 1272 -112
WIRE -1624 -96 -1656 -96
WIRE -1576 -96 -1576 -112
WIRE -1576 -96 -1624 -96
WIRE -1544 -96 -1576 -96
WIRE 520 -96 520 -176
WIRE 520 -96 504 -96
WIRE 1096 -96 1096 -176
WIRE 1176 -96 1096 -96
WIRE 1304 -96 1176 -96
WIRE 56 -80 56 -112
WIRE 232 -80 56 -80
WIRE 312 -80 232 -80
WIRE 376 -80 312 -80
WIRE 1304 -80 1096 -80
WIRE -1096 -64 -1096 -208
WIRE 56 -48 56 -80
WIRE 648 -48 648 -112
WIRE -1576 -16 -1608 -16
WIRE -1528 -16 -1576 -16
WIRE -1528 0 -1608 0
WIRE -1368 0 -1464 0
WIRE -1352 0 -1368 0
WIRE 376 0 376 -80
WIRE 632 0 376 0
WIRE -1576 16 -1592 16
WIRE -1528 16 -1576 16
WIRE 8 16 -40 16
WIRE -1528 32 -1560 32
WIRE -1320 32 -1464 32
WIRE -1608 48 -1640 48
WIRE -1560 48 -1560 32
WIRE -1560 48 -1608 48
WIRE -1528 48 -1560 48
WIRE 1096 48 1096 0
WIRE 56 96 56 32
WIRE 200 96 56 96
WIRE 504 96 504 -96
WIRE 504 96 280 96
WIRE 8 160 -56 160
WIRE 56 208 56 176
WIRE 264 208 264 144
WIRE -1096 256 -1096 16
WIRE 1064 256 1064 224
WIRE 1144 256 1064 256
WIRE 1256 256 1208 256
WIRE 1272 256 1256 256
WIRE -1096 288 -1096 256
WIRE 1064 320 1064 256
WIRE -1096 416 -1096 368
WIRE 1064 448 1064 400
WIRE -1464 592 -1480 592
WIRE -1400 592 -1464 592
WIRE -1400 608 -1480 608
WIRE -1240 608 -1336 608
WIRE -1224 608 -1240 608
WIRE -1448 624 -1464 624
WIRE -1400 624 -1448 624
WIRE -1400 640 -1432 640
WIRE -1224 640 -1336 640
WIRE -1480 656 -1512 656
WIRE -1432 656 -1432 640
WIRE -1432 656 -1480 656
WIRE -1400 656 -1432 656
WIRE 56 656 56 592
WIRE 200 704 200 656
WIRE 8 720 -56 720
WIRE -1432 736 -1464 736
WIRE -1384 736 -1432 736
WIRE -1384 752 -1464 752
WIRE -1224 752 -1320 752
WIRE -1208 752 -1224 752
WIRE 56 752 56 736
WIRE 184 752 56 752
WIRE 376 752 264 752
WIRE -1432 768 -1448 768
WIRE -1384 768 -1432 768
WIRE -1384 784 -1416 784
WIRE -1176 784 -1320 784
WIRE 56 784 56 752
WIRE -1464 800 -1496 800
WIRE -1416 800 -1416 784
WIRE -1416 800 -1464 800
WIRE -1384 800 -1416 800
WIRE 376 800 376 752
WIRE 520 800 376 800
WIRE 8 848 -40 848
WIRE 520 880 520 800
WIRE 520 880 504 880
WIRE 56 896 56 864
WIRE 232 896 56 896
WIRE 312 896 232 896
WIRE 376 896 312 896
WIRE 56 928 56 896
WIRE 648 928 648 864
WIRE 376 976 376 896
WIRE 632 976 376 976
WIRE 8 992 -40 992
WIRE 56 1072 56 1008
WIRE 200 1072 56 1072
WIRE 504 1072 504 880
WIRE 504 1072 280 1072
WIRE 8 1136 -56 1136
WIRE 56 1184 56 1152
WIRE 264 1184 264 1120
FLAG -1096 416 0
FLAG -1096 256 VDC
FLAG -984 -288 Vin
FLAG -632 -256 0
FLAG 1032 -976 0
FLAG 1032 -1120 VDD
FLAG -648 -192 VCLK
FLAG -312 -240 V_snh
FLAG -1496 -624 0
FLAG -1192 -1056 VSS
FLAG -280 -640 VSS
FLAG -1160 -848 PRBS_OUT
FLAG -1160 -800 ~PRBS_OUT
FLAG 776 -960 VSS
FLAG -808 -720 VCLK
FLAG -1576 -448 ~VCLK
FLAG 56 208 0
FLAG 56 -384 VDD
FLAG 232 -16 0
FLAG 8 112 0
FLAG 8 -304 0
FLAG 312 -80 Vp1
FLAG 520 -176 VDC
FLAG -56 -256 V_snh
FLAG -56 160 V_snh
FLAG 8 -176 0
FLAG 8 -32 0
FLAG 216 144 0
FLAG 248 -272 0
FLAG 696 -48 0
FLAG -1624 -144 PRBS_OUT
FLAG -1384 -144 CHARGE1
FLAG -1592 -128 ~RESET1
FLAG -1624 -96 VDD
FLAG -1608 0 ~PRBS_OUT
FLAG -1368 0 DISCHARGE1
FLAG -1576 16 ~RESET1
FLAG -1608 48 VDD
FLAG -1608 -160 ~VCLK
FLAG -1576 -16 ~VCLK
FLAG -40 -128 CHARGE1
FLAG 200 -320 ~CHARGE1
FLAG -40 16 DISCHARGE1
FLAG 264 208 ~DISCHARGE1
FLAG 648 -112 RESET1
FLAG -1368 -112 ~CHARGE1
FLAG -1320 32 ~DISCHARGE1
FLAG 1176 -976 0
FLAG 1176 -1120 VSS
FLAG 1096 48 0
FLAG 1448 -160 RESET1
FLAG 712 0 VDC
FLAG 1640 -128 ~RESET1
FLAG 56 1184 0
FLAG 56 592 VDD
FLAG 232 960 0
FLAG 8 1088 0
FLAG 8 672 0
FLAG 312 896 Vp2
FLAG 520 800 VDC
FLAG -56 720 V_snh
FLAG -56 1136 V_snh
FLAG 8 800 0
FLAG 8 944 0
FLAG 216 1120 0
FLAG 248 704 0
FLAG 696 928 0
FLAG -40 848 CHARGE2
FLAG 200 656 ~CHARGE2
FLAG -40 992 DISCHARGE2
FLAG 264 1184 ~DISCHARGE2
FLAG 648 864 RESET2
FLAG 712 976 VDC
FLAG 1064 448 0
FLAG 1064 224 RESET2
FLAG 1256 256 ~RESET2
FLAG -1480 608 PRBS_OUT
FLAG -1240 608 CHARGE2
FLAG -1448 624 ~RESET2
FLAG -1480 656 VDD
FLAG -1464 752 ~PRBS_OUT
FLAG -1224 752 DISCHARGE2
FLAG -1432 768 ~RESET2
FLAG -1464 800 VDD
FLAG -1464 592 ~VCLK
FLAG -1432 736 ~VCLK
FLAG -1224 640 ~CHARGE2
FLAG -1176 784 ~DISCHARGE2
FLAG 1272 -192 VSS
FLAG 1016 -96 0
FLAG 1176 -96 INIT
SYMBOL voltage -1096 272 R0
SYMATTR InstName V1
SYMATTR Value 0.9
SYMBOL voltage -1096 -304 R0
SYMATTR InstName V2
SYMATTR Value SINE(0 {vamp1} {X1/T})
SYMBOL SpecialFunctions\\sample -504 -256 R0
SYMATTR InstName A1
SYMBOL voltage 1032 -1072 R0
SYMATTR InstName V3
SYMATTR Value 1.8
SYMBOL Digital\\dflop -1320 -896 R0
SYMATTR InstName A2
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop -968 -896 R0
SYMATTR InstName A3
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop -648 -896 R0
SYMATTR InstName A4
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop -376 -896 R0
SYMATTR InstName A5
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop -88 -896 R0
SYMATTR InstName A6
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop 184 -896 R0
SYMATTR InstName A7
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop 488 -896 R0
SYMATTR InstName A8
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\xor -1224 -1184 M0
SYMATTR InstName A9
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL voltage -1496 -720 R0
SYMATTR InstName V4
SYMATTR Value PULSE({VDD} {VSS} {Tp} 500p 500p {Tp} {T})
SYMBOL Digital\\inv -1512 -560 R90
SYMATTR InstName A10
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL g 56 -224 M180
SYMATTR InstName G1
SYMATTR Value {G}
SYMBOL g 56 192 M180
SYMATTR InstName G2
SYMATTR Value {G}
SYMBOL sw 56 -208 R0
SYMATTR InstName S1
SYMATTR Value MYSW
SYMBOL sw 56 -64 R0
SYMATTR InstName S2
SYMATTR Value MYSW
SYMBOL sw 184 96 R270
SYMATTR InstName S3
SYMATTR Value MYSW
SYMBOL sw 280 -224 R90
SYMATTR InstName S4
SYMATTR Value MYSW
SYMBOL cap 216 -80 R0
SYMATTR InstName C1
SYMATTR Value 5p
SYMBOL sw 728 0 R90
SYMATTR InstName S5
SYMATTR Value MYSW
SYMBOL Digital\\and -1512 -192 R0
SYMATTR InstName A11
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL Digital\\and -1496 -48 R0
SYMATTR InstName A12
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL voltage 1176 -1072 R0
SYMATTR InstName V5
SYMATTR Value 0
SYMBOL voltage 1096 -96 R0
SYMATTR InstName V6
SYMATTR Value PULSE({VSS} {VDD} {4*T+Tp} 500p 500p {3*T+Tp} {8*T})
SYMBOL Digital\\inv 1528 -192 R0
SYMATTR InstName A13
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL g 56 752 M180
SYMATTR InstName G3
SYMATTR Value {G}
SYMBOL g 56 1168 M180
SYMATTR InstName G4
SYMATTR Value {G}
SYMBOL sw 56 768 R0
SYMATTR InstName S6
SYMATTR Value MYSW
SYMBOL sw 56 912 R0
SYMATTR InstName S7
SYMATTR Value MYSW
SYMBOL sw 184 1072 R270
SYMATTR InstName S8
SYMATTR Value MYSW
SYMBOL sw 280 752 R90
SYMATTR InstName S9
SYMATTR Value MYSW
SYMBOL cap 216 896 R0
SYMATTR InstName C2
SYMATTR Value 5p
SYMBOL sw 728 976 R90
SYMATTR InstName S10
SYMATTR Value MYSW
SYMBOL voltage 1064 304 R0
SYMATTR InstName V7
SYMATTR Value PULSE({VDD} {VSS} {4*T} 500p 500p {4*T+Tp1} {8*T})
SYMBOL Digital\\inv 1144 192 R0
SYMATTR InstName A14
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL Digital\\and -1368 560 R0
SYMATTR InstName A15
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL Digital\\and -1352 704 R0
SYMATTR InstName A16
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL Digital\\or 1336 -176 R0
SYMATTR InstName A17
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL voltage 1016 -192 R0
SYMATTR InstName V8
SYMATTR Value PULSE({VSS} {VDD} 0 500p 500p {Tp} {1000*T})
SYMBOL voltage -1096 -80 R0
SYMATTR InstName V9
SYMATTR Value SINE(0 {vamp2} {X2/T})