Update schedule after http://jeff.tk/wiki/Trinary/Meeting_Notes_20080810
[trinary.git] / bb / Decoder.net
blob61423feb3807622c7c3d4dc678bae33c3f517192
1 * Z:\College\Senior Year\Trinary Research Project\trinary\circuits\Decoder.asc\r
2 XX1 DEC_IN OUT_i OUT_0 OUT_1 decoder1-3\r
3 \r
4 * block symbol definitions\r
5 .subckt decoder1-3 IN OUT_i OUT_0 OUT_1\r
6 XX1pti IN IN_pti pti\r
7 XX1sti IN_pti OUT_1 sti\r
8 XXinti IN OUT_i nti\r
9 XX0nor OUT_1 OUT_i OUT_0 tnor\r
10 .ends decoder1-3\r
12 .subckt pti IN OUT\r
13 Xinv IN OUT NC_01 NC_02 tinv\r
14 .ends pti\r
16 .subckt sti IN OUT\r
17 XXinv IN NC_01 OUT NC_02 tinv\r
18 .ends sti\r
20 .subckt nti IN OUT\r
21 Xinv IN NC_01 NC_02 OUT tinv\r
22 .ends nti\r
24 .subckt tnor A B TNOR_Out\r
25 RP NP TNOR_Out 12k\r
26 RN TNOR_Out NN 12k\r
27 MN1 NN A $G_Vss $G_Vss CD4007N\r
28 MP2 NI A $G_Vdd $G_Vdd CD4007P\r
29 MN2 NN B $G_Vss $G_Vss CD4007N\r
30 MP1 NI B NP $G_Vdd CD4007P\r
31 .ends tnor\r
33 .subckt tinv Vin PTI_Out STI_Out NTI_Out\r
34 RP PTI_Out STI_Out 12k\r
35 RN STI_Out NTI_Out 12k\r
36 MN NTI_Out Vin $G_Vss $G_Vss CD4007N\r
37 MP PTI_Out Vin $G_Vdd $G_Vdd CD4007P\r
38 .ends tinv\r
40 .model NMOS NMOS\r
41 .model PMOS PMOS\r
42 .lib C:\PROGRA~1\LTC\SwCADIII\lib\cmp\standard.mos\r
43 .backanno\r
44 .end\r