Two-line ternary circuit
By combining a two-wire ternary circuit with binary logic gates and inverters, the problems of low noise margin and low symmetry in existing ternary circuits are solved, achieving efficient ternary operations and high-impedance operations, and improving the symmetry and speed of the circuit.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- PEKING UNIV
- Filing Date
- 2025-01-22
- Publication Date
- 2026-07-30
AI Technical Summary
Existing ternary circuits have low noise margins, low TFET implementation speeds, difficulty in achieving efficient computation, and inability to achieve high-impedance state computation. They also have low circuit symmetry, requiring the introduction of two's complement and misalignment.
A two-wire ternary circuit is used to perform ternary operations through two-wire input and output terminals. Combined with binary logic gates and logic gates such as inverters, NAND gates, and NOR gates, high-impedance operation is achieved, improving the circuit symmetry.
It achieves efficient ternary arithmetic, can introduce special states, has good symmetry, and has a transistor logic depth of 1 or 2, without reducing circuit speed and avoiding complex operations such as two's complement.
Smart Images

Figure CN2025073798_30072026_PF_FP_ABST
Abstract
Description
Two-wire ternary circuit Technical Field
[0001] This disclosure relates to a two-wire ternary circuit. Background Technology
[0002] In ternary circuits, ternary operations are performed using three state signals, such as 0, 1, and 2. Current ternary circuits suffer from low noise margins (due to the need to consider three different voltage levels), slow TFET implementation speed, and limited readily available chip implementation options, making efficient computation impossible. Furthermore, the non-parallel nature of single-wire representations leads to low circuit symmetry, requiring the introduction of complement representation and addressing issues like misalignment. Additionally, current ternary circuits struggle to implement operations in special states (such as high-impedance states). For example, GPIO ports typically exist in high, low, and high-impedance states; existing ternary circuits cannot implement high-impedance operations, nor can binary circuits. Summary of the Invention
[0003] According to one aspect of this disclosure, a two-wire ternary circuit is provided for performing ternary operations, comprising: one or more two-wire input terminals, each two-wire input terminal including a high-line input terminal for inputting a high-line input signal and a low-line input terminal for inputting a low-line input signal, wherein the high-line input signal and the low-line input signal are respectively a high-level signal and a low-level signal; and one two-wire output terminal including a high-line output terminal for outputting a high-line output signal and a low-line output terminal for outputting a low-line output signal, wherein the high-line output signal and the low-line output signal are respectively a high-level signal and a low-level signal, wherein the high-line output terminal and the low-line output terminal are respectively connected to the outputs of two binary logic gates; or respectively connected to the output of a binary logic gate and one of the high-line input terminal and the low-line input terminal; or respectively connected to the low-line input terminal and the high-line input terminal.
[0004] A two-wire ternary circuit according to an embodiment of the present disclosure further includes: binary logic gates, wherein the number of binary logic gates is one or more, and at least a portion of the inputs of the binary logic gates are connected to at least one of the high-line inputs and the low-line inputs.
[0005] According to an embodiment of the present disclosure, the two-wire ternary circuit is an inverter circuit, wherein there is one two-wire input terminal and one two-wire output terminal, wherein the high-line input terminal and the low-line input terminal of the two-wire input terminal are interleaved and respectively connected to the low-line output terminal and the high-line output terminal of the two-wire output terminal.
[0006] According to an embodiment of the present disclosure, the two-wire ternary circuit is a NAND gate circuit. The binary logic gate includes a NAND gate, a NOR gate, a first inverter, and a second inverter. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the NAND gate, and the low-line input terminal of the first two-wire input terminal is connected to one input of the NOR gate. The high-line input terminal of the second two-wire input terminal is connected to the other input of the NAND gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the NOR gate. The outputs of the NAND gate and the NOR gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are interleaved to output a low-line output signal and a high-line output signal, respectively.
[0007] According to an embodiment of the present disclosure, a two-wire ternary circuit is an AND gate circuit. The binary logic gate includes a NAND gate, a NOR gate, a first inverter, and a second inverter. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the NAND gate, and the low-line input terminal of the first two-wire input terminal is connected to one input of the NOR gate. The high-line input terminal of the second two-wire input terminal is connected to the other input of the NAND gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the NOR gate. The outputs of the NAND gate and the NOR gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved and output a high-line output signal and a low-line output signal, respectively.
[0008] According to an embodiment of the present disclosure, the two-wire ternary circuit is a NOR gate circuit. The binary logic gate includes a NOR gate, a NAND gate, a first inverter, and a second inverter. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the NOR gate, and the low-line input terminal of the first two-wire input terminal is connected to one input of the NAND gate. The high-line input terminal of the second two-wire input terminal is connected to the other input of the NOR gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the NAND gate. The outputs of the NOR gate and the NAND gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are interleaved to output a low-line output signal and a high-line output signal, respectively.
[0009] According to an embodiment of the present disclosure, a two-wire ternary circuit is an OR gate circuit. The binary logic gate includes a NOR gate, a NAND gate, a first inverter, and a second inverter. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the NOR gate, and the low-line input terminal of the first two-wire input terminal is connected to one input of the NAND gate. The high-line input terminal of the second two-wire input terminal is connected to the other input of the NOR gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the NAND gate. The outputs of the NOR gate and the NAND gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved and output a high-line output signal and a low-line output signal, respectively.
[0010] According to an embodiment of the present disclosure, the two-wire ternary circuit is an incrementing gate circuit. The binary logic gate includes a NOR gate. The number of two-wire input terminals is one. The high-line input terminal of the two-wire input terminal is connected to one input of the NOR gate, and the low-line input terminal of the two-wire input terminal is connected to the other input of the NOR gate. The NOR gate outputs a high-line output signal, and the low-line output signal is the high-line input signal of the high-line input terminal.
[0011] According to an embodiment of the present disclosure, the two-wire ternary circuit is a decrementing gate circuit. The binary logic gate includes a NOR gate. The number of two-wire input terminals is one. The high-line input terminal of the two-wire input terminal is connected to one input of the NOR gate, and the low-line input terminal of the two-wire input terminal is connected to the other input of the NOR gate. The NOR gate outputs a low-line output signal, and the high-line output signal is the low-line input signal of the low-line input terminal.
[0012] According to an embodiment of the present disclosure, the two-wire ternary circuit is an inverter circuit. The binary logic gate includes a first inverter and a second inverter. The number of two-wire input terminals is one. The high-line input terminal and the low-line input terminal of the two-wire input terminal are respectively connected to the input of the first inverter and the input of the second inverter. The outputs of the first inverter and the second inverter are interleaved to output a low-line output signal and a high-line output signal, respectively.
[0013] According to an embodiment of the present disclosure, the two-wire ternary circuit is a NAND gate circuit. The binary logic gate includes a first NAND gate and a second NAND gate. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the first NAND gate, and the high-line input terminal of the second two-wire input terminal is connected to the other input of the first NAND gate. The low-line input terminal of the first two-wire input terminal is connected to one input of the second NAND gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the second NAND gate. The outputs of the first NAND gate and the second NAND gate are interleaved to output a low-line output signal and a high-line output signal, respectively.
[0014] According to an embodiment of the present disclosure, a two-wire ternary circuit is an AND gate circuit. The binary logic gate includes a first NAND gate, a second NAND gate, a first inverter, and a second inverter. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the first NAND gate, and the high-line input terminal of the second two-wire input terminal is connected to the other input of the first NAND gate. The low-line input terminal of the first two-wire input terminal is connected to one input of the second NAND gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the second NAND gate. The outputs of the first NAND gate and the second NAND gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved, and output high-line output signals and low-line output signals respectively.
[0015] According to an embodiment of the present disclosure, the two-wire ternary circuit is a NOR gate circuit. The binary logic gate includes a first NOR gate and a second NOR gate. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the first NOR gate, and the high-line input terminal of the second two-wire input terminal is connected to the other input of the first NOR gate. The low-line input terminal of the first two-wire input terminal is connected to one input of the second NOR gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the second NOR gate. The outputs of the first NOR gate and the second NOR gate are interleaved to output a low-line output signal and a high-line output signal, respectively.
[0016] According to an embodiment of the present disclosure, a two-wire ternary circuit is an OR gate circuit. The binary logic gate includes a first NOR gate, a second NOR gate, a first inverter, and a second inverter. The number of two-wire input terminals is two. The high-line input terminal of the first two-wire input terminal is connected to one input of the first NOR gate, and the high-line input terminal of the second two-wire input terminal is connected to the other input of the first NOR gate. The low-line input terminal of the first two-wire input terminal is connected to one input of the second NOR gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the second NOR gate. The outputs of the first NOR gate and the second NOR gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved, and output high-line output signals and low-line output signals respectively.
[0017] According to an embodiment of the present disclosure, the two-wire ternary circuit is an auto-incrementing gate circuit. The binary logic gates include an inverter, a NOR gate, and a NAND gate. The number of two-wire input terminals is one. The high-line input terminal of the two-wire input terminal is connected to one input of the NOR gate and one input of the NAND gate. The low-line input terminal of the two-wire input terminal is connected to the input of the inverter and the other input of the NAND gate. The output of the inverter is connected to the other input of the NOR gate. The NOR gate and the NAND gate output a high-line output signal and a low-line output signal, respectively.
[0018] According to an embodiment of the present disclosure, a two-wire ternary circuit is a decrementing gate circuit. The binary logic gates include an inverter, a NOR gate, and a NAND gate. The number of two-wire input terminals is one. The high-line input terminal of the two-wire input terminal is connected to one input of the NOR gate and the input of the inverter. The output of the inverter is connected to one input of the NAND gate. The low-line input terminal of the two-wire input terminal is connected to the other input of the NOR gate and the other input of the NAND gate. The NOR gate and the NAND gate respectively output a high-line output signal and a low-line output signal.
[0019] The two-wire ternary circuit disclosed herein possesses excellent symmetry and can introduce special states, making it the first integrated circuit scheme to practically implement balanced ternary arithmetic. The transistors have a logic depth of 1 or 2, which does not reduce circuit speed. It exhibits high symmetry, eliminating the need for complement representation, etc. Attached Figure Description
[0020] Figures 1 and 2 are circuit diagrams and schematic diagrams of an inverter according to an embodiment of the present disclosure, respectively.
[0021] Figures 3 to 5 are respectively circuit diagrams, representation diagrams and truth tables of NAND gates according to an embodiment of the present disclosure.
[0022] Figures 6 to 8 are respectively a circuit diagram, a representation diagram, and a truth table of an AND gate according to an embodiment of the present disclosure.
[0023] Figures 9 to 11 are respectively circuit diagrams, representation diagrams and truth tables of NOR gates according to an embodiment of the present disclosure.
[0024] Figures 12 to 14 are respectively a circuit diagram, a representation diagram, and a truth table of an OR gate according to an embodiment of the present disclosure.
[0025] Figures 15 and 16 are circuit diagrams and schematic diagrams of an auto-incrementing gate according to an embodiment of the present disclosure.
[0026] Figures 17 and 18 are circuit diagrams and schematic diagrams of a self-decreasing gate according to an embodiment of the present disclosure.
[0027] Figures 19 and 20 are circuit diagrams and schematic diagrams of a decoder according to an embodiment of the present disclosure.
[0028] Figures 21 and 22 are schematic diagrams of two converters according to an embodiment of the present disclosure.
[0029] Figures 23 and 24 are circuit diagrams and representations of a NAND gate with three two-wire inputs according to an embodiment of the present disclosure.
[0030] Figures 25 and 26 are circuit diagrams and schematic diagrams of an inverter according to another embodiment of the present disclosure, respectively.
[0031] Figures 27 to 29 are respectively circuit diagrams, representation diagrams and truth tables of NAND gates according to another embodiment of the present disclosure.
[0032] Figures 30 to 32 are respectively a circuit diagram, a representation diagram, and a truth table of an AND gate according to another embodiment of the present disclosure.
[0033] Figures 33 to 35 are respectively circuit diagrams, representation diagrams and truth tables of NOR gates according to another embodiment of the present disclosure.
[0034] Figures 36 to 38 are respectively circuit diagrams, representation diagrams and truth tables of OR gates according to another embodiment of the present disclosure.
[0035] Figures 39 and 40 are circuit diagrams and representations of an auto-incrementing gate according to another embodiment of the present disclosure.
[0036] Figures 41 and 42 are circuit diagrams and schematic diagrams of a self-decreasing gate according to another embodiment of the present disclosure.
[0037] Figures 43 and 44 are schematic diagrams of two converters according to another embodiment of the present disclosure.
[0038] Figures 45 and 46 are circuit diagrams and representations of a NAND gate with three two-wire inputs according to another embodiment of the present disclosure. Detailed Implementation
[0039] According to one embodiment of this disclosure, a two-wire ternary circuit is provided for performing ternary operations. In the ternary circuit of this disclosure, a two-wire input and a two-wire output are used, thereby enabling high-impedance operations. Furthermore, ternary operations can be implemented using binary logic gates.
[0040] The two-wire ternary circuit disclosed herein may include: two-wire input terminals and two-wire output terminals. The number of two-wire input terminals may be one or more, for example, one or two, or even three or more. Each two-wire input terminal includes a high-line input terminal for inputting a high-line input signal and a low-line input terminal for inputting a low-line input signal, wherein the high-line input signal and the low-line input signal are respectively a high-level signal and a low-level signal. The number of two-wire output terminals may be one and include a high-line output terminal for outputting a high-line output signal and a low-line output terminal for outputting a low-line output signal, wherein the high-line output signal and the low-line output signal are respectively a high-level signal and a low-level signal. The high-line output terminal and the low-line output terminal are respectively connected to the outputs of two binary logic gates; or respectively connected to the output of a binary logic gate and one of the high-line input terminal and the low-line input terminal; or respectively connected to the low-line input terminal or the high-line input terminal. Additionally, binary logic gates may be included. The number of binary logic gates may be one or more, and at least a portion of the inputs of the binary logic gates are connected to at least one of the high-line input terminals and the low-line input terminals.
[0041] The following will describe various implementation methods of ternary circuits under the design concept of this disclosure through various embodiments. As can be seen from the following embodiments, the logic depth of the transistor is 1 or 2, thereby ensuring the ternary operation speed and enabling the representation of special states, etc.
[0042] According to one embodiment of this disclosure, various binary two-wire ternary circuits are provided, including the embodiments shown in Figures 1 to 24. In this embodiment, the various states of the ternary signal are implemented in binary form, and the three states of the ternary signal can include a first state +, a second state -, a third state 0, and a special state. The special state can be one of a high-impedance state, an error state, etc. Each binary two-wire input signal includes two input signals, such that the high wire corresponds to the first input signal (high wire input signal), and the low wire corresponds to the second input signal (low wire input signal). The two input signals can be either a first level and a second level, where the first level is high and the second level is low, or the first level is low and the second level is high. The ternary signal is represented as +, 0, and -. When the high line input signal of a binary two-wire input signal is at the first level and the levels of the high line input signal and the low line input signal are different, the ternary signal is +; when the low line input signal is at the first level and the levels of the high line input signal and the low line input signal are different, the ternary signal is -; when the low line input signal and the high line input signal are the same, the ternary signal is 0 (e.g., both the low line input signal and the high line input signal are 0). For special cases, the low line input signal and the high line input signal can be the same, and the ternary signal represents the special case (e.g., both the low line input signal and the high line input signal are 1). In the following embodiments, binary two-wire input signals A, B, and C are each input from a single two-wire input terminal.
[0043] Figure 1 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is an inverter. The inverter in this embodiment can be implemented without transistors; only the high and low lines need to be interleaved. Thus, the logic depth of the transistors in this embodiment is 0, and it has high symmetry. The inverter includes two input terminals, which are respectively connected to the high-line input signal AH and the low-line input signal AL of the binary two-wire input signal A. The high-line input signal AH and the low-line input signal AL can be either high-level signals or low-level signals. The binary two-wire output signal O of the inverter includes a high-line output signal OH and a low-line output signal OL. The high-line input signal AH and the low-line input signal AL are interleaved to form the low-line output signal OL and the high-line output signal OH, respectively.
[0044] When the ternary signal is + (10), the high-line input signal AH is 1 and the low-line input signal AL is 0, so the high-line output signal OH is 0 and the low-line output signal OL is 1. The inverter can output the ternary signal + as the ternary signal - (01). When the ternary signal is - (01), the high-line input signal AH is 0 and the low-line input signal AL is 1, so the high-line output signal OH is 1 and the low-line output signal OL is 0. The inverter can output the ternary signal - as the ternary signal + (10). When the ternary signal is 0 (00), the high-line input signal AH is 0 and the low-line input signal AL is 0, so the high-line output signal OH is 0 and the low-line output signal OL is 0. The inverter can output the ternary signal - as the ternary signal 0 (00). Figure 2 shows the representation of the inverter in Figure 1.
[0045] Figure 3 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a NAND gate circuit. The NAND gate circuit of this embodiment has a transistor logic depth of 2 and is symmetrical.
[0046] As shown in Figure 3, the NAND gate circuit includes a binary NAND gate 301, a binary NOR gate 302, a first binary NOT gate 303, and a second binary NOT gate 304. The two inputs of the binary NAND gate 301 are connected to the high-line input signal AH of the first binary two-line input signal A and the high-line input signal BH of the second binary two-line input signal B, respectively. The two inputs of the binary NOR gate 302 are connected to the low-line input signal AL of the first binary two-line input signal A and the low-line input signal BL of the second binary two-line input signal B, respectively. Both the binary NAND gate 301 and the binary NOR gate 302 include one output. The output of the binary NAND gate 301 is connected to one input of the first binary NOT gate 303, and the output of the binary NOR gate 302 is connected to one input of the second binary NOT gate 304. The first binary NOT gate 303 and the second binary NOT gate 304 each include one input and one output. The output signal of the first binary NOT gate 303 is interleaved with the output signal of the second binary NOT gate 304 to form a two-line binary output signal O, which includes a high-line output signal OH and a low-line output signal OL. Figure 4 shows the representation of the ternary NAND gate in Figure 3.
[0047] Figure 5 shows the truth table of the NAND gate circuits in the embodiments shown in Figures 3 and 4.
[0048] For the first binary two-line input signal A, when the high line input signal AH is 1 (high level) and the low line input signal AL is 0 (low level), the ternary signal + of the first binary two-line input signal A is 0 when the high line input signal AH is 0 and the low line input signal AL is 1. For the first binary two-line input signal -, when the high line input signal AH is 0 and the low line input signal AL is 0, the ternary signal - of the first binary two-line input signal A is 0.
[0049] For the second binary two-line input signal B, when the high line input signal BH is 1 (high level) and the low line input signal BL is 0 (low level), the ternary signal of the second binary two-line input signal B is +; when the high line input signal BH is 0 and the low line input signal BL is 1, the ternary signal of the second binary two-line input signal B is -; when the high line input signal BH is 0 and the low line input signal BL is 0, the ternary signal of the second binary two-line input signal B is 0.
[0050] For a binary two-line output signal O, when the high line output signal OH is 1 (high level) and the low line output signal OL is 0 (low level), the ternary signal of the binary two-line output signal O is +; when the high line output signal OH is 0 and the low line output signal OL is 1, the ternary signal of the binary two-line output signal O is -; when the high line output signal OH is 0 and the low line output signal OL is 0, the ternary signal of the binary two-line output signal O is 0.
[0051] The following description will follow the above method. Of course, there is another possibility: when AH is 0 and AL is 1, the ternary signal is +; when AH is 1 and AL is 0, the ternary signal is -; when AH is 0 and AL is 0, the ternary signal is 0.
[0052] Refer to Figures 4 and 5 for a detailed explanation. As an example, let's assume A is positive and B is positive. In ternary calculation, if the ternary signal of the first binary two-line input signal A is positive and the ternary signal of the second binary two-line input signal B is positive, then the ternary signal of the binary two-line output signal O is negative. For example, if the high-line input signal AH is 1 and the low-line input signal AL is 0, and the high-line input signal BH is 1 and the low-line input signal BL is 0, then the two inputs of binary NAND gate 301 are connected to the high-line input signals AH and BH respectively. The output signal of binary NAND gate 301 is 0, and the output signal of the first binary NOT gate 303 is 1, then the low-line output signal OL is 1. The two inputs of binary NOR gate 302 are connected to the low-line input signals AL and BL respectively. The output signal of binary NOR gate 302 is 1, and the output signal of the second binary NOT gate 304 is 0, then the high-line output signal OH is 0. Thus, the output signal O is 10, and its ternary signal is +. Other ternary calculations can be found in the relevant sections of the truth table.
[0053] Figure 6 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is an AND gate circuit. The AND gate circuit of this embodiment has a transistor logic depth of 2 and is symmetrical.
[0054] As shown in Figure 6, the AND gate circuit includes a binary NAND gate 601, a binary NOR gate 602, a first binary NOT gate 603, and a second binary NOT gate 604. The two inputs of the binary NAND gate 601 are connected to the high-line input signal AH of the first binary two-line input signal A and the high-line input signal BH of the second binary two-line input signal B, respectively. The two inputs of the binary NOR gate 602 are connected to the low-line input signal AL of the first binary two-line input signal A and the low-line input signal BL of the second binary two-line input signal B, respectively. Both the binary NAND gate 601 and the binary NOR gate 602 include one output terminal. The output terminal of the binary NAND gate 601 is connected to one input terminal of the first binary NOT gate 603, and the output terminal of the binary NOR gate 602 is connected to one input terminal of the second binary NOT gate 604. The first binary NOT gate 603 and the second binary NOT gate 604 each include one input terminal and one output terminal. The output signals of the first binary NOT gate 603 and the second binary NOT gate 604 are not interleaved, forming a two-line binary output signal O, which includes a high-line output signal OH and a low-line output signal OL. Figure 7 shows the representation of the ternary AND gate in Figure 6.
[0055] Figure 8 shows the truth table of the AND gate circuits in the embodiments shown in Figures 6 and 7. For ternary relationships, please refer to the relevant description in Figure 5. A detailed explanation is provided with reference to Figures 6 and 8. As an example, let's assume A is - and B is 0. During ternary calculation, if the ternary signal of the first binary two-line input signal A is - and the ternary signal of the second binary two-line input signal B is 0, then the ternary signal of the binary two-line output signal O is -. For example, if the high-line input signal AH is 0 and the low-line input signal AL is 1, and the high-line input signal BH is 0 and the low-line input signal BL is 0. The two inputs of binary NAND gate 601 are connected to the high-line input signal AH and the high-line input signal BH, respectively. If the output signal of binary NAND gate 601 is 1 and the output signal of the first binary NOT gate 603 is 0, then the high-line output signal OH is 0. The two inputs of binary NOR gate 602 are connected to the low-line input signal AL and the low-line input signal BL, respectively. If the output signal of binary NOR gate 602 is 0 and the output signal of the second binary NOT gate 604 is 1, then the low-line output signal OH is 1. Thus, the output signal O is 01, and its ternary signal is -. Other ternary calculations can be found in the relevant content of the truth table.
[0056] Figure 9 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a NOR gate circuit. The NOR gate circuit of this embodiment has a transistor logic depth of 2 and is symmetrical.
[0057] As shown in Figure 9, the NOR gate circuit includes a binary NOR gate 901, a binary NAND gate 902, a first binary NOT gate 903, and a second binary NOT gate 904. The two inputs of the binary NOR gate 901 are connected to the high-line input signal AH of the first binary two-line input signal A and the high-line input signal BH of the second binary two-line input signal B, respectively. The two inputs of the binary NAND gate 902 are connected to the low-line input signal AL of the first binary two-line input signal A and the low-line input signal BL of the second binary two-line input signal B, respectively. Both the binary NOR gate 901 and the binary NAND gate 902 include one output terminal. The output terminal of the binary NOR gate 901 is connected to one input terminal of the first binary NOT gate 903, and the output terminal of the binary NAND gate 902 is connected to one input terminal of the second binary NOT gate 904. The first binary NOT gate 903 and the second binary NOT gate 904 each include one input terminal and one output terminal. The output signals of the first binary NOT gate 903 and the second binary NOT gate 904 are interleaved to form a two-line binary output signal O, which includes a high-line output signal OH and a low-line output signal OL. Figure 10 shows the representation of the ternary NOR gate in Figure 9.
[0058] Figure 11 shows the truth table of the NOR gate circuits in the embodiments shown in Figures 9 and 10. The ternary relationship is described in Figure 5. A detailed explanation is provided with reference to Figures 9 and 11. As an example, let's assume A is 0 and B is -. During ternary calculation, if the ternary signal of the first binary two-line input signal A is 0 and the ternary signal of the second binary two-line input signal B is -, then the ternary signal of the binary two-line output signal O is 0. For example, if the high-line input signal AH is 0 and the low-line input signal AL is 0, and the high-line input signal BH is 0 and the low-line input signal BL is 1. The two inputs of the binary NOR gate 901 are connected to the high-line input signal AH and the high-line input signal BH, respectively. If the output signal of the binary NOR gate 901 is 1 and the output signal of the first binary NOT gate 903 is 0, then the low-line output signal OL is 0. The two inputs of the binary NAND gate 902 are connected to the low-line input signal AL and the low-line input signal BL, respectively. If the output signal of binary NAND gate 902 is 1 and the output signal of the second binary NOT gate 904 is 0, then the high-line output signal OH is 0. Thus, the output signal O is 00, and its ternary signal is 0. Other ternary calculations can be found in the relevant content of the truth table.
[0059] Figure 12 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is an OR gate circuit. The OR gate circuit of this embodiment has a transistor logic depth of 2 and is symmetrical.
[0060] As shown in Figure 12, the OR gate circuit includes a binary NOR gate 1201, a binary NAND gate 1202, a first binary NOT gate 1203, and a second binary NOT gate 1204. The two inputs of the binary NOR gate 1201 are connected to the high line input signal AH of the first binary two-line input signal A and the high line input signal BH of the second binary two-line input signal B, respectively. The two inputs of the binary NAND gate 1202 are connected to the low line input signal AL of the first binary two-line input signal A and the low line input signal BL of the second binary two-line input signal B, respectively. Both the binary NOR gate 1201 and the binary NAND gate 1202 include one output. The output of the binary NOR gate 1201 is connected to one input of the first binary NOT gate 1203, and the output of the binary NAND gate 1202 is connected to one input of the second binary NOT gate 1204. The first binary NOT gate 1203 and the second binary NOT gate 1204 each include one input and one output. The output signal of the first binary NOT gate 1203 is interleaved with the output signal of the second binary NOT gate 1204 to form a two-line binary output signal O, which includes a high-line output signal OH and a low-line output signal OL. Figure 13 shows the representation of the ternary OR gate in Figure 12.
[0061] Figure 14 shows the truth table of the OR gate circuits in the embodiments shown in Figures 12 and 13. The ternary relationship is described in Figure 5. A detailed explanation is provided with reference to Figures 12 and 14. As an example, let's assume A is - and B is -. During ternary calculation, if the ternary signal of the first binary two-line input signal A is - and the ternary signal of the second binary two-line input signal B is -, then the ternary signal of the binary two-line output signal O is -. For example, if the high-line input signal AH is 0 and the low-line input signal AL is 1, and the high-line input signal BH is 0 and the low-line input signal BL is 1. The two inputs of the binary NOR gate 1201 are connected to the high-line input signal AH and the high-line input signal BH, respectively. If the output signal of the binary NOR gate 1201 is 1 and the output signal of the first binary NOT gate 1203 is 0, then the high-line output signal OH is 0. The two inputs of the binary NAND gate 1202 are connected to the low-line input signal AL and the low-line input signal BL, respectively. The output signal of binary NAND gate 1202 is 0, and the output signal of the second binary NOT gate 1204 is 1. Therefore, the low-level output signal OL is 1. Thus, the output signal O is 01, and its ternary signal is -. Other ternary calculations can be found in the relevant content of the truth table.
[0062] Figure 15 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a loop gate circuit, specifically an increment gate circuit. The transistor logic depth of the increment gate circuit in this embodiment is 1.
[0063] As shown in Figure 15, the self-incrementing gate circuit includes a binary NOR gate 1501. The two inputs of the binary NOR gate 1501 are connected to the high-line input signal AH and the low-line input signal AL of the binary two-line input signal A, respectively. According to this embodiment, the self-incrementing gate circuit can cycle between a first state +, a second state 0, and a third state -. The output of the binary NOR gate 1501 is the high-line output signal OH, and the high-line input signal AH serves as the low-line output signal OL. The cycle of this self-incrementing gate circuit can be, for example, -0+-0... For example, in the third state -, the high-line input signal AH is 0 and the low-line input signal AL is 1, then the output signal of the binary NOR gate 1501 is 0, that is, the high-line output signal OH is 0. The high-line input signal AH serves as the low-line output signal OL, that is, the low-line output signal OL is 0. Thus, the output of the self-incrementing gate is 00, that is, it transitions to the second state 0. In the second state 0, the high-line input signal AH is 0 and the low-line input signal AL is 0, so the output signal of the binary NOR gate 1501 is 1, that is, the high-line output signal OH is 1. The high-line input signal AH is the low-line output signal OL, that is, the low-line output signal OL is 0. Thus, the output of the auto-increment gate is 10, which is the first state +. In the first state +, the high-line input signal AH is 1 and the low-line input signal AL is 0, so the output signal of the binary NOR gate 1501 is 0, that is, the high-line output signal OH is 0. The high-line input signal AH is the low-line output signal OL, that is, the low-line output signal OL is 1. Thus, the output of the auto-increment gate is 01, which is the third state -. This cycle continues. Figure 16 shows the representation of the auto-increment gate in Figure 15.
[0064] Figure 17 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a loop gate circuit, specifically a decrement gate circuit. The transistor logic depth of the decrement gate circuit in this embodiment is 1. Furthermore, the increment gate circuit and the decrement gate circuit are symmetrical.
[0065] As shown in Figure 17, the increment gate circuit includes a binary NOR gate 1701. The two inputs of the binary NOR gate 1701 are connected to the high-line input signal AH and the low-line input signal AL of the binary two-line input signal A, respectively. According to this embodiment, the decrement gate circuit can cycle between a first state +, a second state 0, and a third state -. The low-line output signal OL of the binary NOR gate 1701 is used as the high-line output signal OH. The cycle of this decrement gate circuit can be, for example, -+0-+0... For example, in the third state -, the high-line input signal AH is 0 and the low-line input signal AL is 1, then the output signal of the binary NOR gate 1701 is 0, that is, the low-line output signal OL is 0. The low-line input signal AL is used as the high-line output signal OH, that is, the high-line output signal OL is 1. Thus, the output of the increment gate is 10, which is the first state +. In the first state (+), the high-line input signal AH is 1 and the low-line input signal AL is 0. Therefore, the output signal of the binary NOR gate 1701 is 0, i.e., the low-line output signal OL is 0. The low-line input signal AL becomes the high-line output signal OH, i.e., the high-line output signal OH is 0. Thus, the output of the increment gate is 00, which is the second state (0). In the second state (0), the high-line input signal AH is 0 and the low-line input signal is 0. Therefore, the output signal of the binary NOR gate 1701 is 1, i.e., the low-line output signal OL is 1. The low-line input signal AL becomes the high-line output signal OH, i.e., the high-line output signal OH is 0. Thus, the output of the increment gate is 01, which is the third state (-). This cycle continues. Figure 18 shows the representation of the decrement gate in Figure 17.
[0066] Figure 19 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a decoder circuit. The transistor logic depth of the decoder circuit in this embodiment is only 1.
[0067] The decoder circuit is designed such that, in the first ternary state +, the output P is high and the outputs Z and N are low; in the second ternary state 0, the output Z is high and the outputs P and N are low; and in the third ternary state -, the output N is high and the outputs P and Z are low.
[0068] As shown in Figure 19, the decoder circuit includes a binary NOR gate 1901. The high-line input signal AH and the low-line input signal AL are connected to the two input terminals of the binary NOR gate 1901, respectively. The output terminal of the binary NOR gate 1901 is connected to output Z. The high-line input signal AH is connected to output P. The low-line input signal AL is connected to output N. As an example, in the first state +, AH is 1 and AL is 0. Thus, the high-line input signal AH (output P) is 1, the output of the binary NOR gate 1901 (output Z) is 0, and the low-line input signal AL (output N) is 0. Therefore, output P is 1 and outputs Z and N are 0, corresponding to the first state +. The second and third states are the same and will not be described further. Figure 20 shows the representation of the decoder in Figure 19.
[0069] Figures 21 and 22 illustrate a converter for converting between two-wire and one-wire signals. The converter circuit of this embodiment reduces the number of pins, is more modular than conventional multi-valued logic circuits, and offers better speed and noise tolerance. Figure 21 shows a two-wire to one-wire converter, and Figure 22 shows a one-wire to two-wire converter. The converter in the embodiment of Figure 21 converts a two-wire signal A to a one-wire signal O, for example, converting 00 to 0, 10 to +, and 01 to -. Additionally, when the two-wire signal A is 11, it can be converted to a special state. Conversely, the converter shown in Figure 22 can convert a one-wire signal O to a two-wire signal A. The implementation of the converter in Figure 22 can be achieved using existing analog comparators. The converter in the embodiment of Figure 22 can convert a ternary signal represented in ternary form into a two-wire ternary signal, which can then be input to the high-line input and low-line input of the embodiment in Figures 1-20. The converter in the embodiment of Figure 21 can convert a two-line ternary signal into a ternary signal in ternary representation. The input signals A (AH and AL) in the embodiment of Figure 21 can be connected to the high-line output terminal OH and the low-line input terminal OL of each embodiment of the figure, respectively.
[0070] In the various embodiments above, one or two two-wire input terminals (A or B) are included, but more than three two-wire input terminals may also be included. Figure 23 shows an embodiment with three two-wire input terminals corresponding to the NAND gate shown in Figure 3. The difference in circuit structure between the embodiment in Figure 23 and the embodiment in Figure 3 is that the embodiment in Figure 23 includes three two-wire input terminals A, B, and C. The high-line input signals AH, BH, and CH are respectively connected to the three input terminals of NAND gate 2301, and the low-line input signals AL, BL, and CL are respectively connected to the three input terminals of NOR gate 2302. The output terminal of NAND gate 2301 is connected to the input terminal of the first inverter 2303, and the output terminal of NOR gate 2302 is connected to the input terminal of the second inverter 2304. The output terminals of the first inverter 2303 and the second inverter 2304 are interleaved, outputting the low-line output signal OL and the high-line output signal OH, respectively. Figure 24 shows the representation of Figure 23. In addition, other suitable embodiments of this implementation method may employ three or more two-wire input terminals, which will not be elaborated here.
[0071] According to another embodiment of this disclosure, various binary two-wire ternary circuits are provided, including the embodiments shown in Figures 25 to 46. In this embodiment, the various states of the ternary signal are implemented in binary form, wherein the three states of the ternary signal may include a first state +, a second state -, a third state 0, and a special state. The special state may be one of a high-impedance state, an error state, etc. Each binary two-wire input signal includes two input signals, such that the high wire corresponds to the first input signal (high wire input signal), and the low wire corresponds to the second input signal (low wire input signal). The two input signals may be either a first level or a second level, wherein the first level and the second level are both high levels, and the second level is a low level. The ternary signal is represented as +, 0, and -. In a binary two-wire input signal, when both the high-line input signal and the low-line input signal are at a high level (1), the ternary signal is +; when both the high-line input signal and the low-line input signal are at a low level (0), the ternary signal is 0; and when both the high-line input signal and the low-line input signal are at a low level (0), the ternary signal is -. Additionally, when both the high-line input signal and the low-line input signal are at a high level (1) and the low-line input signal are at a low level (0), the ternary signal is a special state signal.
[0072] Figure 25 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is an inverter. The inverter in this embodiment can be implemented by expanding binary logic gates, and the expansion method is symmetrical, consistent with the binary logic depth, without sacrificing circuit speed. The inverter includes two input terminals, which are respectively connected to the high-line input signal AH and the low-line input signal AL of the binary two-wire input signal A. The high-line input signal AH and the low-line input signal AL can be either high-level signals or low-level signals. The binary two-wire output signal O of the inverter includes a high-line output signal OH and a low-line output signal OL. The high-line input signal AH is connected to a first binary NOT gate 2501, and the low-line input signal AL is connected to a second binary NOT gate 2502. The outputs of the first binary NOT gate 2501 and the second binary NOT gate 2502 are interleaved to form the low-line output signal OL and the high-line output signal OH, respectively.
[0073] When the ternary signal is + (11), the high-line input signal AH is 1 and the low-line input signal AL is 1. The output of the first binary NOT gate 2501 is 0, and the output of the second binary NOT gate 2502 is 0, so the high-line output signal OH is 0 and the low-line output signal OL is 0. The inverter can output the ternary signal + as the ternary signal - (00). When the ternary signal is - (00), the high-line input signal AH is 0 and the low-line input signal AL is 0. The output of the first binary NOT gate 2501 is 1, and the output of the second binary NOT gate 2502 is 1, so the high-line output signal OH is 1 and the low-line output signal OL is 1. The inverter can output the ternary signal - as the ternary signal + (11). When the ternary signal is 0 (01), the high-line input signal AH is 0 and the low-line input signal AL is 1, so the high-line output signal OH is 0 and the low-line output signal OL is 1. This inverter can output the ternary signal 0 as the ternary signal 0 (01). Figure 26 shows the representation of the inverter in Figure 25.
[0074] Figure 27 illustrates a ternary circuit using a binary two-wire approach according to an embodiment of the present disclosure, wherein the ternary circuit is a NAND gate circuit. The NAND gate circuit of this embodiment can be implemented by extending binary logic gates, and the extension method is symmetrical, consistent with the binary logic depth, without sacrificing circuit speed.
[0075] As shown in Figure 27, the NAND gate circuit includes binary NAND gate 2701 and binary NAND gate 2702. The two inputs of binary NAND gate 2701 are connected to the high line input signal AH of the first binary two-line input signal A and the high line input signal BH of the second binary two-line input signal B, respectively. The two inputs of binary NAND gate 2702 are connected to the low line input signal AL of the first binary two-line input signal A and the low line input signal BL of the second binary two-line input signal B, respectively. The output signals of binary NAND gates 2701 and 2702 are interleaved to form a binary two-line output signal O, which includes a high line output signal OH (the output signal of binary NAND gate 2702) and a low line output signal OL (the output signal of binary NAND gate 2701). Figure 28 shows the representation of the ternary NAND gate in Figure 27.
[0076] Figure 29 shows the truth table of the NAND gate circuits in the embodiments shown in Figures 27 and 28.
[0077] For the first binary two-line input signal A, when the high line input signal AH is 1 (high level) and the low line input signal AL is 1, the ternary signal of the first binary two-line input signal A is +; when the high line input signal AH is 0 (low level) and the low line input signal AL is 0, the ternary signal of the first binary two-line input signal A is -; when the high line input signal AH is 0 and the low line input signal AL is 1, the ternary signal of the first binary two-line input signal A is 0; when the high line input signal AH is 1 and the low line input signal AL is 0, the ternary signal of the first binary two-line input signal A represents a special state.
[0078] For the second binary two-line input signal B, when the high line input signal BH is 1 (high level) and the low line input signal BL is 1, the ternary signal of the second binary two-line input signal B is +; when the high line input signal BH is 0 (low level) and the low line input signal BL is 0, the ternary signal of the second binary two-line input signal B is -; when the high line input signal BH is 0 and the low line input signal BL is 1, the ternary signal of the second binary two-line input signal B is 0; when the high line input signal BH is 1 and the low line input signal BL is 0, the ternary signal of the second binary two-line input signal B represents a special state.
[0079] For a binary two-wire output signal O, when the high line output signal OH is 1 (high level) and the low line output signal OL is 1, the ternary signal of the binary two-wire output signal O is +; when the high line output signal OH is 0 (low level) and the low line output signal OL is 0, the ternary signal of the binary two-wire output signal O is -; when the high line output signal OH is 0 and the low line output signal OL is 0, the ternary signal of the binary two-wire output signal O is 0; when the high line output signal OH is 1 and the low line output signal OL is 0, the ternary signal of the binary two-wire output signal O represents a special state.
[0080] Refer to Figures 27 and 29 for a detailed explanation. As an example, let's assume A is positive and B is positive. In ternary calculations, if the ternary signal of the first binary two-line input signal A is positive and the ternary signal of the second binary two-line input signal B is positive, then the ternary signal of the binary two-line output signal O is negative. For example, if the high-line input signal AH is 1 and the low-line input signal AL is 1, and the high-line input signal BH is 1 and the low-line input signal BL is 1, then the two inputs of binary NAND gate 2701 are connected to the high-line input signals AH and BH respectively. The output signal of binary NAND gate 2701 is 0, and the low-line output signal OL is 0. The two inputs of binary NAND gate 2702 are connected to the low-line input signals AL and BL respectively. The output signal of binary NAND gate 2702 is 0, and the high-line output signal OH is 0. Thus, the output signal O is 00, and its ternary signal is negative. Other ternary calculations can be found in the truth table.
[0081] Figure 30 illustrates a ternary circuit using a binary two-wire approach according to an embodiment of the present disclosure, wherein the ternary circuit is an AND gate circuit. The AND gate circuit of this embodiment can be implemented by extending binary logic gates, and the extension method is symmetrical, consistent with the binary logic depth, without sacrificing circuit speed.
[0082] As shown in Figure 30, the AND gate circuit includes binary NAND gate 3001, binary NAND gate 3002, a first binary NOT gate 3003, and a second binary NOT gate 3004. The two inputs of binary NAND gate 3001 are connected to the high line input signal AH of the first binary two-line input signal A and the high line input signal BH of the second binary two-line input signal B, respectively. The two inputs of binary NAND gate 3002 are connected to the low line input signal AL of the first binary two-line input signal A and the low line input signal BL of the second binary two-line input signal B, respectively. Binary NAND gates 3001 and 3002 each include one output. The output of binary NAND gate 3001 is connected to one input of the first binary NOT gate 3003, and the output of binary NAND gate 3002 is connected to one input of the second binary NOT gate 3004. The first binary NOT gate 3003 and the second binary NOT gate 3004 each include one input and one output. The output signals of the first binary NOT gate 3003 and the second binary NOT gate 3004 are not interleaved, forming a two-line binary output signal O. This two-line output signal O includes a high-line output signal OH and a low-line output signal OL. The high-line output signal OH is the output signal of the first binary NOT gate 3003, and the low-line output signal OL is the output signal of the second binary NOT gate 3004. Figure 31 shows the representation of the ternary AND gate in Figure 30.
[0083] Figure 32 shows the truth table of the AND gate circuits in the embodiments shown in Figures 30 and 31. For the ternary relationship, please refer to the relevant description in Figure 29. A detailed explanation is provided with reference to Figures 30 and 32. As an example, let's assume A is - and B is 0. During ternary calculation, if the ternary signal of the first binary two-line input signal A is - and the ternary signal of the second binary two-line input signal B is 0, then the ternary signal of the binary two-line output signal O is -. For example, if the high-line input signal AH is 0 and the low-line input signal AL is 0, and the high-line input signal BH is 0 and the low-line input signal BL is 1. The two inputs of binary NAND gate 3001 are connected to the high-line input signal AH and the high-line input signal BH, respectively. If the output signal of binary NAND gate 3001 is 1 and the output signal of the first binary NOT gate 3003 is 0, then the high-line output signal OH is 0. The two inputs of binary NAND gate 3002 are connected to the low-line input signal AL and the low-line input signal BL, respectively. If the output signal of binary NAND gate 3002 is 0 and the output signal of the second binary NOT gate 3004 is 1, then the low-line output signal OH is 0, so the output signal O is 00, and its ternary signal is -. Other ternary calculations can be found in the relevant content of the truth table.
[0084] Figure 33 illustrates a ternary circuit using a binary two-wire approach according to an embodiment of the present disclosure, wherein the ternary circuit is a NOR gate circuit. The NOR gate circuit of this embodiment can be implemented by extending binary logic gates, and the extension method is symmetrical, consistent with the logic depth of binary, without sacrificing circuit speed.
[0085] As shown in Figure 33, the NOR gate circuit includes a binary NOR gate 3301 and a binary NOR gate 3302. The two inputs of the binary NOR gate 3301 are connected to the high-line input signal AH of the first binary two-line input signal A and the high-line input signal BH of the second binary two-line input signal B, respectively. The two inputs of the binary NOR gate 3302 are connected to the low-line input signal AL of the first binary two-line input signal A and the low-line input signal BL of the second binary two-line input signal B, respectively. The output signal of the first binary NOT gate 3303 is interleaved with the output signal of the second binary NOT gate 3304 to form a binary two-line output signal O, which includes a high-line output signal OH and a low-line output signal OL. The high-line output signal OH is the output signal of the second binary NOT gate 3304, and the low-line output signal OL is the output signal of the first binary NOT gate 3303. Figure 34 shows the representation of the ternary NOR gate in Figure 33.
[0086] Figure 35 shows the truth table of the NOR gate circuits in the embodiments shown in Figures 33 and 34. The ternary relationship is described in the relevant section of Figure 27. A detailed explanation is provided with reference to Figures 33 and 35. As an example, let's assume A is 0 and B is -. During ternary calculation, if the ternary signal of the first binary two-line input signal A is 0 and the ternary signal of the second binary two-line input signal B is -, then the ternary signal of the binary two-line output signal O is 0. For example, if the high-line input signal AH is 0 and the low-line input signal AL is 1, and the high-line input signal BH is 0 and the low-line input signal BL is 0. The two inputs of binary NOR gate 3301 are connected to the high-line input signal AH and the high-line input signal BH, respectively. If the output signal of binary NOR gate 3301 is 1, then the low-line output signal OL is 1. The two inputs of binary NOR gate 3302 are connected to the low-line input signal AL and the low-line input signal BL, respectively. If the output signal of the binary NOR gate 3302 is 0, then the high-line output signal OH is 0. Thus, the output signal O is 01, and its ternary signal is 0. Other ternary calculations can be found in the relevant sections of the truth table.
[0087] Figure 36 illustrates a ternary circuit using a binary two-wire approach according to an embodiment of the present disclosure, wherein the ternary circuit is an OR gate circuit. The OR gate circuit of this embodiment can be implemented by extending binary logic gates, and the extension method is symmetrical, consistent with the binary logic depth, without sacrificing circuit speed.
[0088] As shown in Figure 36, the OR gate circuit includes a binary NOR gate 3601, a binary NOR gate 3602, a first binary NOT gate 3603, and a second binary NOT gate 3604. The two inputs of the binary NOR gate 3601 are connected to the high line input signal AH of the first binary two-line input signal A and the high line input signal BH of the second binary two-line input signal B, respectively. The two inputs of the binary NOR gate 3602 are connected to the low line input signal AL of the first binary two-line input signal A and the low line input signal BL of the second binary two-line input signal B, respectively. Both the binary NOR gate 3601 and the binary NOR gate 3602 include one output. The output of the binary NOR gate 3601 is connected to one input of the first binary NOT gate 3603, and the output of the binary NOR gate 3602 is connected to one input of the second binary NOT gate 3604. The first binary NOT gate 3603 and the second binary NOT gate 3604 each include one input and one output. The output signals of the first binary NOT gate 3603 and the second binary NOT gate 3604 are not interleaved, forming a two-line binary output signal O. This two-line output signal O includes a high-line output signal OH and a low-line output signal OL. The high-line output signal OH is the output signal of the first binary NOT gate 3603, and the low-line output signal OL is the output signal of the second binary NOT gate 3604. Figure 37 illustrates the representation of the ternary OR gate in Figure 36.
[0089] Figure 38 shows the truth table of the OR gate circuits in the embodiments shown in Figures 36 and 37. The ternary relationship is described in Figure 29. A detailed explanation is provided with reference to Figures 36 and 38. As an example, let's assume A is - and B is -. During ternary calculation, if the ternary signal of the first binary two-line input signal A is - and the ternary signal of the second binary two-line input signal B is -, then the ternary signal of the binary two-line output signal O is -. For example, if the high-line input signal AH is 0 and the low-line input signal AL is 0, and the high-line input signal BH is 0 and the low-line input signal BL is 0. The two inputs of binary NOR gate 3601 are connected to the high-line input signal AH and the high-line input signal BH, respectively. If the output signal of binary NOR gate 3601 is 1 and the output signal of the first binary NOT gate 3603 is 0, then the high-line output signal OH is 0. The two inputs of binary NOR gate 3602 are connected to the low-line input signal AL and the low-line input signal BL, respectively. If the output signal of binary NOR gate 3602 is 1, and the output signal of the second binary NOT gate 3604 is 0, then the low-level output signal OL is 0. Thus, output signal O is 00, and its ternary signal is -. Other ternary calculations can be found in the relevant content of the truth table.
[0090] Figure 39 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a loop gate circuit, specifically an increment gate circuit.
[0091] As shown in Figure 39, the self-incrementing gate circuit includes a binary NOT gate 3901, a binary NOR gate 3902, and a binary NAND gate 3903. The binary NOT gate 3901 has one input terminal connected to the low-line input signal AL of the two-line binary input signal A. The binary NOR gate 3902 has two input terminals connected to the high-line input signal AH of the two-line binary input signal A and the output signal of the binary NOT gate 3901, respectively. The binary NAND gate 3903 has two input terminals connected to the high-line input signal AH and the low-line input signal AL of the two-line binary input signal A, respectively. The output signal of the binary NOR gate 3902 is the high-line output signal OH. The output signal of the binary NAND gate 3903 is the low-line output signal OL. According to this embodiment, the self-incrementing gate circuit can cycle between a first state +, a second state 0, and a third state -. The cycle of this self-incrementing gate circuit can, for example, be -0+-0... For example, in the third state -, the high-line input signal AH is 0 and the low-line input signal AL is 0. The output signal of binary NOT gate 3901 is 1, the output signal of binary NOR gate 3902 is 0, and the output signal of binary NAND gate 3903 is 1. Thus, the high-line output signal OH is 0 and the low-line output signal OL is 1, transitioning to the second state 0 (01). In the second state 0, the high-line input signal AH is 0 and the low-line input signal AL is 1. The output signal of binary NOT gate 3901 is 0, the output signal of binary NOR gate 3902 is 1, and the output signal of binary NAND gate 3903 is 1. Thus, the high-line output signal OH is 1 and the low-line output signal OL is 1, transitioning to the first state + (11). In the first state +, the high-line input signal AH is 1 and the low-line input signal AL is 1. The output signal of binary NOT gate 3901 is 0, the output signal of binary NOR gate 3902 is 0, and the output signal of binary NAND gate 3903 is 0. Thus, the high-line output signal OH is 0 and the low-line output signal OL is 0, transitioning to the third state - (00). This process is repeated. Figure 40 shows the representation of the auto-increment gate in Figure 39.
[0092] Figure 41 illustrates a ternary circuit using a binary two-wire method according to an embodiment of the present disclosure, wherein the ternary circuit is a loop gate circuit, specifically a decrement gate circuit.
[0093] As shown in Figure 41, the self-incrementing gate circuit includes a binary NOT gate 4101, a binary NOR gate 4102, and a binary NAND gate 4103. The binary NOT gate 4101 has one input terminal connected to the high-line input signal AH of the two-line binary input signal A. The binary NOR gate 4102 has two input terminals connected to the high-line input signal AH and the low-line input signal AL of the two-line binary input signal A, respectively. The binary NAND gate 4103 has two input terminals connected to the output signal of the binary NOT gate 4101 and the low-line input signal AL of the two-line binary input signal A, respectively. The output signal of the binary NOR gate 4102 is the high-line output signal OH. The output signal of the binary NAND gate 4103 is the low-line output signal OL. According to this embodiment, the self-incrementing gate circuit can cycle between a first state +, a second state 0, and a third state -. The cycle of this self-decrementing gate circuit can, for example, be -+0-+0... For example, in the third state -, with the high-line input signal AH being 0 and the low-line input signal AL being 0, the output signal of the binary NOR gate 4102 is 1, the output signal of the binary NOT gate 4101 is 1, and the output signal of the binary NAND gate 4103 is 1. Therefore, the high-line output signal OH is 1, and the low-line output signal OL is 1. Thus, the output of the auto-incrementing gate is 11, which corresponds to the first state +. In the first state +, with the high-line input signal AH being 1 and the low-line input signal AL being 1, the output signal of the binary NOR gate 4102 is 0, the output signal of the binary NOT gate 4101 is 0, and the output signal of the binary NAND gate 4103 is 1. Therefore, the high-line output signal OH is 0, and the low-line output signal OL is 1. Thus, the output of the auto-incrementing gate is 01, which corresponds to the second state 0. In the second state 0, the high-line input signal AH is 0 and the low-line input signal is 1. Therefore, the output signal of the binary NOR gate 4102 is 0, the output signal of the binary NOT gate 4101 is 1, and the output signal of the binary NAND gate 4103 is 0. Thus, the high-line output signal OH is 0, and the low-line output signal OL is 0. This results in the output of the increment gate being 00, which corresponds to the third state -. This cycle continues. Figure 42 shows the representation of the decrement gate in Figure 41.
[0094] Figures 43 and 44 illustrate converters for converting between two-wire and single-wire signals. Figure 43 shows a two-wire to single-wire converter, and Figure 44 shows a single-wire to two-wire converter. The converter in the embodiment of Figure 43 converts a two-wire signal A to a single-wire signal O, for example, converting 11 to +, 00 to -, and 01 to 0. Additionally, when the two-wire signal A is 10, it can be converted to a special state. Conversely, the converter shown in Figure 44 can convert a single-wire signal O to a two-wire signal A. The implementation of the converter in Figure 42 can be achieved using existing analog comparators. The converter in the embodiment of Figure 44 can convert a ternary signal represented in ternary form into a two-wire ternary signal, which can then be input to the high-line input and low-line input terminals of the other embodiment described above. The converter in the embodiment of FIG43 can convert a two-line ternary signal into a ternary signal in ternary representation. The input signals A (AH and AL) of the embodiment of FIG43 can be connected to the high-line output terminal OH and the low-line input terminal OL of each embodiment of the other embodiment described above, respectively.
[0095] In various embodiments of the other implementation described above, one or two two-wire input terminals (A or B) are included, but three or more two-wire input terminals may also be included. Figure 45 shows an embodiment with three two-wire input terminals corresponding to the NAND gate shown in Figure 25. The difference in circuit structure between the embodiment in Figure 45 and the embodiment in Figure 25 is that the embodiment in Figure 45 includes three two-wire input terminals A, B, and C. High-line input signals AH, BH, and CH are connected to the three input terminals of NAND gate 4501, and low-line input signals AL, BL, and CL are connected to the three input terminals of NOR gate 4502. The output terminals of NAND gate 4501 and NOR gate 4502 are interleaved, outputting a low-line output signal OL and a high-line output signal OH, respectively. Figure 46 shows a representation of Figure 45. Furthermore, for other suitable embodiments of this implementation, three or more two-wire input terminals may also be used, which will not be elaborated further here.
[0096] Those skilled in the art should understand that the above embodiments are merely for illustrating the present disclosure and are not intended to limit the scope of the disclosure. Those skilled in the art can make other changes or modifications based on the above disclosure, and these changes or modifications still fall within the scope of the present disclosure.
Claims
1. A two-wire ternary circuit, wherein the two-wire ternary circuit is used for performing ternary operations, characterized in that, include: Two-wire input terminals, wherein the number of two-wire input terminals is one or more, and each two-wire input terminal includes a high-line input terminal for inputting a high-line input signal and a low-line input terminal for inputting a low-line input signal, wherein the high-line input signal and the low-line input signal are respectively a high-level signal and a low-level signal; as well as The two-wire output terminal has one quantity and includes a high-line output terminal that outputs a high-line output signal and a low-line output terminal that outputs a low-line output signal. The high-line output signal and the low-line output signal are respectively one of the high-level signal and the low-level signal. The high-line output terminal and the low-line output terminal are respectively connected to the outputs of two binary logic gates; or respectively connected to the output of a binary logic gate and one of the high-line input terminal and the low-line input terminal; or respectively connected to the low-line input terminal and the high-line input terminal.
2. The two-wire ternary circuit as described in claim 1, characterized in that, Also includes: A binary logic gate, wherein the number of binary logic gates is one or more, and at least a portion of the inputs of the binary logic gates are connected to at least one of the high-line inputs and the low-line inputs.
3. The two-wire ternary circuit as described in claim 1, characterized in that, The two-wire ternary circuit is an inverter circuit. The number of the two-wire input terminal and the number of the two-wire output terminal are one each. The high line input terminal and the low line input terminal of the two-wire input terminal are interleaved and connected to the low line output terminal and the high line output terminal of the two-wire output terminal, respectively.
4. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is a NAND gate circuit. The binary logic gates include NAND gates, NOR gates, a first inverter, and a second inverter. There are two two-wire inputs. The high-line input of the first two-wire input is connected to one input of the NAND gate, and the low-line input is connected to one input of the NOR gate. The high-line input of the second two-wire input is connected to the other input of the NAND gate, and the low-line input is connected to the other input of the NOR gate. The outputs of the NAND gate and the NOR gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are interleaved, outputting a low-line output signal and a high-line output signal, respectively.
5. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an AND gate circuit. The binary logic gates include NAND gates, NOR gates, a first inverter, and a second inverter. There are two two-wire inputs. The high-line input of the first two-wire input is connected to one input of the NAND gate, and the low-line input is connected to one input of the NOR gate. The high-line input of the second two-wire input is connected to the other input of the NAND gate, and the low-line input is connected to the other input of the NOR gate. The outputs of the NAND gate and the NOR gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved, and they output a high-line output signal and a low-line output signal, respectively.
6. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is a NOR gate circuit. The binary logic gates include NOR gates, NAND gates, a first inverter, and a second inverter. There are two two-wire inputs. The high-line input of the first two-wire input is connected to one input of the NOR gate, and the low-line input is connected to one input of the NAND gate. The high-line input of the second two-wire input is connected to the other input of the NOR gate, and the low-line input is connected to the other input of the NAND gate. The outputs of the NOR gate and the NAND gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are interleaved, outputting a low-line output signal and a high-line output signal, respectively.
7. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an OR gate circuit. The binary logic gates include NOR gates, NAND gates, a first inverter, and a second inverter. There are two two-wire inputs. The high-line input of the first two-wire input is connected to one input of the NOR gate, and the low-line input is connected to one input of the NAND gate. The high-line input of the second two-wire input is connected to the other input of the NOR gate, and the low-line input is connected to the other input of the NAND gate. The outputs of the NOR gate and the NAND gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved, and they output a high-line output signal and a low-line output signal, respectively.
8. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an auto-incrementing gate circuit. The binary logic gate includes a NOR gate, and the number of two-wire input terminals is one. The high line input terminal of the two-wire input terminal is connected to one input of the NOR gate, and the low line input terminal of the two-wire input terminal is connected to the other input of the NOR gate. The NOR gate outputs a high line output signal, and the low line output signal is the high line input signal of the high line input terminal.
9. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is a decrementing gate circuit. The binary logic gate includes a NOR gate, and the number of two-wire input terminals is one. The high line input terminal of the two-wire input terminal is connected to one input of the NOR gate, and the low line input terminal of the two-wire input terminal is connected to the other input of the NOR gate. The NOR gate outputs a low line output signal, and the high line output signal is the low line input signal of the low line input terminal.
10. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an inverter circuit. The binary logic gate includes a first inverter and a second inverter. The number of two-wire input terminals is one. The high-line input terminal and the low-line input terminal of the two-wire input terminal are respectively connected to the input of the first inverter and the input of the second inverter. The outputs of the first inverter and the second inverter are interleaved to output low-line output signals and high-line output signals respectively.
11. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is a NAND gate circuit. The binary logic gate includes a first NAND gate and a second NAND gate. There are two two-wire input terminals. The high-line input terminal of the first two-wire input terminal is connected to one input of the first NAND gate, and the high-line input terminal of the second two-wire input terminal is connected to the other input of the first NAND gate. The low-line input terminal of the first two-wire input terminal is connected to one input of the second NAND gate, and the low-line input terminal of the second two-wire input terminal is connected to the other input of the second NAND gate. The outputs of the first NAND gate and the second NAND gate are interleaved to output low-line output signals and high-line output signals, respectively.
12. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an AND gate circuit. The binary logic gate includes a first NAND gate, a second NAND gate, a first inverter, and a second inverter. There are two two-wire inputs. The high-line input of the first two-wire input is connected to one input of the first NAND gate, and the high-line input of the second two-wire input is connected to the other input of the first NAND gate. The low-line input of the first two-wire input is connected to one input of the second NAND gate, and the low-line input of the second two-wire input is connected to the other input of the second NAND gate. The outputs of the first and second NAND gates are respectively connected to the inputs of the first and second inverters. The outputs of the first and second inverters are not interleaved, and each outputs a high-line output signal and a low-line output signal, respectively.
13. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is a NOR gate circuit. The binary logic gate includes a first NOR gate and a second NOR gate. There are two two-wire input terminals. The high line input of the first two-wire input terminal is connected to one input of the first NOR gate, and the high line input of the second two-wire input terminal is connected to the other input of the first NOR gate. The low line input of the first two-wire input terminal is connected to one input of the second NOR gate, and the low line input of the second two-wire input terminal is connected to the other input of the second NOR gate. The outputs of the first NOR gate and the second NOR gate are interleaved to output low line output signals and high line output signals, respectively.
14. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an OR gate circuit. The binary logic gate includes a first NOR gate, a second NOR gate, a first inverter, and a second inverter. There are two two-wire input terminals. The high-line input of the first two-wire input terminal is connected to one input of the first NOR gate, and the high-line input of the second two-wire input terminal is connected to the other input of the first NOR gate. The low-line input of the first two-wire input terminal is connected to one input of the second NOR gate, and the low-line input of the second two-wire input terminal is connected to the other input of the second NOR gate. The outputs of the first NOR gate and the second NOR gate are respectively connected to the inputs of the first inverter and the second inverter. The outputs of the first inverter and the second inverter are not interleaved, and each outputs a high-line output signal and a low-line output signal, respectively.
15. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is an incrementing gate circuit. The binary logic gate includes an inverter, a NOR gate, and a NAND gate. The number of two-wire input terminals is one. The high-line input terminal of the two-wire input terminal is connected to one input of the NOR gate and one input of the NAND gate. The low-line input terminal of the two-wire input terminal is connected to the input of the inverter and the other input of the NAND gate. The output of the inverter is connected to the other input of the NOR gate. The NOR gate and the NAND gate output a high-line output signal and a low-line output signal, respectively.
16. The two-wire ternary circuit as described in claim 2, characterized in that, The two-wire ternary circuit is a decrementing gate circuit. The binary logic gate includes an inverter, a NOR gate, and a NAND gate. The number of two-wire input terminals is one. The high-line input terminal of the two-wire input terminal is connected to one input of the NOR gate and the input of the inverter. The output of the inverter is connected to one input of the NAND gate. The low-line input terminal of the two-wire input terminal is connected to the other input of the NOR gate and the other input of the NAND gate. The NOR gate and the NAND gate output a high-line output signal and a low-line output signal, respectively.