1 * Z:\trinary\code\circuits\mux9-3.asc
\r
2 XX1 IiA I0A I1A S QA mux3-1
\r
3 XX2 IiB I0B I1B S QB mux3-1
\r
4 XX3 IiC I0C I1C S QC mux3-1
\r
6 * block symbol definitions
\r
7 .subckt mux3-1 A B C S Q
\r
11 XXdecoder S CTRL_A CTRL_B CTRL_C decoder3-1
\r
14 .subckt tg IN_OUT OUT_IN CONTROL
\r
15 M1 OUT_IN _C IN_OUT $G_Vdd CD4007P
\r
16 M2 IN_OUT C OUT_IN $G_Vss CD4007N
\r
17 M3 $G_Vdd CONTROL _C $G_Vdd CD4007P
\r
18 M4 _C CONTROL $G_Vss $G_Vss CD4007N
\r
19 M5 $G_Vdd _C C $G_Vdd CD4007P
\r
20 M6 C _C $G_Vss $G_Vss CD4007N
\r
23 .subckt decoder3-1 IN OUT_i OUT_0 OUT_1
\r
25 XX1pti2 N1 OUT_1 pti
\r
27 XX0pti N0tnand OUT_0 pti
\r
29 XX0tnand IN N0sti N0tnand max
\r
33 Xinv IN OUT NC_01 NC_02 tinv
\r
37 Xinv IN NC_01 NC_02 OUT tinv
\r
41 Xinv IN NC_01 OUT NC_02 tinv
\r
44 .subckt max A B MAX_OUT
\r
46 XX2 P001 MAX_OUT sti
\r
49 .subckt tinv Vin PTI_Out STI_Out NTI_Out
\r
50 RP PTI_Out STI_Out 12k
\r
51 RN STI_Out NTI_Out 12k
\r
52 MN NTI_Out Vin $G_Vss $G_Vss CD4007N
\r
53 MP PTI_Out Vin $G_Vdd $G_Vdd CD4007P
\r
56 .subckt tnor A B TNOR_Out
\r
59 MN1 NN A $G_Vss $G_Vss CD4007N
\r
60 MP2 NI A $G_Vdd $G_Vdd CD4007P
\r
61 MN2 NN B $G_Vss $G_Vss CD4007N
\r
62 MP1 NI B NP $G_Vdd CD4007P
\r
67 .lib C:\PROGRA~1\LTC\SwCADIII\lib\cmp\standard.mos
\r
68 * 9:3 multiplexer\nSelect from one of three groups of 3 trits
\r