Non-volatile counter and counting method based on MAGIC

Through the nonvolatile counter design based on MAGIC logic, the use of delay lines and MAGIC logic gate circuit, combined with clock pulse and voltage application scheme, the nonvolatile counter output problem in the prior art is solved, and a simple structure and low cost are realized. Nonvolatile counter.

CN114285407BActive Publication Date: 2024-12-06NAT UNIV OF DEFENSE TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111665024.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-12-06
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing memristor-based counters have difficulties in achieving nonvolatile outputs, MRL designs have advantages in power consumption and area but have not achieved nonvolatile, and IMP designs have complex operations and high cost.

Method used

Using a nonvolatile counter design based on MAGIC logic, through delay lines and multiple sequential counting units, each counting unit includes a MAGIC logic gate circuit and a control signal generation circuit, and binary counting and results are realized using a clock pulse and voltage application scheme. storage.

Benefits of technology

A nonvolatile counter with fewer operational steps and simple structure is implemented, reducing the cost of external resources, and correctly converting the count results into binary numbers stored in a state memristor.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114285407B_ABST
    Figure CN114285407B_ABST
Patent Text Reader

Abstract

The present application provides a non-volatile counter and counting method based on MAGIC, the counter includes: a delay line and a plurality of counting units connected in sequence; each counting unit includes: a MAGIC logic gate circuit; each counting unit except the highest bit also includes: two control signal generating circuits connected to the MAGIC logic gate circuit; the delay line is used to output an initial signal corresponding to a specific step to each control signal generating circuit, so that each control signal generating circuit outputs a control signal corresponding to a specific step to the MAGIC logic gate circuit in the next counting unit; the delay line is also used to output control signals corresponding to other steps except the specific step to each MAGIC logic gate circuit; each counting unit executes each step corresponding to the counting unit according to the control signal corresponding to each step and the applied voltage through the MAGIC logic gate circuit, so as to realize binary counting and storage of counting results. The present application can realize non-volatile counting, and the counting steps are simple.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of circuit and system technology, and in particular to a non-volatile counter and counting method based on MAGIC. Background Art

[0002] Memristors are basic circuit elements that characterize the relationship between charge and magnetic flux. Their resistance state changes according to the applied stimulus (voltage or current) and remains unchanged when the stimulus is removed. Based on these properties, many methods have been designed to implement logic operations using memristors. According to the representation of inputs and outputs in logic units, memristor logic can be roughly divided into two categories: one is non-state logic, including resistive threshold logic (RTL), memristor ratioed logic (MRL), etc., where at least one of the input and output is represented by voltage; the other is stateful logic, including implied logic (IMPLY, IMP), memristor-aided logic (MAGIC), etc., where the input and output of the logic gate are stored in the memristor in the form of resistance states. Therefore, stateful logic has more advantages in logic cascading and non-volatility.

[0003] Counters are basic circuits in digital systems. Traditional counters based on complementary metal oxide semiconductors (CMOS) cannot keep count data after power failure. However, in some important situations, it is desirable to keep count data, such as power cycles, working hours, etc. To solve this problem, using EEPROMS to design CMOS-based counters requires a lot of area and power. Designing a counter based on memristors is another important solution to achieve non-volatile counter output results and reduce counter area and power consumption.

[0004] There are currently two different approaches to designing memristor-based counters. One is a counter based on MRL design, which has advantages in power consumption and area, but still does not achieve non-volatile output results. The other is an IMP-based counter, whose output is non-volatile, but its operation is very complex. Summary of the invention

[0005] The purpose of this application is to provide a non-volatile counter and counting method based on MAGIC, which can achieve non-volatility of output results through fewer operating steps and a relatively simple structure, and can effectively reduce the cost of external resources compared with traditional solutions.

[0006] In the first aspect, an embodiment of the present application provides a non-volatile counter based on MAGIC, which includes: a delay line and a plurality of counting units connected in sequence; each counting unit includes: a MAGIC logic gate circuit; each counting unit except the highest-order counting unit also includes: two control signal generating circuits connected to the MAGIC logic gate circuit; the delay line is respectively connected to each control signal generating circuit and each MAGIC logic gate circuit; the delay line is used to output an initial signal corresponding to a specific step to each control signal generating circuit, so that each control signal generating circuit converts the initial signal into a control signal corresponding to the specific step and outputs it to the MAGIC logic gate circuit in the next counting unit; the delay line is also used to output control signals corresponding to other steps except the specific step to each MAGIC logic gate circuit; each counting unit executes each step corresponding to the counting unit according to the control signal corresponding to each step and the applied voltage through the MAGIC logic gate circuit, so as to realize binary counting and storage of counting results.

[0007] Furthermore, each of the above-mentioned control signal generating circuits includes: an intermediate state memristor and a peripheral circuit; one end of the intermediate state memristor is connected to the output end of the delay line; the other end of the intermediate state memristor is connected to the peripheral circuit; each counting unit except the highest-order counting unit outputs the control signals corresponding to the first two steps of the next-order counting unit through the intermediate state memristor and the peripheral circuit in the two control signal generating circuits.

[0008] Furthermore, the above peripheral circuit includes: a resistor, a MOS tube and an inverter; the gate of the MOS tube is connected to one end of the intermediate state memristor connected to the delay line; the source of the MOS tube is respectively connected to the other end of the intermediate state memristor and one end of the resistor; the other end of the resistor is grounded; the drain of the MOS tube is connected to the input end of the inverter; the output end of the inverter serves as the output end of the peripheral circuit, and is used to output a control signal of a specific step of the next counting unit.

[0009] Furthermore, in the above-mentioned highest-order counting unit, the MAGIC logic gate circuit includes: three 1T1R units whose bottom electrodes are connected together; each 1T1R unit is composed of a memristor and a MOS tube connected in series.

[0010] Furthermore, the MAGIC logic gate circuit of each counting unit except the highest bit counting unit comprises: five 1T1R units and five MOS tubes.

[0011] Furthermore, the above counter further comprises: a voltage providing unit; the voltage providing unit is connected to each counting unit, and the voltage providing unit is used to provide different voltages for the MAGIC logic gate circuit in each counting unit.

[0012] In the second aspect, an embodiment of the present application also provides a counting method of a counter, which is applied to the MAGIC-based non-volatile counter as described in the first aspect, and the method includes: determining a target counting mode; the target counting mode includes an up counting mode or a down counting mode; determining a voltage application scheme corresponding to each step of each counting unit under the target counting mode; inputting a pulse signal into the MAGIC-based non-volatile counter to generate a control signal corresponding to each step of each counting unit; connecting the voltage according to the voltage application scheme so that each counting unit passes through the MAGIC logic gate circuit, and executes multiple steps corresponding to the counting unit according to the control signal corresponding to each step and the applied voltage, so as to realize binary counting and storage of the counting results.

[0013] Furthermore, if the number of counting units of the above-mentioned counter is a first number, the number of execution steps corresponding to the counter is a second number; the second number=the first number+9.

[0014] Furthermore, in the above-mentioned counting cycle, each counting unit executes a second number of steps; the first four steps are used to flip the output end of each counting unit; the fifth step is used to read the calculation results of each counting unit in the current counting cycle; and the remaining steps are used to perform logical operations, update the resistance state of the intermediate state memristor, and prepare for the flipping of the output end in the next counting cycle.

[0015] Furthermore, the first five steps include: initializing the output memristor corresponding to each counting unit to a low resistance state according to the requirements of the MAGIC NAND gate; flipping the output value corresponding to each counting unit; initializing the result memristor to a high resistance state according to the requirements of the copy logic gate; copying the output value of each counting unit to the result memristor; and reading the resistance state of the result memristor.

[0016] The embodiments of the present application bring the following beneficial effects:

[0017] The present application provides a non-volatile counter and counting method based on MAGIC, the counter comprises: a delay line and a plurality of counting units connected in sequence; each counting unit comprises: a MAGIC logic gate circuit; each counting unit other than the highest-order counting unit also comprises: two control signal generating circuits connected to the MAGIC logic gate circuit; the delay line is respectively connected to each control signal generating circuit and each MAGIC logic gate circuit; the delay line is used to output an initial signal corresponding to a specific step to each control signal generating circuit, so that each control signal generating circuit converts the initial signal into a control signal corresponding to the specific step and outputs it to the MAGIC logic gate circuit in the next counting unit; the delay line is also used to output control signals corresponding to other steps except the specific step to each MAGIC logic gate circuit; each counting unit executes each step corresponding to the counting unit according to the control signal corresponding to each step and the applied voltage through the MAGIC logic gate circuit, so as to realize binary counting and storage of counting results. The counter and counting method can correctly convert the counting result into a binary number and store the result in a state memristor. Through a relatively simplified design and a simple structure, the non-volatility of the output result is achieved. Compared with traditional solutions, the cost of external resources can be effectively reduced.

[0018] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application are realized and obtained by the structures specifically pointed out in the description, claims and drawings.

[0019] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 A structural block diagram of a MAGIC-based non-volatile counter provided in an embodiment of the present application;

[0022] Figure 2 A memristor symbol provided in an embodiment of the present application and a schematic diagram of the relationship between each voltage and resistance state in the symbol;

[0023] Figure 3A schematic diagram of a control signal generating circuit mn provided in an embodiment of the present application (assuming that an N-bit counter is designed according to this example, then m=1,2...N-2,N-1.n=1,2);

[0024] Figure 4 A circuit diagram of a highest bit counting unit provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of the symbols for a 1T1R unit and an inverter provided in an embodiment of the present application;

[0026] Figure 6 A circuit diagram of a counting unit other than the highest bit (taking Unit 0 as an example) provided in an embodiment of the present application;

[0027] Figure 7 A schematic diagram of various connecting lines in a circuit provided in an embodiment of the present application;

[0028] Figure 8 A 1T1R structure and related operation schematic diagram provided in an embodiment of the present application;

[0029] Fig. 9 A schematic diagram of a MAGIC logic gate provided in an embodiment of the present application;

[0030] Fig.10 A schematic diagram of generating a Unit 0 control signal provided in an embodiment of the present application;

[0031] Fig.11 A schematic diagram of Unit m provided in an embodiment of the present application (assuming that an N-bit counter is designed according to this example, then m = 1, 2 ... N-2, N-1.);

[0032] Fig.12 A flowchart of a counting method of a counter provided in an embodiment of the present application;

[0033] Fig.13 A 4-bit counter flow chart provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The technical solution of the present application will be described clearly and completely in conjunction with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0035] Currently, there are two types of counters based on memristor design: one is a counter based on MRL design, which has advantages in power consumption and area, but still has not achieved non-volatile output results; the other is a counter based on IMP, whose output is non-volatile, but its operation is very complicated.

[0036] Based on this, the embodiments of the present application provide a MAGIC-based non-volatile counter and counting method, which can achieve non-volatility of output results through fewer operating steps and a relatively simple structure.

[0037] To facilitate understanding of this embodiment, a MAGIC-based non-volatile counter disclosed in an embodiment of the present application is first introduced in detail.

[0038] The present application embodiment provides a non-volatile counter based on MAGIC, see Figure 1 As shown, the counter includes: a delay line 11 and a plurality of counting units 12 arranged in sequence; each counting unit 12 includes: a MAGIC logic gate circuit 121; each counting unit except the highest-order counting unit also includes: two control signal generating circuits 122 connected to the MAGIC logic gate circuit 121; the delay line 11 is respectively connected to each control signal generating circuit 122 and each MAGIC logic gate circuit 121; the delay line 11 is used to output an initial signal corresponding to a specific step to each control signal generating circuit 122, so that each control signal generating circuit 122 converts the initial signal into a control signal corresponding to the specific step and outputs it to the MAGIC logic gate circuit in the next counting unit; the delay line 11 is also used to output control signals corresponding to other steps except the specific step to each MAGIC logic gate circuit 121; each counting unit 12 executes each step corresponding to the counting unit according to the control signal corresponding to each step and the applied voltage through the MAGIC logic gate circuit 121, so as to realize binary counting and storage of counting results.

[0039] In order to achieve non-volatility, stateful logic should be used to design counters. There are two main types of stateful logic: one is IMP and the other is MAGIC. They both implement complex logic by decomposing the complex logic into basic logic and implementing it step by step. However, MAGIC has multiple basic logics, while IMP has only one basic logic, so the design based on MAGIC to implement complex logic often has a smaller delay. In addition, the output of IMP will cover an input, which makes it difficult to reconstruct the logic. Therefore, this application uses MAGIC to implement the proposed counter.

[0040] Generally speaking, in stateful logic, high resistance state (HRS) represents logic "0" and low resistance state (LRS) represents logic "1". The set operation is defined as the memristor switching from high resistance state to low resistance state. read is a small voltage that keeps the memristor state unchanged; a read operation is defined as applying a voltage V to the memristor. read And obtain the current passing through it, the large current corresponds to LRS and logic "1", and the small current corresponds to HRS and logic "0". The memristor symbol used in the embodiment of the present application, and the relationship between each voltage and resistance state in this symbol, refer to Figure 2 shown.

[0041] This application designs the MAGIC logic gate according to the resistance coupling principle and the 1T1R array structure, and determines the counter according to the binary addition and subtraction principle. The MAGIC logic gate circuit consists of several 1T1R units, MOS tubes as switches, fixed resistors, and inverters. In view of the characteristics of the counting pulse, this application uses clock pulses (CP) and delay lines to generate various step control signals. In each operation cycle, according to the upward or downward counting driving voltage application scheme, the driving voltage is applied to control the counter to complete an upward or downward count.

[0042] The MAGIC-based nonvolatile counter provided in the embodiment of the present application can correctly convert the counting result into a binary number and store the result in a state memristor, thereby achieving non-volatility of the output result through a relatively simple structure.

[0043] The embodiment of the present application also provides another non-volatile counter based on MAGIC, which is implemented based on the counter in the above embodiment; this embodiment focuses on describing the specific composition structure and corresponding functions of the non-volatile counter based on MAGIC.

[0044] In an embodiment of the present application, each of the above-mentioned control signal generating circuits includes: an intermediate state memristor and a peripheral circuit; one end of the intermediate state memristor is connected to the output end of the delay line; the other end of the intermediate state memristor is connected to the peripheral circuit; each counting unit except the highest-order counting unit outputs the control signals corresponding to the first two steps of the next-order counting unit through the intermediate state memristor and the peripheral circuit in the two control signal generating circuits.

[0045] See also Figure 3As shown, the above peripheral circuit includes: a resistor, a MOS tube and an inverter; the gate of the MOS tube is connected to one end of the delay line connected to the intermediate state memristor; the source of the MOS tube is respectively connected to the other end of the intermediate state memristor and one end of the resistor; the other end of the resistor is grounded; the drain of the MOS tube is connected to the input end of the inverter; the output end of the inverter is used as the output end of the peripheral circuit to output the control signal of the specific step of the next counting unit. In order to avoid interfering with other memristors while selecting the memristor, the memristors in this design are all in the form of 1T1R units. In order to show the schematic diagram more intuitively, Figure 3 In the figure, the MOS tube connected in series with the memristor to form a 1T1R unit and its control signal are not drawn.

[0046] See also Figure 4 As shown, in the above-mentioned highest bit counting unit, the MAGIC logic gate circuit includes: three 1T1R units with bottom electrodes connected together, such as Q N , A N , B N-1 Each 1T1R unit consists of a memristor and a MOS tube in series. The symbols of the 1T1R unit and the inverter are as follows: Figure 5 shown.

[0047] The MAGIC logic gate circuit of each counting unit except the highest bit counting unit comprises: five 1T1R units and five MOS tubes. Figure 6 Unit 0 is used as an example to show the structure of other counting units except the highest bit counting unit; among them, the MAGIC logic gate circuit realizes different logic functions according to different voltages and different control signals. Each control signal generating circuit consists of an intermediate state memristor and a peripheral circuit connected to it. The peripheral circuit includes an inverter, a fixed value resistor and a MOS tube as a switch. Each counting unit includes two control signal generating circuits, Figure 6 The connection lines are marked with dashed lines and explained in the figure. Figure 7 shown.

[0048] The following is an introduction to the design principles:

[0049] MAGIC logic gates can be implemented in a 1T1R array composed of 1T1R units. Each 1T1R unit contains a memristor and a MOS tube as a switch, which are connected in series. The definition of selecting the memristor is: applying a high voltage to turn on the MOS tube connected in series with the memristor. In this way, the memristor can be connected to other devices through the top electrode and the bottom electrode, and the resistance state changes according to the voltage it receives. According to this principle, if you want to set, reset or read the memristor M while avoiding affecting other memristors, you can apply the following Figure 8The voltage shown in (a), (b) or (c).

[0050] The MAGIC logic gate is constructed using the resistance coupling principle, which can be summarized as follows: by controlling the connection and driving voltage V0 of the memristor, the voltage across the memristor representing the output is controlled, so that it undergoes a set or reset operation under certain resistance state combinations and changes to a resistance state that conforms to the truth table.

[0051] According to the above MAGIC logic gate design principle, we can design a "copy" logic gate, such as Fig. 9 (a) is shown. There are three steps to design a MAGIC logic gate: (1) initialization; (2) applying a driving voltage; (3) reading the result. In the replica logic gate, A is first initialized. The resistance state of A is the input of the replica logic gate, and R is initialized to HRS. Then apply Figure 8 (d), so the memristor R and A are connected as shown in Fig. 9 (a) shows the structure. When A = "1", the voltage drop across R is about V copy When A = "0", the voltage on R drops by about 0.5V copy . Set 0.5V copy <V set <V copy , it can be realized that: if A = "1", R will change from "0" to "1"; if A = "0", R will remain unchanged; in this way, the function of copying A to R can be realized. Finally, the resistance state of R is read as the result of the "copy" logic gate.

[0052] Fig. 9 (a) shows how two memristors connected at the top electrodes can form a "copy" logic gate, and two memristors connected at the bottom electrodes can be connected at the Fig. 9 (b) shows a “copy” logic gate. The voltage division of each memristor under various inputs is similar to Fig. 9 (a) Exactly the same.

[0053] Based on the same principle, MAGIC OR gate and NAND gate can also be designed. The schematic diagram of MAGIC NAND gate is as follows: Fig. 9 (c) and (d) are shown; the schematic diagram of the MAGIC OR gate is shown in Fig. 9 As shown in (e) and (f).

[0054] The five 1T1R units in Unit m are Q m , A m , B m-1 , P m , B m-2(For the N-bit counter designed according to this method, m = 0, 1, 2...N-2). Take the connection of Unit 0 as an example. The connection of the other N-2 counting units is similar. 0-1 The gates of Q0, A0 and B are connected together, and the bottom electrodes are connected together. 0-1 The bottom electrode is connected to the bottom electrodes of Q1, A1, and B1 in Unit 1 through a MOS tube that acts as a switch. 0-1 , intermediate state memristor M 0-2 The gate electrodes of the memristors are connected together, and the bottom electrodes are connected together (in order to avoid interfering with other memristors while selecting the memristor, the memristors in this design are all in the form of 1T1R units). 0-1 and M 0-2 The bottom electrode of the connection is connected to P1 and M through a MOS tube as a switch. 1-1 、M 1-2 The bottom electrodes of B are connected together. 0-2 The top electrodes of M and P0 are connected together and connected to the top electrode of Q0 through a MOS tube as a switch. 0-1 One end of the top electrode of M is connected to the peripheral circuit, and the other end is connected to the top electrode of A0 through a MOS tube as a switch. 0-2 One end of the top electrode is connected to the peripheral circuit, and the other end is connected to B through a MOS tube as a switch. 0-1 connected to the top electrode.

[0055] In addition, M 0-1 Together with another MOS tube as a switch, a fixed resistor and an inverter, a control signal generating circuit 1-1 is formed. Its input and output are CP 0-1 , CP 1-1 .

[0056] M 0-2 Together with another MOS tube as a switch, a fixed resistor and an inverter, a control signal generating circuit 1-2 is formed. Its input and output are CP 0-2 , CP 1-2 .

[0057] The time interval between two adjacent CP pulses is uncertain. To cope with this situation, the method used in the CMOS structure is to design a peripheral programmable system to generate a control signal when the CP arrives, and manipulate the related structures to perform operations. Fig.10 and Fig.11 As shown, the CP is placed in the delay line and the control signal generating circuit to generate the control signal, which simplifies the design. This design can effectively reduce the cost of external resources.

[0058] Fig.10 Demonstrating the CP generated by CP and delay lines 0-n ; Fig.11 Shows CP 0-n Generate CP by controlling the signal generating circuit mn m-n , to control the operation of Unit m (m=1, 2…, N-2, N-1) in step n (n=1, 2).

[0059] The input of the delay line is the clock signal CP, and the output is CP 0-1 , CP 0-2 , …, CP 0-n ; Among them, CP 0-1 is the output when the delay time is τ, CP 0-2 is the output when the delay time is 2τ, .... Each unit has two control signal generating circuits, whose inputs are connected to specific output ports of the delay line. For Unit 0, the control signal generating circuit 1-1, the input is CP 0-1 , whose input is connected to a specific output port of the delay line; its output is CP 1-1 , controls the operation of Unit 1 (next Unit) in step 1. Control signal generating circuit 1-2, input is CP 0-2 , its output is CP 1-2 , controls the operation of Unit 1 (next Unit) in step 2. For Unit 1, the control signal generating circuit 2-1, the input is CP 0-1 , its output is CP 2-1 , controls the operation of Unit 2 (next Unit) in step 1. Control signal generating circuit 2-2, input is CP 0-2 , its output is CP 2-2 , controls the operation of Unit 2 (the next Unit) in step 2. For an N-bit counter, except for the highest bit counting unit Unit (N-1), the following Units are similar.

[0060] The counter also includes: a voltage providing unit; the voltage providing unit is connected to each counting unit, and the voltage providing unit is used to provide different voltages for the MAGIC logic gate circuit in each counting unit.

[0061] Each of the above steps is accomplished by using voltage to open switches during this cycle, thereby establishing specific connections between different memristors and peripheral circuits.

[0062] The minimum operation time required to complete different steps is different. Through the delay of CP, all control signals have the same pulse width. As long as the pulse width is greater than the shortest operation time to complete each step, this also ensures that the system can execute the steps correctly. This design greatly reduces external resources compared to traditional solutions.

[0063] In the control signal generating circuit, one end of the fixed resistor is grounded, and the other end is connected to the top electrode of the memristor. The connection point is connected to a MOS tube as a switch, and the other end of the MOS tube is connected to the inverter input.

[0064] Control unit 0 at step n (n=1,2) signal CP 0-n Connect the bottom electrode of the memristor as input and the gate of the MOS tube as a switch to make the switch at CP 0-n The output of the inverter is the signal CP that controls Unit m (m=1,2…N-2,N-1) at the nth step (n=1,2). m-n .

[0065] The resistance of the fixed resistor is set according to the high and low resistance states of the memristor. The three constraints are:

[0066]

[0067] The high level of the inverter is set according to the voltage required to turn on the MOS tube used as a switch.

[0068] In the design of this application, a HfO2-based w / DET memristor can be used, with a low resistance of about 235K and a high resistance of about 150M. The on-state voltage V GS(th)-P and V GS(th)-N The inverter is built with a MOS tube of about 0.3V (the size of the MOS tube in 1T1R is designed with reference to AP2301BI, because the switch opening time, buffer time and memristor set and reset time must be considered. The selection of MOS tube in the inverter is different. It is only necessary to ensure that when the memristor in the control signal generating circuit is HRS, the inverter output is high. SI2301 can be used. Constraints 2 and 3 are easy to meet. The key is the first constraint, which prevents the memristor from resetting when it is LRS). Therefore, R is set to 3.3MΩ, and the inverter high level V0 is 5V.

[0069] The embodiment of the present application provides a MAGIC-based non-volatile counter. The MAGIC logic gate is designed according to the resistance coupling principle and the 1T1R array structure. The counter is determined according to the binary addition and subtraction principle. On this basis, according to the characteristics of the counting pulse, the clock pulse and the delay line are used to generate the control signals of each step. Through a relatively simplified design and a simple structure, the non-volatility of the output result is achieved. Compared with traditional solutions, the cost of external resources can be effectively reduced.

[0070] The present application also provides a counting method of a counter, which is applied to the non-volatile counter based on MAGIC as described in the above embodiment. Fig.12 As shown, the method comprises the following steps:

[0071] Step S702, determining a target counting mode; the target counting mode includes an upward counting mode or a downward counting mode.

[0072] An operation cycle is defined as: the counter performs n steps of operation, outputs a binary number as the counting result and stores it in the result memristor, completing the up-counting or down-counting of a pulse.

[0073] Step S704, determining a voltage application scheme corresponding to each step of each counting unit under the target counting mode.

[0074] Step S706, inputting a pulse signal into the MAGIC-based non-volatile counter to generate a control signal corresponding to each step of each counting unit.

[0075] In each operation cycle, a driving voltage is applied according to an up-counting or down-counting driving voltage application scheme to manipulate the counter to complete an up-counting or down-counting.

[0076] Step S708, connecting the voltage according to the voltage application scheme, so that each counting unit executes multiple steps corresponding to the counting unit through the MAGIC logic gate circuit according to the control signal corresponding to each step and the applied voltage, so as to realize binary counting and storage of counting results.

[0077] A counting method of a counter provided in an embodiment of the present application is applied to a non-volatile counter based on MAGIC. After determining the target counting method, the counter can be controlled to complete binary counting using a clock pulse and a voltage application scheme, and the output result can be made non-volatile through fewer operation steps. Compared with traditional solutions, the cost of external resources can be effectively reduced.

[0078] The embodiment of the present application also provides another counting method of a counter, which is implemented based on the above counting method embodiment. This embodiment focuses on describing the specific steps of the counting method within a counting cycle.

[0079] In the counting method of the embodiment of the present application, if the number of bit counting units of the counter is the first number, the number of execution steps corresponding to the counter is the second number; the second number = the first number + 9. If a 4-bit counter is taken as an example, the number of bit counting units is 4, then a counting cycle of the 4-bit counter requires 4 + 9 steps, that is, 13 steps.

[0080] In one counting cycle, each counting unit performs the second number of steps; the first four steps are used to flip the output of each counting unit; the fifth step is used to read the calculation results of each counting unit in this counting cycle; the remaining steps are used to perform logical operations to update the state of the intermediate state memristor to prepare for the flip of the output in the next counting cycle. If a 4-bit counter is used as an example, in one counting cycle, the last 8 steps perform some logical operations to update the intermediate state memristor M. m-1 、M m-2 state (m=0,1,2,3) to prepare for the flip of the output terminal in the next cycle.

[0081] Intermediate state memristor M m-1 and the peripheral circuit connected to it, forming a control signal generating circuit (m+1)-1, an intermediate state memristor M m-2 The connected peripheral circuits form a control signal generating circuit (m+1)-2. When CP arrives in the next counting cycle, according to M m-1 、M m-2 The state of each module is generated. When M is calculated in the last 8 steps of this cycle, m-1 、M m-2 High impedance state (M m-1 =M m-2 =0), the control signal generated when the next cycle CP arrives will cause Uint(m+1) to perform a flip.

[0082] In the above counting cycle, the first five steps specifically include:

[0083] Initialize the output memristor corresponding to each counting unit to a low resistance state according to the requirements of the MAGIC NAND gate; flip the output value corresponding to each counting unit; initialize the result memristor to a high resistance state according to the requirements of the copy logic gate; copy the output value of each counting unit to the result memristor; and read the resistance state of the result memristor.

[0084] The design of the counter in the embodiment of the present application meets the following three points:

[0085] (1) Each output performs a toggle in a specific cycle. This means that each output performs And remain unchanged the rest of the time.

[0086] (2) Using MAGIC It can be divided into two steps: the first step is completed The value of Q is then copied to A.

[0087] (3) Design rules to control the flipping of the outputs of the up (down) counter based on the binary addition (subtraction) principle.

[0088] Use Q0, Q1, Q2, Q3...Q n It indicates the output of the counter from low to high 1st, 2nd, 3rd, 4th...nth bit. When a CP pulse comes, the counter performs several steps to complete one count.

[0089] According to the binary addition principle, the flipping rule in the upward counting scheme can be designed: when Q0 = Q1 = ... = Q n =1, next cycle Q n+1 Perform the flip.

[0090] According to this principle, combined with the three key points of counter design, we get expression (2). n = 0, the next cycle Q n+1 Perform the flip.

[0091]

[0092] Similarly, according to the binary subtraction principle, the flipping rule in the upward counting scheme can be designed: when Q0 = Q1 = ... = Q n =0, next cycle Q n+1 Perform the flip.

[0093] According to this principle, combining the three key points of counter design, we get expression (3). n = 0, the next cycle Q n+1 Perform the flip.

[0094]

[0095] Therefore, the control conditions for the flipping of each output terminal in the up-counting and down-counting schemes can be summarized according to expressions (2) and (3) as follows: n = 0, the next cycle Q n+1 Perform flip. Design the control signal generation circuit and proceed according to this point.

[0096] The counting method of the counter provided in the embodiment of the present application has the same implementation principle and technical effects as those of the aforementioned counter embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the counting method of the present application, reference may be made to the corresponding contents in the aforementioned counter embodiment.

[0097] The embodiment of the present application also provides another non-volatile counter and counting method based on MAGIC. This embodiment takes the design of a 4-bit counter as an example to explain in detail the design ideas and steps of the non-volatile counter and counting method based on MAGIC.

[0098] See also Fig.13 As shown, the design idea of ​​4-bit counter is as follows:

[0099] Construct Unit m (m = 0, 1, 2, 3), output Q m , CP m-n It is the control signal for the operation unit m to perform the relevant operation at step n. m-n is high level, the delay time τ is CP m-n and CP m-(n+1) The time between is set according to the following expression (4):

[0100] τ=T pulse +T buffer (4)

[0101] Among them, T pulse is the CP high level time, T pulse It should be large enough to ensure completion of any step in the counting operation, which is determined by the memristor used. buffer Is the buffer time. In a 1T1R array, it takes time for the switch to open and the control signal to be transmitted, so there is a buffer time between each operation. The buffer time should be greater than the sum of the switch opening time, closing time and the delay time of the control signal. min It is CP m-n In the equation, the time between two adjacent pulses should be greater than the time of an operation cycle. According to the definition of the operation cycle and the scheme of generating the control signal through the delay line, expression (5) is obtained:

[0102] T min >n×τ (5)

[0103] In the design of the 4-bit counter, the memristor in the 1T1R array is a HfO2-based w / DET memristor, and the size of the MOS tube is designed with reference to AP2301BI. According to the test results, a 150ns, 1.65V pulse can be used to successfully perform a set operation, a 150ns, -0.4V pulse can be used to successfully perform a reset operation, and a 150ns, 0.2V pulse can be used to successfully perform a read operation. Therefore, T pulse =150ns, CP high level is 5V. According to the manual of AP2301BI, the turn-on delay time, turn-on rise time, turn-off delay time and turn-off decay time are 10ns, 5ns, 21ns and 7ns respectively, so T buffer =50ns. Therefore, we can calculate that: τ = 200ns.

[0104] The driving voltage application scheme is as follows:

[0105] Table 1 is the up-counting driving voltage application scheme of the 4-bit counter. One operation cycle lasts 2.6μs and has 13 operation steps. Among them, steps 1 to 4 realize the flipping of each output terminal, and step 5 is to read the operation result of this operation cycle.

[0106] Steps 6 to 13 are designed according to expression (2) to meet the requirement that when M0=M1=…=M n = 0, the next operation cycle Q n+1 Perform the flip.

[0107] The specific method is: when M 0-1 =M 0-2 = 0, the next operation cycle Unit 1 executes steps 1 and 2 in Table 1 to complete (Complete the flip of Q1); when M 1-1 =M 1-2 = 0, the next operation cycle Unit 2 executes steps 1 and 2 in Table 1 to complete (Complete the flip of Q2); when M 2-1 =M 2-2 = 0, the next operation cycle Unit 3 executes steps 1 and 2 in Table 1 to complete (Complete the flip of Q3).

[0108] In any operation cycle, if the count-up is executed, for Unit m (m=0,1,2,3), in the nth step (n=1,2,3,4,5,6,7,8,9,10,11,12,13), if CP m-n There is a high level time of 150ns, and Unit m will perform the operations listed in Table 1. Table 1 is the upward counting drive voltage application scheme of the 4-bit counter.

[0109] Table 1

[0110]

[0111]

[0112] Table 2 is a down-counting driving voltage application scheme for a 4-bit counter. It differs from the up-counting driving voltage application scheme in that steps 6 to 13 are designed according to expression (3).

[0113] In any operation cycle, if down counting is performed, for Unit m (m=0,1,2,3), in step n (n=1,2,3,4,5,6,7,8,9,10,11,12,13), if CP m-n There is a high level time of 150ns, and Unit m will perform the operations listed in Table 2.

[0114] Table 2

[0115]

[0116]

[0117] The design of the control signal generating circuit is as follows:

[0118] Expressions (2) and (3) can be summarized as: When M0=M1=…=M n = 0, the next cycle Q n+1 According to this principle, the 6th to 13th steps of the upward and downward driving voltage application scheme are designed: when M 0-1 =M 0-2 = 0, the next operation cycle Unit 1 executes steps 1 and 2 in Table 1 to complete (Complete the flip of Q1). 1-1 =M 1-2 = 0, the next operation cycle Unit 2 executes steps 1 and 2 in Table 1 to complete (Complete the flip of Q2). 2-1 =M 2-2 = 0, the next operation cycle Unit 3 executes steps 1 and 2 in Table 1 to complete (Complete the flip of Q3).

[0119] Based on the above analysis, design the control signal generating circuit. Figure 3The schematic diagram of the control signal generation circuit mn (m = 1, 2, 3. n = 1, 2). The CP high level amplitude is 5V. In the design of the 4-bit counter, a w / DET memristor based on HfO2 is used. The low resistance is about 235KΩ and the high resistance is about 150MΩ. The on-state voltage V can be selected. GS(th)-P and V GS(th)-N The inverter is built with a MOS tube of about 0.3V, so R is designed to be 3.3MΩ. If in the i-th cycle, M m-1 =0 (corresponding to HRS), when CP 0-1 and CP 0-2 When the i+1 cycle occurs, U R The high level amplitude of is about 0, and the high level amplitude of the inverter output is 5V. m-1 =LRS, when CP 0-1 and CP 0-2 When the i+1 cycle occurs, U R The high level amplitude of is about 5V, and the high level amplitude of the inverter output is 0. Therefore, CP can be generated m-1 and CP m-2 , control Unit m to execute steps 1 and 2 in the i+1th cycle.

[0120] The counter structure and implementation are as follows:

[0121] As mentioned above: CP m-n It is the signal that controls the operation of Unit m (m=1, 2, 3) in step n (n=1, 2). Fig. 9 The relationship between the various control signals is as follows: First, the input clock signal CP passes through the delay line to generate CP 0-n (n=1,2,3,4,5,6,7,8,9,10,11,12,13); Second, CP 0-1 The control signal generating circuit 1-1 generates CP 1-1 , and generates CP through the control signal generating circuit 2-1 2-1 , and generates CP through the control signal generating circuit 3-1 3-1 , CP 0-2 The control signal generating circuit 1-2 generates CP 1-2 , and generates CP through the control signal generating circuit 2-2 2-2 , generates CP through control signal generating circuit 3-2 3-2 ; Third, for x=3,4,5,6,7,8,9,10,11,12,13, CP 0-x It's CP 1-x , also CP 2-x , also CP 3-x .

[0122] In one counting cycle, Table 3 shows the specific method of applying the driving voltage at each step of Unit 0 when the 4-bit counter counts up. The specific method of applying the driving voltage at each step of Unit 1, Unit 2, and Unit 3 when the 4-bit counter counts up is similar and will not be repeated here.

[0123] Take Unit 0 in the first upward counting cycle (output changes from 0000 to 0001) as an example for analysis.

[0124] Unit 0 consists of three parts: 1. MAGIC logic gate circuit, including 1T1R units Q0, A0, B 0-1 , B 0-2 , P0.2, intermediate state memristor, including 1T1R unit M 0-1 and M 0-2 3. With M 0-1 and M 0-2 Two peripheral circuits connected. Before CP appears, A0, A1, A2 and A3 are initialized to HRS, because the counter output is 0 (corresponding to binary number 0000) when CP does not appear. 0-1 , B 0-2 , B 1-1 , B 1-2 , B 2-1 , B 2-2 , B 3-1 , B 3-2 Initialized to LRS.

[0125] When CP arrives, the operations in Table 1 are started.

[0126] In step 1, CP 0-1 Connect G 0-1 , select memristor Q0, A0, B 0-1 , W.L. 0-1 Connect V set , B.L. 0-1 Grounded, Q0 is initialized to LRS as required by the MAGIC NAND gate.

[0127] In step 2, CP 0-2 Connect G 0-1 , select memristor Q0, A0, B 0-1 , W.L. 0-1 and WL 0-2 Connect V NAND , W.L. 0-3 Ground, Q0, A0 and B 0-1 Form the MAGIC NAND gate, complete That is, Unit 0 completes Q0 flipping.

[0128] In step 3, CP 0-3 Connect G 0-1 , select memristor Q0, A0, B 0-1 , W.L. 0-1 Ground, BL 0-1 Connect |V reset |, A0 is initialized to HRS as required by the "copy" logic gate.

[0129] In step 4, CP 0-4 Connect G 0-1 , select memristor Q0, A0, B 0-1 , W.L. 0-1 Ground, WL 0-1 Connect V copy , Q0 and A0 form a copy logic gate to copy Q0 to A0. Steps 3 and 4 are to transfer the result of this flip as the input of the next cycle.

[0130] In step 5, CP 0-5 Connect G 0-1 , select memristor Q0, A0, B 0-1 , W.L. 0-2 Connect V read , W.L. 0-1 Grounded, the resistance state of A0 is read, which is the output of Unit 0 in this operation cycle.

[0131] In step 6, CP 0-6 Connect G 0-2 , select memristor P0, M 0-1 、M 0-2 , W.L. 0-4 Connect V set , B.L. 0-2 Grounded so that P0 is initialized to LRS as required by the MAGIC NAND gate.

[0132] In step 7, CP 0-7 Connect G 0-1 , G 0-2 , G 0-3 , select memristor Q0, A0, B 0-1 ,P0,M 0-1 、M 0-2 and B 0-2 , B.L. 0-1 and BL 0-3 Ground, BL 0-2 Connect V NAND , Q0, B 0-2 and P0 form a MAGIC NAND gate to achieve

[0133] In step 8, CP0-8 Connect G 0-2 , select memristor P0, M 0-1 、M 0-2 , W.L. 0-5 Ground, BL 0-2 Connect |V reset |, M 0-1 Initialize to HRS as required for the "copy" logic gate.

[0134] In step 9, CP 0-8 Connect G 0-2 , select memristor P0, M 0-1 、M 0-2 , W.L. 0-4 Ground, WL 0-5 Connect V copy , P0 and M 0-1 Form a "copy" logic gate to copy P0 to M 0-1 This step is to update M 0-1 status.

[0135] Steps 10 and 11 are to update M 1-1 and M 1-2 status.

[0136] In step 10, in Unit 0, CP 0-10 Connect G 0-2 , select memristor P0, M 0-1 、M 0-2 , W.L. 0-4 Ground, WL 0-5 Ground. In Unit 1, CP 1-10 Connect G 1-2 , select memristor P1, M 1-1 、M 1-2 , W.L. 1-5 Connect V OR In addition, CP 0-10 Open as a switch to isolate BL 0-2 and BL 1-2 MOS tube. In this way, P0, M 0-1 and M in Unit 1 1-1 Form a MAGIC OR gate to achieve M 1-1 =M 0-1 OR P1.

[0137] In step 12, CP 0-12 Connect G 0-2 , W.L. 0-6 Ground, BL 0-2 Connect |V reset |, M 0-2Initialize to HRS as required for the "copy" logic gate.

[0138] In step 13, CP 0-13 Connect G 0-2 , W.L. 0-5 Ground, WL 0-6 Connect V copy , M 0-1 and M 0-2 Form a "copy" logic gate to achieve copy M 0-1 To M 0-2 Steps 12 and 13 are to update M 0-2 The analysis of other units in the up and down counting operations is similar. Unit 1 consists of memristors Q1, A1, and B 1-1 , B 1-2 , P1, M 1-1 、M 1-2 Unit 2 consists of memristors Q2, A2, and B 2-1 , B 2-2 , P2, M 2-1 、M 2-2 Unit 3 is composed of memristors Q3, A3, and B3.

[0139] Table 3

[0140]

[0141]

[0142] Similarly, when the 4-bit counter counts down, Unit 0, Unit 1, Unit 2, and Unit 3 have a specific method of applying a driving voltage at each step, which will not be described in detail here.

[0143] The above description is based on the example of a counter composed of 4-bit counting units. The counter provided in the embodiment of the present application can be expanded to an N-bit counter. In the N-bit counter, the first N-1 counting units have the same structure, and are composed of 7 1T1R units, 7 MOS tubes used as switches, 2 fixed resistors, and 2 inverters. The Nth counting unit is composed of 3 1T1Rs. There is a MOS tube used as a switch between the Nth counting unit and the N-1th counting unit, and there are two MOS tubes used as switches between each two adjacent counting units. The delay of the N-bit counter is N+9 (N+9 steps are required to complete a counting operation), and the area is 7N-4 memristors and 18N-16 MOS tubes.

[0144] The embodiment of the present application provides a non-volatile counter and counting method based on MAGIC. Taking the design of a 4-bit counter as an example, a circuit structure is designed and a driving voltage application scheme is given. The 4-bit counter implemented by the method of this embodiment has significant advantages in non-volatility and area compared with counters based on CMOS and MRL. Compared with counters based on IMP, the operation steps are greatly simplified, and only fewer operation steps and a relatively simple structure are required to achieve non-volatility of the output results, which can effectively reduce the cost of external resources.

[0145] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A non-volatile counter based on MAGIC, characterized in that: The counter comprises: a delay line and a plurality of counting units connected in sequence; each of the counting units comprises: a MAGIC logic gate circuit; each of the counting units except the highest bit counting unit also comprises: two control signal generating circuits connected to the MAGIC logic gate circuit; the delay line is respectively connected to each of the control signal generating circuits and each of the MAGIC logic gate circuits; The delay line is used to output an initial signal corresponding to a specific step to each of the control signal generating circuits, so that each of the control signal generating circuits converts the initial signal into a control signal corresponding to the specific step and outputs it to the MAGIC logic gate circuit in the next counting unit; The delay line is further used to output control signals corresponding to other steps except the specific step to each of the MAGIC logic gate circuits; Each of the counting units executes the steps corresponding to the counting unit through the MAGIC logic gate circuit according to the control signals and applied voltages corresponding to the steps, so as to realize binary counting and storage of counting results.

2. The MAGIC-based nonvolatile counter according to claim 1, characterized in that: Each control signal generating circuit includes: an intermediate state memristor and a peripheral circuit; One end of the intermediate state memristor is connected to the output end of the delay line; the other end of the intermediate state memristor is connected to the peripheral circuit; Each counting unit except the highest-order counting unit outputs control signals corresponding to the first two steps of the next counting unit through the intermediate state memristors and peripheral circuits in the two control signal generating circuits.

3. The MAGIC-based nonvolatile counter according to claim 2, characterized in that: The peripheral circuit includes: a resistor, a MOS tube and an inverter; the gate of the MOS tube is connected to one end of the intermediate state memristor connected to the delay line; the source of the MOS tube is respectively connected to the other end of the intermediate state memristor and one end of the resistor; the other end of the resistor is grounded; the drain of the MOS tube is connected to the input end of the inverter; the output end of the inverter serves as the output end of the peripheral circuit and is used to output a control signal of a specific step of the next counting unit.

4. The MAGIC-based nonvolatile counter according to claim 1, characterized in that: In the highest bit counting unit, the MAGIC logic gate circuit comprises: three 1T1R units with bottom electrodes connected together; each 1T1R unit is composed of a memristor and a MOS tube connected in series.

5. The MAGIC-based nonvolatile counter according to claim 1, characterized in that: The MAGIC logic gate circuit of each counting unit except the highest bit counting unit includes: five 1T1R units and five MOS tubes.

6. The MAGIC-based nonvolatile counter according to claim 1, characterized in that: The counter further comprises: a voltage supply unit; the voltage supply unit is connected to each of the counting units, and the voltage supply unit is used to provide different voltages for the MAGIC logic gate circuits in each of the counting units.

7. A counting method of a counter, characterized in that: The method is applied to the MAGIC-based non-volatile counter according to any one of claims 1 to 6, and the method comprises: Determine a target counting mode; the target counting mode includes an upward counting mode or a downward counting mode; Determine a voltage application scheme corresponding to each step of each counting unit under the target counting mode; Inputting a pulse signal into the MAGIC-based nonvolatile counter to generate a control signal corresponding to each step of each counting unit; The voltage is connected according to the voltage application scheme so that each counting unit passes through the MAGIC logic gate circuit and executes multiple steps corresponding to the counting unit according to the control signal corresponding to each step and the applied voltage to achieve binary counting and storage of counting results.

8. The method according to claim 7, characterized in that If the number of counting units of the counter is a first number, the number of execution steps corresponding to the counter is a second number; the second number=the first number+9.

9. The method according to claim 8, characterized in that In one counting cycle, each counting unit executes the second number of steps; the first four steps are used to flip the output end of each counting unit; the fifth step is used to read the calculation results of each counting unit in this counting cycle; the remaining steps are used to perform logical operations, update the resistance state of the intermediate state memristor, and prepare for the flipping of the output end in the next counting cycle.

10. The method according to claim 9, characterized in that The first five steps include: Initialize the output memristor corresponding to each counting unit to a low-resistance state according to the requirements of the MAGIC NAND gate; Flip the output value corresponding to each counting unit; As a result, the memristor is initialized to a high-impedance state as required by the replica logic gate; Copy the output value of each counting unit to the result memristor; Read the resistance state of the resulting memristor.

Citation Information

Patent Citations

  • Multi-system additive operation circuit based on memristors and operation method thereof

    CN105739944A

  • Systems and methods for generating physically unclonable functions from non-volatile memory cells

    US20160328578A1

  • True random number generator (TRNG) circuit using a diffusive memristor

    US20190303104A1

  • Computing circuitry

    US20200327401A1

  • Reconfigurable DAC implemented by memristor based neural network

    US20210143834A1