summaryrefslogtreecommitdiff
path: root/readme.txt
blob: 475b55614bce2998be3b220c21ef95292b796f24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37


Implementations of ternary logic gates as described by Douglas W Jones. All implementations were constructed in LTSpice, and all have matching symbols supplied for use as subcircuits.

For information on the behaviour of the gates, see http://homepage.cs.uiowa.edu/~jones/ternary/logic.shtml




/CMOS

Uses CMOS transistor logic. Custom MOSFETs are employed in order to ensure correct threshold voltages as well as allow the use of P-channel depletion mode MOSFETs.




/RMOS

Uses CMOS transistor logic with resistors to pull the output to the middle logical value where necessary. Custom MOSFETs are employed to ensure correct threshold voltages.

There are at least two ways of constructing this. The first way involves setting the thresholds of the positive and negative MOSFET networks to overlap, and placing resistors between each of them and the output. The output is then pulled to the middle value when both networks are active. The second way involves merely replacing one of the MOSFET networks from a CMOS circuit with a resistor.

Interestingly, the first approach does not work properly for dyadic gates.




/simulated

Ternary values are encoded in a pair of binary values, one to signal whether the ternary value is positive, and one for negative. This gives the mapping:

+ -> 01
0 -> 00
- -> 10

Gates are then constructed using LTSpice's built in binary logic gate functions. The value of 11 is illegal.