1 * Z:\trinary\code\circuits\swrom-blank.asc
\r
2 XXrom NiA NiB NiC N0A N0B N0C N1A N1B N1C ADDRESS D2 D1 D0 mux9-3
\r
12 XX1 $G_Vdd $G_Vss tpower
\r
14 * block symbol definitions
\r
15 .subckt mux9-3 IiA IiB IiC I0A I0B I0C I1A I1B I1C S QC QB QA
\r
16 XXmux1 IiA I0A I1A S QA mux3-1
\r
17 XXmux2 IiB I0B I1B S QB mux3-1
\r
18 XXmux3 IiC I0C I1C S QC mux3-1
\r
21 .subckt sp3t-trit COM
\r
22 XXsw $G_Vss 0 $G_Vdd COM sp3t
\r
25 .subckt tpower Vdd Vss
\r
30 .subckt mux3-1 A B C S Q
\r
34 XXdecoder S CTRL_A CTRL_B CTRL_C decoder3-1
\r
37 .subckt sp3t 1 2 3 COM
\r
43 .subckt tg IN_OUT OUT_IN CONTROL
\r
44 M1 OUT_IN _C IN_OUT $G_Vdd CD4007P
\r
45 M2 IN_OUT C OUT_IN $G_Vss CD4007N
\r
46 M3 $G_Vdd CONTROL _C $G_Vdd CD4007P
\r
47 M4 _C CONTROL $G_Vss $G_Vss CD4007N
\r
48 M5 $G_Vdd _C C $G_Vdd CD4007P
\r
49 M6 C _C $G_Vss $G_Vss CD4007N
\r
52 .subckt decoder3-1 IN OUT_i OUT_0 OUT_1
\r
54 XXPpti2 NP OUT_1 pti
\r
56 XXZpti NZtnand OUT_0 pti
\r
58 XXZtnand IN NZsti NZtnand max
\r
62 Xinv IN OUT NC_01 NC_02 tinv
\r
66 Xinv IN NC_01 NC_02 OUT tinv
\r
70 XXinv IN NC_01 OUT NC_02 tinv
\r
73 .subckt max A B MAX_OUT
\r
74 XXtnor A B AtnorB tnor
\r
75 XXsti_tor AtnorB MAX_OUT sti
\r
78 .subckt tinv Vin PTI_Out STI_Out NTI_Out
\r
79 RP PTI_Out STI_Out 12k
\r
80 RN STI_Out NTI_Out 12k
\r
81 MN NTI_Out Vin $G_Vss $G_Vss CD4007N
\r
82 MP PTI_Out Vin $G_Vdd $G_Vdd CD4007P
\r
85 .subckt tnor A B TNOR_Out
\r
88 MN1 NN A $G_Vss $G_Vss CD4007N
\r
89 MP2 NI A $G_Vdd $G_Vdd CD4007P
\r
90 MN2 NN B $G_Vss $G_Vss CD4007N
\r
91 MP1 NI B NP $G_Vdd CD4007P
\r
96 .lib C:\PROGRA~1\LTC\SwCADIII\lib\cmp\standard.mos
\r