1 * Z:\trinary\code\circuits\mux3-1_test.asc
\r
2 V1 A 0 SINE(0 5 200Meg)
\r
3 V2 B 0 SINE(0 5 1000Meg)
\r
4 V3 C 0 PULSE(-5 5 0n 1p 1p 3n 6n)
\r
5 V4 S 0 PWL(0 -5 14n -5 15n 0 29n 0 30n 5)
\r
6 XX11 $G_Vdd $G_Vss tpower
\r
9 * block symbol definitions
\r
10 .subckt tpower Vdd Vss
\r
15 .subckt mux3-1 A B C S Q
\r
19 XXdecoder S CTRL_A CTRL_B CTRL_C decoder3-1
\r
22 .subckt tg IN_OUT OUT_IN CONTROL
\r
23 M1 OUT_IN _C IN_OUT $G_Vdd CD4007P
\r
24 M2 IN_OUT C OUT_IN $G_Vss CD4007N
\r
25 M3 $G_Vdd CONTROL _C $G_Vdd CD4007P
\r
26 M4 _C CONTROL $G_Vss $G_Vss CD4007N
\r
27 M5 $G_Vdd _C C $G_Vdd CD4007P
\r
28 M6 C _C $G_Vss $G_Vss CD4007N
\r
31 .subckt decoder3-1 IN OUT_i OUT_0 OUT_1
\r
33 XX1pti2 N1 OUT_1 pti
\r
35 XX0pti N0tnand OUT_0 pti
\r
37 XX0tnand IN N0sti N0tnand max
\r
41 Xinv IN OUT NC_01 NC_02 tinv
\r
45 Xinv IN NC_01 NC_02 OUT tinv
\r
49 Xinv IN NC_01 OUT NC_02 tinv
\r
52 .subckt max A B MAX_OUT
\r
54 XX2 P001 MAX_OUT sti
\r
57 .subckt tinv Vin PTI_Out STI_Out NTI_Out
\r
58 RP PTI_Out STI_Out 12k
\r
59 RN STI_Out NTI_Out 12k
\r
60 MN NTI_Out Vin $G_Vss $G_Vss CD4007N
\r
61 MP PTI_Out Vin $G_Vdd $G_Vdd CD4007P
\r
64 .subckt tnor A B TNOR_Out
\r
67 MN1 NN A $G_Vss $G_Vss CD4007N
\r
68 MP2 NI A $G_Vdd $G_Vdd CD4007P
\r
69 MN2 NN B $G_Vss $G_Vss CD4007N
\r
70 MP1 NI B NP $G_Vdd CD4007P
\r
75 .lib C:\PROGRA~1\LTC\SwCADIII\lib\cmp\standard.mos
\r