Next Article in Journal
A New FANET Simulator for Managing Drone Networks and Providing Dynamic Connectivity
Previous Article in Journal
Cyber-Physical Co-Simulation of Shipboard Integrated Power System Based on Optimized Event-Driven Synchronization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Implementation of Unbalanced Ternary Logic Gates with the Combination of Spintronic Memristor and CMOS

1
College of electronic information, Hangzhou Dianzi University, Hangzhou 310018, Zhejiang, China
2
School of Artificial Intelligence, Southwest University, Chongqing 400715, China
3
College of Electrical Engineering, Zhejiang University, Hangzhou 310027, Zhejiang, China
*
Authors to whom correspondence should be addressed.
Electronics 2020, 9(4), 542; https://doi.org/10.3390/electronics9040542
Submission received: 3 March 2020 / Revised: 22 March 2020 / Accepted: 23 March 2020 / Published: 25 March 2020
(This article belongs to the Section Circuit and Signal Processing)

Abstract

:
A memristor is a nanoscale electronic element that displays a threshold property, non-volatility, and variable conductivity. Its composite circuits are promising for the implementation of intelligence computation, especially for logic operations. In this paper, a flexible logic circuit composed of a spintronic memristor and complementary metal-oxide-semiconductor (CMOS) switches is proposed for the implementation of the basic unbalanced ternary logic gates, including the NAND, NOR, AND, and OR gates. Meanwhile, due to the participation of the memristor and CMOS, the proposed circuit has advantages in terms of non-volatility and load capacity. Furthermore, the input and output of the proposed logic are both constant voltages without signal degradation. All these three merits make the proposed circuit capable of realizing the cascaded logic functions. In order to demonstrate the validity and effectiveness of the entire work, series circuit simulations were carried out. The experimental results indicated that the proposed logic circuit has the potential to realize almost all basic ternary logic gates, and even some more complicated cascaded logic functions with a compact circuit construction, high efficiency, and good robustness.

1. Introduction

Over the past years, Moore’s law seems to have stagnated as the demand for electronic devices to be scaled down has become increasingly difficult to be met [1]. The desire for new materials/mechanism-based devices that are compatible with the traditional complementary metal-oxide-semiconductor (CMOS) is realistic and attractive. The memristor, postulated by Leon Chua in 1971 [2] and physically implemented by a Hewlett Packard (HP) lab in 2008 [3], has become one of the remedies for addressing the continued scaling down of modern electronic circuits. As a passive nanoscale component, a memristor possesses many superior properties, including the nonvolatility, high density, continuous input/output property, threshold property, and variable conductivity [4,5,6]. All these above-mentioned advantages make the memristive device a powerful candidate in intelligent computation [7,8,9,10], with logic operation as an example [10].
So far, memristor-based logic implementation has been gaining considerable attention and many different design approaches have been successively developed [11,12,13,14]. Almost all the existing work mainly focuses on the investigation of binary logic. The work related to the memristor-based multi-value logic (MVL) implementation is relatively rare and incomplete. Compared with the binary logic, MVL provides exponentially higher data density with lower circuit and interconnect overheads, leading to lower parasitic effects, power consumption, and delays. As the simplest form of the MVL, the ternary logic was the first to be investigated in this study, which is in accordance with the basic scientific research rule (i.e., from simple to difficult). Notably, based on the external voltage, ternary logic can be further divided into two categories, i.e., the unbalanced ternary logic and the balanced ternary logic [15,16]. In the former one (i.e., the unbalanced ternary logic), only positive voltages are used, namely {0, 1, 2}; in the latter one (i.e., the balanced logic), both the positive and negative voltages are used as {−1, 0, 1} [15,16]. In 1984, the first implementation of ternary logic gates was provided based on the mature CMOS technology, which could perform the functions of basic ternary gates [17]. However, the entire circuit was highly sensitive to the transistor dimensions, and the robustness could not be sufficiently guaranteed. Then, Lin et al. [18] aimed to implement the convenient ternary logic gates based on carbon nanotube field-effect transistors (CNTFETs). However, the CNTFETs-based ternary logic suffers from the “charge pile-up” issue in the channel that may affect the performance of on/off switching [19]. Considering the multi-states ability of the memristors, the ternary logic gates have recently been realized by memristive devices [12,16,20]. Khalid and Singh [16] used the simplest HP memristor model, which is not practical and cannot represent the real device characteristics. In other words, more realistic models should be used for the implementation of ternary logic. Hence, this work utilized the spintronic memristor [21,22,23], which can reflect realistic device properties and has been proved in many memristor-based applications [24]. Soliman et al. [20] can perform basic ternary logic operations by using the memristor and CNTFET, while the functionality is limited and the robustness is not good enough. Based on these, this study further investigated the memristor-based unbalanced ternary logic implementation, and the main contributions can be summarized as below:
  • A flexible memristor-CMOS-based logic circuit was designed, which could perform the different ternary logic gates (i.e., the NAND, NOR, AND, and OR gates) by easily changing the polarities of the interconnected memristors.
  • Due to the participation of the spintronic memristor, the logic states can be stored in the memristor. That is, the logic computation and data storage are integrated into the proposed logic circuit, which opens up a new path to explore the new intelligent computation systems, in contrast to the classical von Neumann system with separated computation and storage configuration.
  • The CMOS switches installed in the reading circuit means the entire logic circuit has a sufficient load capacity, and the signal degradation issue can also be addressed effectively.
The rest of the paper is organized as below. The spintronic memristor with its resistance variation rule is discussed in Section 2. Based on this, a flexible memristor-CMOS logic circuit, which can perform four basic ternary logic gates, is presented in Section 3. Meanwhile, a brief comparison and analysis of six different ternary logic implementations are carried out in the same section. For verification, a series of circuit simulations (two case studies) with the relevant analysis are conducted in Section 4. Finally, Section 5 concludes the paper.

2. Spintronic Memristor

Different from the solid-state memristor [2,3], magnetic technology provides other possibilities to build up a memristive system. Wang et al. [21] proposed three possible physical structures of a spintronic memristor. The memristive effect can be realized using the spin-torque-induced magnetization switching or the magnetic-domain-wall motion. Compared to a solid-state thin-film device [2,3], the electrical behavior (describing the relationship between the memristance and the current passing through the memristor) can be controlled more flexibly. Meanwhile, among all the spintronic memristor models, the spin-valve memristor with magnetic-domain-wall motion could be the most suitable candidate due to its compact and simple structure [22,23]. Its three-dimensional (3D) structure and corresponding simplified circuit model is shown in Figure 1.
Figure 1a illustrates the basic structure and physical principle of a current in-plane (CIP) spintronic memristor. This device can be considered a long spin-value strip with the size of D (length) × z (width) × h (height). It consists of two up-down ferromagnetic layers called the free layer and reference layer, respectively. The free layer is divided by a domain-wall into two segments with opposite magnetization directions, where the domain wall motion is driven by spin-polarized current and the scattering of spin-polarized current depends on the position of the domain wall [25]; the reference layer is an integral whole with a fixed magnetization direction. Notably, resistance dependence on the relative orientation of two coupled magnetic layers is called giant magnetoresistance (GMR) and was described theoretically by Camley and Barnaś [26]. Specifically, the resistance per unit length of each segment completely depends on the relative magnetic directions of the free layer and the reference layer. Specifically, when the magnetic direction of the free layer is parallel (anti-parallel) to the reference layer, the resistance per unit length is low (high).
The mathematical expression for the resistance of a spintronic memristor can be written as [23]:
M ( x ) = r H · x + r L · ( D x )
where rH and rL denote the highest and lowest resistance per unit length, respectively. The variable x represents the position of the domain wall, and its dynamic function is given as [23]:
v = d x d t = { η · Γ v · J , J J c r 0 , J < J c r
where η = ±1 denotes the polarity of the spintronic memristor. Γv is the domain wall velocity coefficient, and J and Jcr are the real-time and critical current density, respectively. Then, the critical current Icr can be calculated using Icr = Jcr·h·z. The domain wall movement occurs only when the real-time current density J is above the critical current density Jcr.
Differentiating Equation (1) with respect to t gives the memristance variation rate as follows:
d M d t = Δ r · d x d t = { Δ r · η · Γ v · J , J J c r 0 , J < J c r
where Δr denotes the difference between rH and rL, i.e., Δr = rHrL.
From Equation (3), if the real-time current density J is smaller than the critical current density Jcr (namely, J < Jcr), the memristance variation is equal to zero, the spintronic memristor can be deemed an ordinary resistor; otherwise (i.e., JJcr), Equation (3) can be rewritten as:
d M d t = Δ r · η · Γ v · J = Δ r · η · Γ v h · z · V M
where V is the voltage applied to the spintronic memristor.
By integrating both sides of Equation (4), Equation (1) can be rewritten as:
M ( φ ) = { R H , φ > φ t h 2 M 0 2 + 2 A φ , φ t h 1 φ φ t h 2 R L , φ < φ t h 1 , where { φ t h 1 = R L 2 M 0 2 2 A φ t h 2 = R H 2 M 0 2 2 A
where φ is the magnetic flux flowing through the spintronic memristor and the flux thresholds (φth1 and φth2) are determined by the natural memristance boundary: RH = rH·D and RL = rL·D (commonly RHRL). M0 denotes the initial memristance at t = 0, and A = Δr·η·Γv/h/z is an auxiliary constant.
From Equation (5), if the real-time current density J always satisfies JJcr, the total flux variation Δφ can be calculated using:
Δ φ = 1 2 A [ M Obj 2 M 0 2 ]
where Mobj denotes the target memristor. Furthermore, assuming the applied voltage is a constant Vcon, the switching time ΔT can be computed using ΔT = Δφ/Vcon.
To facilitate the circuit simulation in the subsequent sections, the corresponding Spice model of a spintronic memristor was built up. The relevant sub-circuit description is provided in Table 1.
Notably, the memristance variation rule of the spintronic memristor, which is very important for the implementation of memristor-based multi-valued logic, is discussed through the use of PSpice circuit simulations (as shown in Figure 2, Version 16.5, Cadence, San Jose, CA, USA).
Figure 2a illustrates the memristance variation under a positive voltage pulse V+ (Amplitude: (0.15, 0.16, 0.18, 0.2, 0.22) for each period = 80 ns). Vth1 = RL·Icr and Vth2 = RH·Icr were the voltage thresholds, and the initial memristance was set to M0 = RL. In each period, the memristance variation could be divided into two phases as follows:
Phase 1: The real-time current density satisfied JJcr, where the memristance increased while the real-time current density decreased.
Phase 2: Until the real-time current density satisfied J < Jcr, the memristance tended to be steady.
Figure 2b illustrates the memristance variation under a negative voltage pulse V−. Similarly, the memristance variation could be divided into two phases.
Phase 1: When 0 ≤ t ≤ 200 ns, the real-time current density satisfied J < Jcr and the memristance remained at the initial value RH.
Phase 2: Once the real-time current density satisfied JJcr (i.e., 200 ns ≤ t ≤ 400 ns), the memristance decreased to its lowest value RL within a short time.

3. Implementation of Ternary Logic Gates

In this section, a specific description of the design process of a flexible memristor-CMOS hybrid circuit for the implementation of ternary logic gates (NAND, NOR, AND, and OR gates) is given.

3.1. Memristor-CMOS Hybrid Circuit

The memristor-CMOS hybrid circuit diagram for the implementation of ternary logic gates is provided in Figure 3. Note that the entire circuit can be divided into three parts: the leftmost box is the so-called initialization circuit, the middle box is the writing circuit, and the rightmost box provides the corresponding reading circuit.
In the writing circuit (as shown in Figure 3), M1 and M2 (labeled by the blue dashed box) are two identical spintronic memristors with the boundary resistances RL and RH. Namely, their resistances (R1 and R2) satisfy R1,2∈[RL, RH]. The remaining memristor Ms (labeled by the red dashed box) is named the load memristor. Its resistance (Rs) varies from RSL to RSH, i.e., Rs∈[RSL, RSH]. Notably, to realize different ternary logic gates, the three resistances should always satisfy RsR1,2. V1 and V2 are two time-sequence inputs with the period T, and Vc is a constant voltage. In the initialization circuit, Vini = ±VDD denotes the initialization voltage for the resistance initialization. In the reading circuit, Vread represents the reading voltage. Its value satisfies Vread < RSL·Icr such that the load memristance variation will not occur during the reading operation. Rc1, Rc2, and Rc3 are three regular resistors.
Then, it can be concluded that a ternary logic operation can be realized using the proposed memristor-CMOS hybrid circuit within three steps, namely initialization, writing operation, and reading operation. The input voltages (V1 and V2) and the output voltage Vout represent the input and output logic state variations, respectively. The specific realization process is provided in the next subsection.

3.2. NAND Gate

Theoretically, the NAND gate can be deemed a universal gate. Namely, every other gate function can be generated by successive implementations of NAND gates [10]. Hence, the specific realization of a ternary NAND gate is demonstrated below.
From Figure 3, the specific circuit diagram for the implementation of a ternary NAND gate is demonstrated in Figure 4. Based on the previous description, the entire operation is performed in three steps.
Step 1: Initialization
As the name suggests, the initialization is conducted by the initialization circuit (as shown in Figure 3). Based on the memristance variation rule, when the initialization voltage Vini = VDD, the upper transistor Tr3 turns off, while the lower transistor Tr4 turns on. In this situation, the voltage applied to the memristor is equal to −VDD and the resistance of the memristor will decrease. On the contrary, when the initialization voltage Vini = −VDD, the transistor Tr3 turns on and the lower transistor Tr3 turns off. The voltage applied to the memristor is equal to VDD and the memristance will increase. Before each ternary NAND operation, the memristors M1 and M2 need to initialize to their lowest value RL, and it is recommended that the memristor Ms1 is initialized to a median value RMid.
Step 2: Writing operation
The writing operation is performed by the writing circuit. Based on Kirchhoff’s current law (KCL), the current flowing in the writing circuit can be written as:
V 1 V s R 1 + V 2 V s R 2 = V s V c R s 1
Due to Rs1R1, 2, the node voltage Vs can be approximately calculated using:
V s R 2 R 1 + R 2 · V 1 + R 1 R 1 + R 2 · V 2
For ternary logic operations, the inputs (V1 and V2) always have three states VH, VL, and VMid, representing the logic “2,” logic “1,” and logic “0,” respectively. Then, the six possible cases can be summarized as follows:
  • Case a: When V1 = V2 = VH (logic “2”), the node voltage VsVH (From Equation (8)). The voltage applied to the load memristor Ms1 is equal to VHVc. Assuming VHVc > RMid·Icr, the load memristance Rs1 will go down to its lowest value RSL within a very short time.
  • Case b: When V1 = V2 = VMid (logic “1”), the node voltage VsVMid. The voltage applied to the load memristor Ms1 is equal to VMidVc. Assuming |VMidVc|≤ RMid·Icr, the load memristance Rs1 remains in the initial state RMid.
  • Case c: When V1 = V2 = VL (logic “0”), the node voltage VsVL. The voltage applied to the load memristor Ms1 is equal to VcVL. Assuming |VcVL| > RMid·Icr, the load memristance Rs1 will sharply increase to its highest value RSH.
  • Case d: When V1 = VL and V2 = VH (or V1 = VH and V2 = VL), the node voltage Vs can be calculated using:
    V s { R 1 R 1 + R 2 · V H   ( if   V 1 = V L   and   V 2 = V H ) R 2 R 1 + R 2 · V H   ( if   V 1 = V H   and   V 2 = V L )
According to the memristance variation rule, the node voltage Vs will vary to RL/(RL+RHVH ≈ 0 (due to RHRL). Similar to Case c, the load voltage is equal to VcVL, and the load memristance Rs1 will go up to its highest value RSH.
  • Case e: When V1 = VL and V2 = VMid (or V1 = VMid and V2 = VL), the node voltage Vs can be calculated using:
    V s { R 1 R 1 + R 2 · V Mid   (   if   V 1 = V L   and   V 2 = V Mid )   R 2 R 1 + R 2 · V Mid   ( if   V 1 = V Mid   and   V 2 = V L )
Here, the voltage VMid satisfies |VMid|>RL· Icr, the node voltage Vs will change to RL/(RL+RHVMid ≈ 0. The load memristance will increase to the highest value RSH.
  • Case f: When V1 = VH and V2 = VMid (or V1 = VMid and V2 = VH), the node voltage Vs can be expressed as:
    V s { R 1 R 1 + R 2 · V Mid + R 2 R 1 + R 2 · V H   (   if   V 1 = V H   and   V 2 = V Mid )   R 2 R 1 + R 2 · V Mid + R 1 R 1 + R 2 · V H   ( if   V 1 = V Mid   and   V 2 = V H )
Here, once the voltage VMid satisfies |VHVMid|>RL·Icr, the node voltage Vs will change to RH/(RL+RHVMidVMid. Similar to Case b, the load memristance remains in its initial state, i.e., RMid.
Step 3: Reading operation
After writing operation, the reading operation is performed by the reading circuit. Based on the specific load memristance, three cases can be distinguished as follows.
  • Case I: When the load memristance Rs1 = RSH, the node voltage Vg can be calculated using:
    V g = R c 1 R SH + R c 1 · V read
Assuming RSHRc1, the node voltage Vg ≈ 0. At this time, the transistor Tr1 turns on, while the other transistor Tr2 turns off. As a result, the output Vout = Vout1 = VDD = VH, denoting the logic “2.”
  • Case II: When the load memristance Rs1 = RMid, the node voltage Vg can be given as:
    V g = R c 1 R Mid + R c 1 · V read
Assuming RMid = Rc1 and Rc2 = Rc3, the node voltage is equal to 0.5Vread. At this time, transistors Tr1 and Tr2 both turn on, and the current flows through two resistors Rc2 and Rc3. Correspondingly, the output voltage Vout = Vout2 = 0.5VDD = VMid, which denotes the logic “1.”
  • Case III: When the load memristance Rs1 = RSL, The node voltage can be computed using:
    V g = R c 1 R SL + R c 1 · V read
Assuming Rc1RSL, the node voltage VgVread. Contrary to Case I, the transistor Tr1 turns off, while the other transistor Tr2 turns on. The output Vout = Vout3 = VGnd = VL, representing the logic “0.”
For the purpose of clarity, a summary of the information regarding the ternary NAND gate is collected in Table 2. It is clear that the input–output relationship of the presented logic circuit is consistent with the truth table of the NAND gate, which verifies the validity of the entire operation process.
From Table 2, since both the input and output variables are represented as constant voltages, the signal degradation can be addressed in the presented logic circuit. Meanwhile, due to the existence of the CMOS in the reading circuit, the proposed logic circuit possesses a sufficient load capacity. These two advantages enable the ternary NAND gate circuit to be easily cascaded for the realization of some more complex ternary logic operations. In addition, the proposed double-input ternary NAND logic gate circuit can be further extended to realize the multi-input ternary NAND gate. The corresponding process description will not be repeated here due to the similarity with the double-input ternary NAND logic gate.

3.3. Other Ternary Logic Gates

Similarly, the proposed memristor-CMOS hybrid circuit can perform some other ternary logic gates, such as the NOR, AND, and OR gates. The corresponding circuit diagrams are exhibited in Figure 5. It is noted that, since the initialization circuit and reading circuit for all the above-mentioned ternary logic gates are the same (as shown in Figure 3), they are not provided in this part.
From Figure 5, these three ternary logic gates can be realized using the uniform circuit structure (i.e., the proposed memristor-CMOS hybrid circuit). Then, the operation steps (i.e., the initialization, writing operation, and reading operation) of these three ternary logic gates are the same as that of the two-input ternary NAND gate. In particular, during the initialization, the memristors M1 and M2 are both set to their highest state RH, and the load memristor Rs1 is initialized to a median value RMid. Furthermore, due to the same circuit structure, the KCL function of all three logic circuits (AND, OR, and NOR gates) can also be mathematically expressed using Equation (7) and Equation (8). Therefore, the specific process description of these three ternary logic gates is not provided in this part due to the similarity with the two-input ternary NAND gate.
Notably, the only difference among these logic circuits (NAND, AND, OR, and NOR gates) is the polarity of the memristor (i.e., the connection mode). Hence, Figure 5 provides the important polarity information of the interconnected memristors (or the memristor connection mode), which is necessary for the implementation of different basic ternary logic gates.
For simplicity, the overall information of these logic gates is collected in Table 3.
From Table 3, the input and output of these three logic circuits are all constant voltages and their relationships are all consistent with the corresponding truth table, which verifies the validity of the entire scheme.

3.4. Comparison and Analysis

In this subsection, five existing ternary logic implementations (i.e., the CMOS based logic [17], CNTFET based logic [18], the memristor-CNTFET based logic [20], pure memristor-based logic [16], and memristor-as-driver (MAD) logic [12]) are introduced for comparison purposes. The corresponding information (including circuit construction, input and output mode, load capacity, cascaded capacity, robustness, and functionality) is collected in Table 4.
From Table 4, the circuit structure of the proposed method (i.e., method 1) is fixed and uniform compared with the other five competitors. That is, for the existing ternary logic implementation, different logic gates always need different circuit diagrams, which may lead to additional fabrication costs. Then, different from the pure memristor-based method (i.e., method 5) and the MAD method (i.e., method 6), the input and output logic state variables of the proposed method are both constant voltages, which is beneficial for addressing the signal degradation issue. Meanwhile, due to the participation of the CMOS switches, the proposed ternary logic circuit has a sufficient load capacity. Notably, based on the above two advantages, the proposed ternary logic can be used for the implementation of some more complicated logic functions with the cascaded configuration (i.e., the easily-cascaded feature). Furthermore, except for the CMOS-based method (i.e., method 2) and the CNTFET-based method (i.e., method 3), the initialization is necessary for the other four methods (including the proposed ternary logic), which may lead to a relatively big time delay. However, the robustness of methods 2 and 3 is not as good as the other competitors. Specifically, for methods 2 and 3, the logic operation and storage are two independent and parallel processes. That is, if the power is switched off during the logic operation, all the memory contents are erased immediately. For the other four ternary logic implementations, the logic states can be stored in the memristors (i.e., the non-volatility). Furthermore, method 2 is highly sensitive to the transistor dimensions, and method 3 suffers from the “charge pile-up” issue in the channel that may affect the performance of on/off switching. In addition, the proposed method can implement all the basic ternary logic gates, while methods 2 and 3 just provide the circuit diagrams of the ternary NOR gate and NAND gate.

4. Circuit Simulations and Analysis

To verify the validity and effectiveness of the entire scheme, a series of circuit simulations with the relevant analysis were conducted. The entire process description is provided below.

4.1. Experimental Environment

The experiment platform was a desktop workstation with a Core i7–6700 processor, 16 GB DDR4 RAM, and a Windows 10 OS. As with the other existing memristor-based logic implementation [12,16,20], the circuit experiments were also performed using PSpice (Version 16.5, Cadence, San Jose, CA, USA) and Matlab software (R2014a, MathWorks, Natick, MA, USA).

4.2. Parameter Selection

Based on the previous description, the parameter selection (including the device parameters and stimulation parameters) is very important for the realization of the ternary logic gates. Considering the above-mentioned constraint conditions and the device characteristics of the spintronic memristor, the parameters were chosen and are collected in Table 5.
Notably, the device parameters of the spintronic memristors (shown in Table 5) are all common values that have been proved to be valid in the literature [21]. Meanwhile, the (threshold) voltages and current densities are suitable for CMOS technology [27]. All the constraint conditions are achieved in this experiment.

4.3. Simulation Results and Analysis

Based on the given technical parameters, two case studies were investigated to verify the effectiveness of the proposed circuit. The specific results and the corresponding analysis are provided below.

4.3.1. Case Study 1

In case study 1, the ternary NAND, NOR, AND, and OR gates were realized using the proposed hybrid memristor-CMOS logic circuit.
Figure 6 illustrates the simulation results of four basic ternary logic gates, i.e., the NAND gate (the first two rows), the NOR gate (the second two rows), the AND gate (the third two rows), and the OR gate (the last two rows). In1 (the green solid line) and In2 (the red dashed line) represent the input signals during the writing operation, and the purple solid line represents the obtained output logic states. Here, W(i, j) and R(o) denote the writing operation and reading operation, respectively. The variables i, j, and o represent the logic states of the input and output signals. The obtained input–output relationships were consistent with the corresponding truth tables (as shown in Table 2 and Table 3), and the response time was very short (nanosecond scale). Both of these demonstrate the validity and effectiveness of the proposed memristor-CMOS based circuit diagram.
Then, the memristance variation during a ternary NAND operation is exhibited in Figure 7. The green solid line and the brown dashed line represent the resistance of memristors M1 and M2, respectively, and the blue solid line denotes the resistance of the load memristor Ms1. The memristance variation was in accordance with the theoretical analysis in Section 3. Meanwhile, when the power cut off, the output logic state could be stored in the load memristor Ms1 in the resistance form. Therefore, the robustness of the proposed circuit could be sufficiently guaranteed.

4.3.2. Case Study 2

To demonstrate that the proposed logic circuit could perform some complicated ternary logic functions, a series of circuit simulations were conducted in this case study. The specific cascaded ternary logic function and the relevant simulation results are provided below.
Figure 8a demonstrates the specific schematic diagram and the corresponding truth table, the ternary logic function and the final circuit simulation results are provided in Figure 8b. Based on the obtained input–output relationship, it is clear that the proposed memristor-CMOS circuit could perform this cascaded ternary logic function. In particular, the final input–output relationship was the same as that of the ternary NOR logic gate. Namely, the ternary logic function could be rewritten as:
Function   1 = ( I n 1 + I n 2 ¯ ) · ( I n 1 · I n 2 ¯ ) = ( I n 1 + I n 2 ¯ )
Notably, Equation (15) was also established for the binary logic.

5. Conclusions

This study mainly investigated memristor-based unbalanced ternary logic implementation. Specifically, the spintronic memristor with its unique memristance variation rule was briefly discussed. Then, a hybrid memristor-CMOS based circuit was designed for the implementation of the basic ternary logic gates (including the NAND, NOR, AND, and OR gates). Compared with the existing ternary logic implementations, the proposed method had advantages in terms of circuit construction, response time, robustness, functionality, load capacity, and cascaded capacity. Finally, all these above-mentioned merits were verified by a series of circuit simulations.

Author Contributions

Methodology, H.Z.; software Z.Z. and L.L.; writing—original draft preparation, H.Z. and Z.D.; conceptualization, S.D.; writing—review and editing, H.Z. and H.L.; visualization, L.L.; supervision, Z.D.; funding acquisition, M.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (grant number 61671194) and Fundamental Research Funds for the Provincial Universities of Zhejiang (grant number GK199900299012-010).

Acknowledgments

The authors would like to thank the editorial board and reviewers for their suggesting regarding improving this paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Waldrop, M.M. The chips are down for Moore’s law. Nature News 2016, 530, 144. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Chua, L. Memristor-the missing circuit element. IEEE Trans. Circuit Theory 1971, 18, 507–519. [Google Scholar] [CrossRef]
  3. Strukov, D.B.; Snider, G.S.; Stewart, D.R.; Williams, R.S. The missing memristor found. Nature 2008, 453, 80–83. [Google Scholar] [CrossRef] [PubMed]
  4. Dong, Z.; Lai, C.S.; Qi, D.; Xu, Z.; Li, C.; Duan, S. A general memristor-based pulse coupled neural network with variable linking coefficient for multi-focus image fusion. Neurocomputing 2018, 308, 172–183. [Google Scholar] [CrossRef]
  5. Pi, S.; Li, C.; Jiang, H.; Xia, W.; Xin, H.; Yang, J.J.; Xia, Q. Memristor crossbar arrays with 6-nm half-pitch and 2-nm critical dimension. Nat. Nanotechnol. 2019, 14, 35–39. [Google Scholar] [CrossRef]
  6. Dong, Z.; Lai, C.S.; He, Y.; Qi, D.; Duan, S. Hybrid dual-complementary metal–oxide–semiconductor/memristor synapse-based neural network with its applications in image super-resolution. IET Circ. Device. Syst. 2019, 13, 1241–1248. [Google Scholar] [CrossRef]
  7. Yao, P.; Wu, H.; Gao, B.; Tang, J.; Zhang, Q.; Zhang, W.; Qian, H. Fully hardware-implemented memristor convolutional neural network. Nature 2020, 577, 641–646. [Google Scholar] [CrossRef] [PubMed]
  8. Wang, Z.; Li, C.; Song, W.; Rao, M.; Belkin, D.; Li, Y.; Strachan, J.P. Reinforcement learning with analogue memristor arrays. Nature Electron. 2019, 2, 115–124. [Google Scholar] [CrossRef]
  9. Cao, Y.; Wen, S.; Huang, T.; Zeng, Z. Passivity analysis of delayed reaction–diffusion memristor-based neural networks. Neural Netw. 2019, 109, 159–167. [Google Scholar] [CrossRef]
  10. Dong, Z.; He, Y.; Hu, X.; Qi, D.; Duan, S. Flexible memristor-based LUC and its network integration for Boolean logic implementation. IET Nanodiele. 2019, 2, 61–69. [Google Scholar] [CrossRef]
  11. Kvatinsky, S.; Belousov, D.; Liman, S.; Satat, G.; Wald, N.; Friedman, E.G.; Weiser, U.C. MAGIC—Memristor-aided logic. IEEE Trans. Circuits Syst. Brief. 2014, 61, 895–899. [Google Scholar] [CrossRef]
  12. Guckert, L.; Swartzlander, E.E. MAD gates—Memristor logic design using driver circuitry. IEEE Trans. Circuits Syst. Brief. 2016, 64, 171–175. [Google Scholar] [CrossRef]
  13. Kim, K.M.; Williams, R.S. A family of stateful memristor gates for complete cascading logic. IEEE Trans. Circuits Syst. Reg. 2019, 66, 4348–4355. [Google Scholar] [CrossRef]
  14. Zhou, G.; Ren, Z.; Wang, L.; Sun, B.; Duan, S.; Song, Q. Artificial and wearable albumen protein memristor arrays with integrated memory logic gate functionality. Mater. Horizons 2019, 6, 1877–1882. [Google Scholar] [CrossRef]
  15. El-Slehdar, A.A.; Fouad, A.H.; Radwan, A.G. Memristor-based balanced ternary adder. In Proceedings of the 25th International Conference on Microelectronics (ICM), Beirut, Lebanon, 15–18 December 2013; pp. 1–4. [Google Scholar]
  16. Khalid, M.; Singh, J. Memristor based unbalanced ternary logic gates. Analog Integr. Circ. S. 2016, 87, 399–406. [Google Scholar] [CrossRef]
  17. Balla, P.C.; Antoniou, A. Low power dissipation MOS ternary logic family. IEEE J. S-T Circ. 1984, 19, 739–749. [Google Scholar] [CrossRef]
  18. Lin, S.; Kim, Y.B.; Lombardi, F. A novel CNTFET-based ternary logic gate design. In Proceedings of the 52nd IEEE International Midwest Symposium on Circuits and Systems, Cancun, Mexico, 2–5 August 2009; pp. 435–438. [Google Scholar]
  19. Appenzeller, J.; Lin, Y.M.; Knoch, J.; Chen, Z.; Avouris, P. Comparing carbon nanotube transistors-the ideal choice: A novel tunneling device design. IEEE Trans. Electron Dev. 2005, 52, 2568–2576. [Google Scholar] [CrossRef] [Green Version]
  20. Soliman, N.S.; Fouda, M.E.; Radwan, A.G. Memristor-CNTFET based ternary logic gates. Microelectron. J 2018, 72, 74–85. [Google Scholar] [CrossRef]
  21. Wang, X.; Chen, Y.; Xi, H.; Li, H.; Dimitrov, D. Spintronic memristor through spin-torque-induced magnetization motion. IEEE Electron Dev. Lett. 2009, 30, 294–297. [Google Scholar] [CrossRef]
  22. Nafea, F.; Dessouki, A.A.S.; El-Rabaie, S.; Elnaghi, B.E.; Ismail, Y.; Mostafa, H. An accurate model of domain-wall-based spintronic memristor. Integration 2019, 65, 149–162. [Google Scholar] [CrossRef]
  23. Chen, Y.; Wang, X. Compact modeling and corner analysis of spintronic memristor. In Proceedings of the IEEE/ACM International Symposium on Nanoscale Architectures, San Francisco, CA, USA, 30–31 July 2009; pp. 7–12. [Google Scholar]
  24. Luo, S.; Xu, N.; Guo, Z.; Zhang, Y.; Hong, J.; You, L. Voltage-controlled skyrmion memristor for energy-efficient synapse applications. IEEE Electron Dev. Lett. 2019, 40, 635–638. [Google Scholar] [CrossRef]
  25. Berger, L. Exchange interaction between ferromagnetic domain wall and electric current in very thin metallic films. J. Appl. Phys. 1984, 55, 1954–1956. [Google Scholar] [CrossRef]
  26. Camley, E.; Barnaś, J. Theory of giant magnetoresistance effects in magnetic layered structures with antiferromagnetic couplin g. Phys. Rev. Lett. 1989, 63, 664–667. [Google Scholar] [CrossRef] [PubMed]
  27. Baker, R.J. CMOS: Circuit Design, Layout, and Simulation; John Wiley & Son: Hoboken, NJ, USA, 2019. [Google Scholar]
Figure 1. (a) 3D structure of a current in-plane spintronic memristor and (b) a simplified equivalent circuit.
Figure 1. (a) 3D structure of a current in-plane spintronic memristor and (b) a simplified equivalent circuit.
Electronics 09 00542 g001
Figure 2. (a) The memristance variation under a positive voltage pulse. (b) The memristance variation under a negative voltage pulse.
Figure 2. (a) The memristance variation under a positive voltage pulse. (b) The memristance variation under a negative voltage pulse.
Electronics 09 00542 g002
Figure 3. The memristor-CMOS (complementary metal-oxide semiconductor) hybrid logic circuit (including initialization circuit, writing circuit, and reading circuit).
Figure 3. The memristor-CMOS (complementary metal-oxide semiconductor) hybrid logic circuit (including initialization circuit, writing circuit, and reading circuit).
Electronics 09 00542 g003
Figure 4. The circuit diagram for the implementation of a NAND gate (including writing circuit and reading circuit).
Figure 4. The circuit diagram for the implementation of a NAND gate (including writing circuit and reading circuit).
Electronics 09 00542 g004
Figure 5. The writing circuit for the implementation of other ternary logic gates.
Figure 5. The writing circuit for the implementation of other ternary logic gates.
Electronics 09 00542 g005
Figure 6. The simulation results of four basic ternary logic gates (including the NAND, NOR, AND, and OR gates).
Figure 6. The simulation results of four basic ternary logic gates (including the NAND, NOR, AND, and OR gates).
Electronics 09 00542 g006
Figure 7. The relationship between the memristance and time during a ternary NAND operation.
Figure 7. The relationship between the memristance and time during a ternary NAND operation.
Electronics 09 00542 g007aElectronics 09 00542 g007b
Figure 8. (a) The schematic diagram and truth table of function 1. (b) The circuit simulations of two cascaded ternary logic functions.
Figure 8. (a) The schematic diagram and truth table of function 1. (b) The circuit simulations of two cascaded ternary logic functions.
Electronics 09 00542 g008
Table 1. Spice model description for spintronic memristor.
Table 1. Spice model description for spintronic memristor.
*Spintronic Memristor
.SUBCKT Spintronic memristor Plus Minus Flux Charge PARAMS:
+D=1000E-9 h=70E-10 z=10E-9 rl=4E9 rh=6E9 Jcr=5E11 Taov=1.3517E-11
******* Differential equation modeling*******
Gx 0 x value={if(abs(I(Emem)/(h*z))<Jcr,0,Taov*I(Emem)/(h*z))}
Cx x 0 1 IC={0}
Raux x 0 1T
******* Resistive port of the memristor*******
Emem plus aux value={if(V(x)<=D, I(Emem)*V(x)*(rh-rl), I(Emem)*D*(rh-rl))}
RH aux minus {rl*D}*******Flux computation *******
Eflux flux 0 value={SDT(V(plus, minus))}
*******Charge computation *******
Echarge charge 0 value={SDT(I(Emem))}
.ENDS spintronic memristor
Table 2. A summary of the information of the ternary NAND gate.
Table 2. A summary of the information of the ternary NAND gate.
Truth Table 1Writing OperationReading Operation
In1In2OutCasesV1V2Rs1CasesVoutLogic
002Case cVLVLRSHCase IVH2
102Case eVMidVLRSHCase IVH2
202Case dVHVLRSHCase IVH2
012Case eVLVMidRSHCase IVH2
111Case bVMidVMidRMidCase IIVMid1
211Case fVHVMidRMidCase IIVMid1
022Case dVLVHRSHCase IVH2
121Case fVMidVHRMidCase IIVMid1
220Case aVHVHRSLCase IIIVL0
1 In1,2 and Out denote the inputs and output of the NAND gate, respectively.
Table 3. The overall information of the other ternary gates: AND, OR, and NOR gates.
Table 3. The overall information of the other ternary gates: AND, OR, and NOR gates.
Logic FunctionsTruth TableInitializationWriting OperationReading Operation
InputOutputM1 (M2)Ms1V1V2Rs1VoutLogic 1
AND0 00RHRMidVLVLRSLVL0
1 00RHRMidVMidVLRSLVL0
2 00RHRMidVHVLRSLVL0
1 11RHRMidVMidVMidRMidVMid1
2 11RHRMidVHVMidRMidVMid1
2 22RHRMidVHVHRSHVH2
OR0 00RHRMidVLVLRSLVL0
1 01RHRMidVMidVLRMidVMid1
2 02RHRMidVHVLRSHVH2
1 11RHRMidVMidVMidRMidVMid1
2 12RHRMidVHVMidRSHVH2
2 22RHRMidVHVHRSHVH2
NOR0 02RHRMidVLVLRSHVH2
1 01RHRMidVMidVLRMidVMid1
2 00RHRMidVHVLRSLVL0
1 11RHRMidVMidVMidRMidVMid1
2 10RHRMidVHVMidRSLVL0
2 20RHRMidVHVHRSLVL0
1VL, VMid, and VH represent the logic “0,” logic “1,” and logic “2,” respectively.
Table 4. Comparison of the proposed ternary logic circuit with other logic implementation.
Table 4. Comparison of the proposed ternary logic circuit with other logic implementation.
ItemsMethod 1 1Method 2Method 3Method 4Method 5Method 6
Circuit StructureFixedUnfixedUnfixedUnfixedUnfixedUnfixed
Input and OutputVoltageVoltageVoltage VoltageMemristanceMemristance
Load CapacitySufficientSufficientSufficientSufficientInsufficientInsufficient
Cascaded CapacityGoodGoodGoodGoodNot goodNot good
InitializationNeededUnneededUnneededNeededNeededNeeded
Robustness StrongMedianMedianMedianStrongStrong
FunctionalityStrongMedianMedianStrongStrongStrong
1 Methods 1–6 are the proposed method, the CMOS based method, the carbon nanotube field-effect transistor (CNTFET)-based method, memristor-CNTFET based method, pure memristor-based method, and memristor-as-driver (MAD) method, respectively.
Table 5. Technical parameters for the implementation of ternary logic.
Table 5. Technical parameters for the implementation of ternary logic.
Device Parameters 1Stimulation ParametersConstraint Conditions
rH = 8 × 109 Ω/m; rL = 4 × 109 Ω/mVH = 7.0 V|Vread| ≤ RSH·Icr2
rSH = 16 × 1010 Ω/m; rSL = 4 × 1010 Ω/mVMid = 3.0 V|0.5·Vread| ≤ RMid·Icr2
Jcr1 = 5 × 1011; Jcr2 = 2.5 × 1011;VL = 0 V|VHVc| > RMid·Icr2
H = 7 × 10−9 m; z = 10 × 10−9 mVC = 3.0 V|VMidVc| ≤ RMid·Icr2
Γv = 1.3517 × 10−11; D = 10 × 10−6 mVread = 2.5 VRSH·Icr2 ≤ |VcVL|
RMid = Rs1 = 100 kΩT = 160 ns|VMid| > RL· Icr
Rs2 = Rs3 = 10 Ω/|VHVMid | > RL·Icr
1RL = rL·D = 4 kΩ, RH = rH·D = 8 kΩ (boundary resistance of M1 and M2), RSL = rSL·D = 40 kΩ, RSH = rSH·D = 160 kΩ (boundary resistance of Ms1), Icr1 = Jcr1·h·z = 3.5 × 10−5 A is the current threshold of the memristors M1 and M2, and Icr2 = Jcr2·h·z= 1.75 × 10−5 A is the current threshold of the load memristor Ms1. Vth1 = RL·Icr1 = 0.14 V, Vth2 = RH·Icr1 = 0.28 V (voltage thresholds of M1 and M2), Vth3 = RSL·Icr2 = 0.7 V, Vth4 = RSH·Icr2 = 2.8 V (voltage thresholds of MS1). Vread denotes the reading voltage, T is the period of each operation.

Share and Cite

MDPI and ACS Style

Zhang, H.; Zhang, Z.; Gao, M.; Luo, L.; Duan, S.; Dong, Z.; Lin, H. Implementation of Unbalanced Ternary Logic Gates with the Combination of Spintronic Memristor and CMOS. Electronics 2020, 9, 542. https://doi.org/10.3390/electronics9040542

AMA Style

Zhang H, Zhang Z, Gao M, Luo L, Duan S, Dong Z, Lin H. Implementation of Unbalanced Ternary Logic Gates with the Combination of Spintronic Memristor and CMOS. Electronics. 2020; 9(4):542. https://doi.org/10.3390/electronics9040542

Chicago/Turabian Style

Zhang, Haifeng, Zhaowei Zhang, Mingyu Gao, Li Luo, Shukai Duan, Zhekang Dong, and Huipin Lin. 2020. "Implementation of Unbalanced Ternary Logic Gates with the Combination of Spintronic Memristor and CMOS" Electronics 9, no. 4: 542. https://doi.org/10.3390/electronics9040542

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop