* SPICE netlist
V1 VDD 0 1.8
A1 N003 VSS VCLK VSS VSS ~PRBS_OUT PRBS_OUT VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A2 PRBS_OUT VSS VCLK VSS VSS VSS N004 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A3 N004 VSS VCLK VSS VSS VSS N005 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A4 N005 VSS VCLK VSS VSS VSS N006 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A5 N006 VSS VCLK VSS VSS VSS N007 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A6 N007 VSS VCLK VSS VSS VSS N008 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A7 N008 VSS VCLK VSS VSS VSS N009 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A8 N001 N002 VSS VSS VSS N003 VSS VSS XOR Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
V2 VCLK 0 PULSE({VSS} {VDD} {Tp} 500p 500p {Tp} {T})
A9 VCLK 0 0 0 0 ~VCLK 0 0 BUF Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
V3 VSS 0 0
A10 N009 VSS VCLK VSS VSS VSS N010 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A11 N010 VSS VCLK VSS VSS VSS N002 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A12 N002 VSS VCLK VSS VSS VSS N011 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
A13 N011 VSS VCLK VSS VSS VSS N001 VSS DFLOP Vhigh = 1.8 Vlow = 0 Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
.include tsmc018.txt
.param td_DFF = 50p tff_rise = 50p
.param VDD=1.8V VSS=0V T=40n Tp=20n Tp1=20n
.tran {1000*T}
.options gmin = 1e-10
.options abstol = 1e-10
.options reltol = 0.003
.ic V(Q0) = 0 V(Q1) = 0 V(D0) = 0 V(D1) = 0

* LTspice schematic (.asc)
Version 4
SHEET 1 3648 752
WIRE 1824 -344 -1232 -344
WIRE 1168 -328 -1232 -328
WIRE -1216 -312 -1232 -312
WIRE -1312 -296 -1536 -296
WIRE -1216 -296 -1216 -312
WIRE -1216 -296 -1232 -296
WIRE -1216 -280 -1216 -296
WIRE -1216 -280 -1232 -280
WIRE -1264 -248 -1264 -280
WIRE -1248 -248 -1264 -248
WIRE -1216 -248 -1216 -280
WIRE -1216 -248 -1248 -248
WIRE -1824 -184 -1824 -248
WIRE -1680 -184 -1680 -248
WIRE -1024 -152 -1376 -152
WIRE -704 -152 -1024 -152
WIRE -432 -152 -704 -152
WIRE -144 -152 -432 -152
WIRE 128 -152 -144 -152
WIRE 432 -152 128 -152
WIRE 640 -152 432 -152
WIRE 672 -152 640 -152
WIRE 1024 -152 672 -152
WIRE 1344 -152 1024 -152
WIRE 1616 -152 1344 -152
WIRE -1376 -88 -1376 -152
WIRE -1024 -88 -1024 -152
WIRE -704 -88 -704 -152
WIRE -432 -88 -432 -152
WIRE -144 -88 -144 -152
WIRE 128 -88 128 -152
WIRE 432 -88 432 -152
WIRE 672 -88 672 -152
WIRE 1024 -88 1024 -152
WIRE 1344 -88 1344 -152
WIRE 1616 -88 1616 -152
WIRE -1536 -40 -1536 -296
WIRE -1456 -40 -1536 -40
WIRE -1216 -40 -1296 -40
WIRE -1104 -40 -1216 -40
WIRE -784 -40 -944 -40
WIRE -512 -40 -624 -40
WIRE -224 -40 -352 -40
WIRE 48 -40 -64 -40
WIRE 352 -40 208 -40
WIRE 592 -40 512 -40
WIRE 944 -40 752 -40
WIRE 1168 -40 1168 -328
WIRE 1168 -40 1104 -40
WIRE 1264 -40 1168 -40
WIRE 1536 -40 1424 -40
WIRE 1824 -40 1824 -344
WIRE 1824 -40 1696 -40
WIRE -1456 8 -1552 8
WIRE -1216 8 -1280 8
WIRE -1184 8 -1216 8
WIRE -1104 8 -1136 8
WIRE -784 8 -816 8
WIRE -512 8 -528 8
WIRE -224 8 -240 8
WIRE 48 8 16 8
WIRE 352 8 320 8
WIRE 592 8 560 8
WIRE 944 8 912 8
WIRE 1264 8 1232 8
WIRE 1536 8 1520 8
WIRE -1552 88 -1552 8
WIRE -1552 88 -1632 88
WIRE -1136 88 -1136 8
WIRE -1136 88 -1552 88
WIRE -864 88 -1136 88
WIRE -816 88 -816 8
WIRE -816 88 -864 88
WIRE -528 88 -528 8
WIRE -528 88 -816 88
WIRE -240 88 -240 8
WIRE -240 88 -528 88
WIRE 16 88 16 8
WIRE 16 88 -240 88
WIRE 320 88 320 8
WIRE 320 88 16 88
WIRE 560 88 560 8
WIRE 560 88 320 88
WIRE 912 88 912 8
WIRE 912 88 560 88
WIRE 1232 88 1232 8
WIRE 1232 88 912 88
WIRE 1520 88 1520 8
WIRE 1520 88 1232 88
WIRE -1552 104 -1552 88
WIRE -1456 120 -1456 56
WIRE -1376 120 -1376 56
WIRE -1376 120 -1456 120
WIRE -1104 120 -1104 56
WIRE -1104 120 -1376 120
WIRE -1024 120 -1024 56
WIRE -1024 120 -1104 120
WIRE -784 120 -784 56
WIRE -784 120 -1024 120
WIRE -704 120 -704 56
WIRE -704 120 -784 120
WIRE -512 120 -512 56
WIRE -512 120 -704 120
WIRE -432 120 -432 56
WIRE -432 120 -512 120
WIRE -336 120 -432 120
WIRE -224 120 -224 56
WIRE -224 120 -336 120
WIRE -144 120 -144 56
WIRE -144 120 -224 120
WIRE 48 120 48 56
WIRE 48 120 -144 120
WIRE 128 120 128 56
WIRE 128 120 48 120
WIRE 352 120 352 56
WIRE 352 120 128 120
WIRE 432 120 432 56
WIRE 432 120 352 120
WIRE 592 120 592 56
WIRE 592 120 432 120
WIRE 672 120 672 56
WIRE 672 120 592 120
WIRE 944 120 944 56
WIRE 944 120 672 120
WIRE 1024 120 1024 56
WIRE 1024 120 944 120
WIRE 1264 120 1264 56
WIRE 1264 120 1024 120
WIRE 1344 120 1344 56
WIRE 1344 120 1264 120
WIRE 1536 120 1536 56
WIRE 1536 120 1344 120
WIRE 1616 120 1616 56
WIRE 1616 120 1536 120
WIRE -336 168 -336 120
WIRE -336 184 -336 168
WIRE -1632 248 -1632 88
WIRE -1632 360 -1632 312
WIRE -1632 376 -1632 360
FLAG -1824 -104 0
FLAG -1824 -248 VDD
FLAG -1552 184 0
FLAG -1248 -248 VSS
FLAG -336 168 VSS
FLAG -1216 -40 PRBS_OUT
FLAG -1216 8 ~PRBS_OUT
FLAG 640 -152 VSS
FLAG -864 88 VCLK
FLAG -1632 360 ~VCLK
FLAG -1680 -104 0
FLAG -1680 -248 VSS
SYMBOL voltage -1824 -200 R0
SYMATTR InstName V1
SYMATTR Value 1.8
SYMBOL Digital\\dflop -1376 -88 R0
SYMATTR InstName A1
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop -1024 -88 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 -704 -88 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 -432 -88 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 -144 -88 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 128 -88 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 432 -88 R0
SYMATTR InstName A7
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\xor -1280 -376 M0
SYMATTR InstName A8
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL voltage -1552 88 R0
SYMATTR InstName V2
SYMATTR Value PULSE({VSS} {VDD} {Tp} 500p 500p {Tp} {T})
SYMBOL Digital\\inv -1568 248 R90
SYMATTR InstName A9
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMBOL voltage -1680 -200 R0
SYMATTR InstName V3
SYMATTR Value 0
SYMBOL Digital\\dflop 672 -88 R0
SYMATTR InstName A10
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop 1024 -88 R0
SYMATTR InstName A11
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop 1344 -88 R0
SYMATTR InstName A12
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0
SYMBOL Digital\\dflop 1616 -88 R0
SYMATTR InstName A13
SYMATTR SpiceLine Trise = {tff_rise} Tfall = {tff_rise} Td = {td_DFF}
SYMATTR Value2 Vhigh = 1.8 Vlow = 0