Signal Processing Circuit

Information

  • Patent Application
  • 20180082738
  • Publication Number
    20180082738
  • Date Filed
    November 27, 2017
    6 years ago
  • Date Published
    March 22, 2018
    6 years ago
Abstract
A circuit, where a first end of a resistive random access memory (RRAM) included in the circuit includes a first end of the circuit, and a second end of the RRAM is coupled to a first end of a first switch and a first end of a second switch, a second end of the first switch includes a second end of the circuit, and a first control end of the first switch and a second control end of the second switch are configured to make the first switch closed and the second switch open at the same time. Therefore, a working status of the RRAM is flexibly controlled.
Description
TECHNICAL FIELD

The present disclosure relates to the computer field, and in particular, to a signal processing circuit.


BACKGROUND

In a computing system, a variable-resistance circuit or device usually needs to be used to store data. Such circuits or devices can be combined to form a storage module for storing data.


In other approaches, a resistive random access memory (RRAM) is used in some variable-resistance circuits to ensure that a resistance of the memory in the circuit does not change after a power failure of the circuit. However, generally these circuits cannot flexibly control a working status of the RRAM.


SUMMARY

A circuit and a signal processing circuit provided in embodiments of the present disclosure can flexibly control a working status of an RRAM.


A first aspect of the embodiments of the present disclosure provides a circuit, including an RRAM, a first switching device, and a second switching device, where a first end of the RRAM is a first end of the circuit, and a second end of the RRAM is connected to a first end of the first switching device and a first end of the second switching device separately, where a threshold voltage of the RRAM is U volts (V). A second end of the first switching device is a second end of the circuit. A second end of the second switching device is a third end of the circuit. The first switching device further includes a first control end, the second switching device further includes a second control end, the first control end and the second control end are configured to receive a control signal separately, and the control signal is used to make the first switching device closed and make the second switching device open at the same time or to make the first switching device open and make the second switching device closed at the same time, and an input potential at the first end of the circuit is U1, an input potential at the second end of the circuit is U2, and an input potential at the third end of the circuit is U3, where |U1−U3|>U, and |U1−U2|<U.


With reference to the first aspect, in a first implementation of the first aspect, a resistance of the RRAM does not change when the first switching device is closed and the second switching device is open, or a resistance of the RRAM changes when the first switching device is open and the second switching device is closed.


With reference to the first aspect, in a second implementation of the first aspect, U3=−U1, and U2=0 V.


With reference to the first aspect or the first or second implementation of the first aspect, in a third implementation of the first aspect, the first switching device is a P-channel metal oxide semiconductor (PMOS), the second switching device is an N-channel metal oxide semiconductor (NMOS), a gate of the PMOS is the first control end, and a gate of the NMOS is the second control end. The gate of the PMOS and the gate of the NMOS receive a same control signal, and the same control signal is a same voltage signal, when the voltage signal is at a low potential, the first end of the first switching device is connected to the second end of the first switching device, and the first end of the second switching device is disconnected from the second end of the second switching device, and when the voltage signal is at a high potential, the first end of the second switching device is connected to the second end of the second switching device, and the first end of the first switching device is disconnected from the second end of the first switching device.


With reference to the first aspect or the first or second implementation of the first aspect, in a fourth implementation of the first aspect, the first switching device is an NMOS, the second switching device is a PMOS, a gate of the NMOS is the first control end, and a gate of the PMOS is the second control end. The gate of the NMOS and the gate of the PMOS receive a same control signal, and the same control signal is a same voltage signal, when the voltage signal is at a high potential, the first end of the first switching device is connected to the second end of the first switching device, and the first end of the second switching device is disconnected from the second end of the second switching device, and when the voltage signal is at a low potential, the first end of the second switching device is connected to the second end of the second switching device, and the first end of the first switching device is disconnected from the second end of the first switching device.


With reference to the first aspect or the first or second implementation of the first aspect, in a fifth implementation of the first aspect, the first switching device is a first transmission gate (TG), the second switching device is a second TG, a positive control end of the first TG is the first control end, and a negative control end of the second TG is the first control end. The positive control end of the first TG and the negative control end of the second TG receive a same control signal, and the same control signal is a same voltage signal, when the voltage signal is at a high potential, the first end of the first switching device is connected to the second end of the first switching device, and the first end of the second switching device is disconnected from the second end of the second switching device, and when the voltage signal is at a low potential, the first end of the second switching device is connected to the second end of the second switching device, and the first end of the first switching device is disconnected from the second end of the first switching device.


With reference to the first aspect or the first or second implementation of the first aspect, in a sixth implementation of the first aspect, the first switching device is a first TG, the second switching device is a second TG, a negative control end of the first TG is the first control end, and a positive control end of the second TG is the second control end. The negative control end of the first TG and the positive control end of the second TG receive a same control signal, and the same control signal is a same voltage signal, when the voltage signal is at a low potential, the first end of the first switching device is connected to the second end of the first switching device, and the first end of the second switching device is disconnected from the second end of the second switching device, and when the voltage signal is at a high potential, the first end of the second switching device is connected to the second end of the second switching device, and the first end of the first switching device is disconnected from the second end of the first switching device.


A second aspect of the embodiments of the present disclosure provides a signal processing circuit, including a processing module and at least one circuit group, where each circuit group includes N circuits according to the first aspect or any one of the implementations of the first aspect, and N is a natural number greater than zero. Second ends of all circuits in each circuit group are connected to form an output end of each circuit group. First control ends of all circuits in each circuit group are connected to form a first control end of each circuit group, and second control ends of all circuits in each circuit group are connected to form a second control end of each circuit group. The output end of each circuit group, the first control end of each circuit group, and the second control end of each circuit group are all connected to the processing module, and the processing module is configured to connect a first end of each circuit in each circuit group to a second end of the circuit in the circuit group using the first control end of the circuit group, or to connect the first end of each circuit in each circuit group to a third end of the circuit in the circuit group using the second control end of the circuit group.


A third aspect of the embodiments of the present disclosure provides a signal analysis method, for performing signal analysis using the signal processing circuit according to the second aspect of the embodiments of the present disclosure, where the signal processing circuit includes the two circuit groups, and the method includes connecting a first end of each circuit in each circuit group to a third end of the circuit in the circuit group, receiving two groups of input signals using the two circuit groups, where each group of input signals includes N pairs of differential signals, one potential of each pair of differential signals of a first group of input signals is input through a first end of each circuit in a first circuit group, the other potential of each pair of differential signals of the first group of input signals is input through a third end of each circuit in the first circuit group, one potential of each pair of differential signals of a second group of input signals is input through a first end of each circuit in a second circuit group, and the other potential of each pair of differential signals of the second group of input signals is input through a third end of each circuit in the second circuit group, connecting the first end of each circuit in each circuit group to a second end of the circuit in the circuit group, receiving a third group of input signals using the two circuit groups, where a potential of the third group of input signals is input through the first end of each circuit in the first circuit group, and a potential of the third group of input signals is input through the first end of each circuit in the second circuit group, obtaining, through an output end of the first circuit group, a current of the third group of input signals passing through the first circuit group, obtaining, through an output end of the second circuit group, a current of the third group of input signals passing through the second circuit group, and determining, according to the obtained current of the third group of input signals passing through the first circuit group and the obtained current of the third group of input signals passing through the second circuit group, that the third group of input signals matches the first group of input signals or the third group of input signals matches the second group of input signals.


With reference to the third aspect, in a first implementation of the third aspect, a first end of an RRAM of each circuit in each circuit group is a forward direction input end, and determining, according to the obtained current of the third group of input signals passing through the first circuit group and the obtained current of the third group of input signals passing through the second circuit group, that the third group of input signals matches the first group of input signals or the third group of input signals matches the second group of input signals includes determining that the third group of input signals matches the first group of input signals if the current of the third group of input signals passing through the first circuit group is greater than the current of the third group of input signals passing through the second circuit group, determining that the third group of input signals matches the second group of input signals if the current of the third group of input signals passing through the second circuit group is greater than the current of the third group of input signals passing through the first circuit group.


With reference to the third aspect, in a second implementation of the third aspect, a first end of an RRAM of each circuit in each circuit group is a reverse direction input end, and determining, according to the obtained current of the third group of input signals passing through the first circuit group and the obtained current of the third group of input signals passing through the second circuit group, that the third group of input signals matches the first group of input signals or the third group of input signals matches the second group of input signals includes determining that the third group of input signals matches the second group of input signals if the current of the third group of input signals passing through the first circuit group is greater than the current of the third group of input signals passing through the second circuit group, or determining that the third group of input signals matches the first group of input signals if the current of the third group of input signals passing through the second circuit group is greater than the current of the third group of input signals passing through the first circuit group.


According to the foregoing embodiments, the circuit provided in the embodiments of the present disclosure can complete flexible switching of working statuses of the circuit using two switching devices and an RRAM such that the circuit can enter a resistance-variability state, or a resistance-invariability current output state. The circuit has a simple structure. In addition, after multiple circuits are combined with a processing module, the processing module can simultaneously manage the multiple circuits. A signal processing circuit implemented after the combination can be configured to store and process multiple groups of input signals.





BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly describes the accompanying drawings required for the embodiments. The accompanying drawings in the following description show some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.



FIG. 1 is a schematic structural diagram of a circuit applied to Embodiment 1 of the present disclosure;



FIG. 2 is a schematic structural diagram of another circuit applied to Embodiment 1 of the present disclosure;



FIG. 3 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 4 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 5 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 6 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 7 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 8 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 9 is a schematic structural diagram of still another circuit applied to Embodiment 1 of the present disclosure;



FIG. 10 is a schematic structural diagram of a signal processing circuit applied to Embodiment 2 of the present disclosure;



FIG. 11 is a schematic structural diagram of another signal processing circuit applied to an embodiment of the present disclosure;



FIG. 12 is a schematic structural diagram of still another signal processing circuit applied to Embodiment 3 of the present disclosure; and



FIG. 13 is a schematic flowchart of a signal analysis method applied to a method embodiment of the present disclosure.





DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure.


Throughout this specification, an RRAM is a device that can make a resistance of the device change between a high resistance and a low resistance correspondingly according to a change in a direction of a potential difference between two ends of the device. The resistance of the device is nonvolatile, that is, the resistance changes only when a voltage passing through the two ends of the device exceeds a specific threshold and remains greater than the specific threshold for a specific time period. It should be noted that, a memory resistor may be considered as a type of RRAM, and the RRAM in this application document represents any device that has the foregoing functions, also including the memory resistor. As shown in FIG. 1, generally an RRAM 102 has two ends, a first end 108 and a second end (designated as port) 116. If a potential difference from the first end 108 to the second end 116 is greater than a threshold voltage of the RRAM 102 within a specific time period, the RRAM 102 presents a low resistance, and correspondingly, if a potential difference from the second end 116 to the first end 108 is greater than a threshold voltage of the RRAM 102 within a specific time period, the RRAM 102 presents a high resistance. Generally, in this case, the first end 108 is referred to as a forward direction input end of the RRAM 102, and the second end 116 is referred to as a reverse direction input end. Generally, the two threshold voltages of the RRAM 102 presented at the low resistance and at the high resistance are close but not exactly equal. For ease of description, in this specification, the two threshold voltages are made equal for simplification and are collectively referred to as a threshold voltage. When a resistance of the RRAM 102 changes, a voltage applied to the two ends of the RRAM 102 needs to be maintained for a specific time period. For an RRAM applied to a practical computing system, a voltage applied to two ends of the RRAM needs to be maintained for a specific quantity of clock cycles of the computing system. The foregoing is physical characteristics of the RRAM 102, and is not described again in the embodiments.


Throughout this specification, a TG is also referred to as a complementary metal oxide semiconductor (CMOS) TG. As shown in FIG. 4, generally, a TG has four ends. Two ends are an input end and an output end, and the input end and the output end are interchangeable. The other two ends are a positive control end and a negative control end. In this specification, only three ends mentioned in each embodiment are indicated. When a high potential is input to the positive control end, the input end and the output end of the TG are connected. When a low potential is input to the negative control end, the input end and the output end of the TG are connected.


Throughout this specification, a pair of differential signals represents a pair of equal-size and opposite-polarity signals, for example, +5 V and −5 V are a pair of differential signals. In addition, the high potential in this specification means that when the potential is applied to a gate of an NMOS or a positive control end of the TG, the NMOS or the TG can be closed. For example, when a source of the NMOS is grounded, assuming that a potential difference from the gate to the source of the NMOS is greater than +5, the source and a drain of the NMOS are connected, and the high potential for the NMOS is a potential greater than +5. Similarly, the low potential in this specification means that when the potential is applied to a gate of a PMOS or a negative control end of the TG, the PMOS or the TG can be closed. For example, when a source of the PMOS is grounded, assuming that a potential difference from the gate to the source of the PMOS is less than −5, the source of the PMOS is connected to a drain of the PMOS, and the low potential for the PMOS is a potential less than −5.


Device Embodiment 1

Device Embodiment 1 provides a variable-resistance circuit 100. A schematic structural diagram of the circuit 100 is shown in FIG. 1. The circuit 100 includes an RRAM 102, a first switching device 104, and a second switching device 106.


Two ends of the RRAM 102 are a first end 108 and a port 116. The first end 108 is a first end of the circuit 100, and the port 116 is connected to a port 118 of the first switching device 104 and a port 120 of the second switching device 106 separately.


The first switching device 104 further includes a second end 112 and a control end 114. The control end 114 is configured to receive a control signal, and the control signal is used to control the first switching device 104 to be closed or open, that is, connection or disconnection between the second end 112 and the port 118.


The second switching device 106 further includes a third end 110 and a control end 122. The third end 110 is a third end of the circuit 100, the control end 122 is configured to receive a control signal, and the control signal is used to control the second switching device 106 to be closed or open, that is, connection or disconnection between the third end 110 and the port 120.


The control signal received by the control end 114 and the control signal received by the control end 122 are used to control the first switching device 104 to be closed and the second switching device 106 to be open, or to control the first switching device 104 to be open and the second switching device 106 to be closed.


The control signal received by the control end 114 and the control signal received by the control end 122 may be a same potential signal or different potential signals.


Further, when the first switching device 104 is closed, that is, when the second end 112 and the port 118 are connected, the second switching device 106 is open, that is, the third end 110 is disconnected from the port 120. When the second switching device 106 is closed, the first switching device 104 is open. This ensures that the circuit 100 may switches between a first working state and a second working state instead of triggering the two working states simultaneously. In the first working state, the first switching device 104 is closed, the second switching device 106 is open, signals input to the first end 108 and the second end 112 are loaded to two ends of the RRAM 102, and a resistance of the RRAM 102 does not change. In the second working state, the second switching device 106 is closed, the first switching device 104 is open, signals input to the first end 108 and the third end 110 are loaded to the two ends of the RRAM 102, and the resistance of the RRAM 102 changes with potentials input to the first end 108 and the third end 110.


An input potential at the first end 108 is U1, an input potential at the second end 112 is U2, and an input potential at the third end 110 is U3, where |U1−U3|>U, |U1−U2|<U, and U is a threshold voltage of the RRAM 102. That is, a voltage between the input potential at the first end 108 and the second end 112 is less than the threshold voltage of the RRAM 102 to ensure that the resistance of the RRAM 102 does not change when the circuit 100 is in the first working state, and a voltage between the first end 108 and the third end 110 is greater than the threshold voltage of the RRAM 102 to ensure that when the circuit 100 is in the second working state, a voltage applied to the two ends of the RRAM 102 by the first end 108 and the third end 110 can change the resistance of the RRAM 102.


Optionally, U3=−U1, that is, signals input to the first end 108 and the third end 110 are a pair of differential signals, and U2=0 V.


The following describes in detail multiple possible composition manners of the circuit 100.


It should be noted that, in the following composition manners, the second end 112 in each composition manner is further configured to output a current when the circuit 100 is in the first working state. Generally, in practice, a constant potential is input to the second end 112, and a common potential at the second end 112 is 0 V.


Composition manner 1: As shown in FIG. 2, a control signal received by the control end 114 and a control signal received by the control end 122 are a same voltage signal, and the control end 114 and the control end 122 may be combined into one control end to receive a same control signal. The first switching device 104 is a PMOS, the second switching device 106 is an NMOS, a gate of the PMOS is the control end 114, and a gate of the NMOS is the control end 122.


When the control signal is at a low potential, the first switching device 104 is connected because a characteristic of the PMOS is that the PMOS is connected when a voltage between the gate and a source is less than a specific threshold (assuming that the threshold is Upgs), and the circuit 100 is in the first working state. When the control signal is at a high potential, the second switching device 106 is connected because a characteristic of the NMOS is that the NMOS is connected when a voltage between the gate and a source is greater than a specific threshold (assuming that the threshold is Ungs), and the circuit 100 is in the second working state.


It should be noted that, in practice, although both the gate of the NMOS and the gate of the PMOS are connected to control ends, and potentials of the NMOS and the PMOS are determined by input signals at the control ends, a change of a method for connecting the source of the NMOS and a drain of the NMOS or for connecting the source of the PMOS and a drain of the PMOS can still cause a change in input potential requirements of the first end 108, the third end 110, the control end 114, and the control end 122 of the circuit 100. It is assumed that an input potential at the first end 108 is Vin1, and an input potential at the third end 110 is Vin2, Vin1 and Vin2 are equal in size and opposite in polarity, input potentials of the control end 114 and the control end 122 at a low level are Vcl, input potentials at the control end 114 and the control end 122 at a high level are Vch, and a potential at the second end 112 is Vout.


When the low level Vcl is input to the control end 114 and the control end 122, it needs to ensure that the PMOS is closed, and the NMOS is open. When the high level Vch is input to the control end 114 and the control end 122, it needs to ensure that the NMOS is closed, and the PMOS is open. If the port 118 is a source, the following needs to be met:






V
cl
+|V
in1
|<U
pgs, and   (1)






V
ch
−|V
in1
|>U
pgs.   (2)


If the second end 112 is a source, the following needs to be met:






V
cl
+|V
out
|<U
pgs, and   (3)






V
ch
−|V
out
|>U
pgs.   (4)


If Vout is 0, in practice, regardless how the source of the PMOS is connected to the drain of the PMOS, potentials of input ends and control ends of the PMOS need to meet only the formula (1) and the formula (2).


In addition, for the NMOS, the following needs to be met:






V
ch
−|V
in1
|>U
ngs, and   (5)






V
cl
+|V
in1
|<U
ngs.   (6)


In the foregoing composition manner 1, regardless how the source of the NMOS is connected to the drain of the NMOS or how the source of the PMOS is connected to the drain of the PMOS, it needs to ensure that both the two switching devices cannot be in a connected state at the same time under various input conditions. For a potential relationship between an input end and a control end in another composition manner, refer to detailed descriptions in composition manner 1. Details are not repeated in this specification again.


Composition manner 2: As shown in FIG. 3, a control signal received by the control end 114 and a control signal received by the control end 122 are a same voltage signal, and the control end 114 and the control end 122 may be combined into one control end to receive a same control signal. The first switching device 104 is an NMOS, the second switching device 106 is a PMOS, a gate of the NMOS is the control end 114, and a gate of the PMOS is the control end 122.


When the control signal is at a high potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal is at a low potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Composition manner 3: As shown in FIG. 4, a control signal received by the control end 114 and a control signal received by the control end 122 are a same voltage signal, and the control end 114 and the control end 122 may be combined into one control end to receive a same control signal. Both the first switching device 104 and the second switching device 106 are TGs, a positive control end of the first switching device 104 is the control end 114, and a negative control end of the second switching device 106 is the control end 122.


When the control signal is at a high potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal is at a low potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Composition manner 4: As shown in FIG. 5, a control signal received by the control end 114 and a control signal received by the control end 122 are a same voltage signal, and the control end 114 and the control end 122 may be combined into one control end to receive a same control signal. Both the first switching device 104 and the second switching device 106 are TGs, a negative control end of the first switching device 104 is the control end 114, and a positive control end of the second switching device 106 is the control end 122.


When the control signal is at a low potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal is at a high potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Composition manner 5: As shown in FIG. 6, a control signal received by the control end 114 and a control signal received by the control end 122 are different control signals. Both the first switching device 104 and the second switching device 106 are the PMOSs, a gate of the first switching device 104 is the control end 114, and a gate of the second switching device 106 is the control end 122.


When the control signal received by the control end 114 is at a low potential and the control signal received by the control end 122 is at a high potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal received by the control end 114 is at a high potential and the control signal received by the control end 122 is at a low potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Composition manner 6: As shown in FIG. 7, a control signal received by the control end 114 and a control signal received by the control end 122 are different control signals. Both the first switching device 104 and the second switching device 106 are the NMOSs, a gate of the first switching device 104 is the control end 114, and a gate of the second switching device 106 is the control end 122.


When the control signal received by the control end 114 is at a high potential and the control signal received by the control end 122 is at a low potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal received by the control end 114 is at a low potential and the control signal received by the control end 122 is at a high potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Composition manner 7: As shown in FIG. 8, a control signal received by the control end 114 and a control signal received by the control end 122 are different control signals. Both the first switching device 104 and the second switching device 106 are TGs, a positive control end of the first switching device 104 is the control end 114, and a positive control end of the second switching device 106 is the control end 122.


When the control signal received by the control end 114 is at a high potential and the control signal received by the control end 122 is at a low potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal received by the control end 114 is at a low potential and the control signal received by the control end 122 is at a high potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Composition manner 8: As shown in FIG. 9, a control signal received by the control end 114 and a control signal received by the control end 122 are different control signals. Both the first switching device 104 and the second switching device 106 are TGs, a negative control end of the first switching device 104 is the control end 114, and a negative control end of the second switching device 106 is the control end 122.


When the control signal received by the control end 114 is at a low potential and the control signal received by the control end 122 is at a high potential, the first switching device 104 is closed, and the circuit 100 is in the first working state. When the control signal received by the control end 114 is at a high potential and the control signal received by the control end 122 is at a low potential, the second switching device 106 is closed, and the circuit 100 is in the second working state.


Another composition manner: In the foregoing composition manners 1 to 4, the control end 114 and the control end 122 of the circuit 100 receive a same signal, and therefore the two control ends can be combined in practice. In addition, in composition manners 5 to 8, the control signal received by the control end 114 of the circuit 100 is opposite in polarity to the control signal received by the control end 122 of the circuit 100, and therefore the control end 114 and the control end 122 may receive a control signal separately, or a phase inverter is installed on the control end 114 or the control end 122, and then in composition manners 5 to 8, the control end 114 and the control end 122 of the circuit 100 may also receive a same control signal. A signal transmitted from a control end with the phase inverter to a switching device is opposite to a signal transmitted from a control end without the phase inverter to a switching device. This design may be applied to any one of composition manners 5 to 8.


In this device embodiment, one end of the RRAM 102 is connected to the first end 108 of the circuit 100, and another end is connected to the second end 112 of the circuit 100 using the first switching device 104, and connected to the third end 110 of the circuit 100 using the second switching device 106 in order to implement, by controlling the first switching device 104 and the second switching device 106, that the RRAM 102 enters a resistance-variability state, or enters a resistance-invariability current output state. In this way, switching between the two statuses is flexible, and a circuit structure is simple in design.


Device Embodiment 2

Device Embodiment 2 provides a signal processing circuit 200. A schematic structural diagram of the circuit 200 is shown in FIG. 10. The circuit 200 includes a processing module 208, a circuit 202, a circuit 204, and a circuit 206. The circuit 202, the circuit 204, and the circuit 206 form a circuit group. The circuit 202, the circuit 204, and the circuit 206 each are the circuit 100 in any composition manner in Device Embodiment 1. It should be noted that, in practice, one circuit group includes at least one circuit 100 in any composition manner in Device Embodiment 1. An ellipsis (i.e., not shown area) in FIG. 10 represents multiple portions similar to the circuit 202. In addition, the signal processing circuit 200 in practice may include at least one circuit group, where all circuit groups have same compositions.


Second ends of the circuit 202, the circuit 204, and the circuit 206 are connected, that is, a port 2023, a port 2043, and a port 2063 are connected to form an output end of the circuit group and are connected to a port 2083 of the processing module 208.


First control ends of the circuit 202, the circuit 204, and the circuit 206 are connected, that is, a port 2024, a port 2044, and a port 2064 are connected to form a first control end of the circuit group and are connected to a port 2082 of the processing module 208.


Second control ends of the circuit 202, the circuit 204, and the circuit 206 are connected, that is, a port 2025, a port 2045, and a port 2065 are connected to form a second control end of the circuit group and are connected to a port 2081 of the processing module 208.


First ends and third ends of the circuit 202 (i.e., port 2021 and port 2022), the circuit 204 (i.e., port 2041 and port 2042), and the circuit 206 (i.e., port 2061 and port 2062) are input ends of the circuit 200.


Optionally, if control signals received by the first control ends of the circuit 202, the circuit 204, and the circuit 206 are the same as control signals received by the second control ends of the circuit 202, the circuit 204, and the circuit 206, that is, any one of composition manners 1 to 4 or another composition manner in Device Embodiment 1 is used for the circuit 202, the circuit 204, and the circuit 206, the port 2024, and the port 2044, the port 2064, the port 2025, the port 2045, and the port 2065 may be all connected, and be connected to the processing module 208.


The processing module 208 is configured to control, using the port 2081, second switching devices of the circuit 202, the circuit 204, and the circuit 206 to be closed or open, and is further configured to control, using the port 2082, first switching devices of the circuit 202, the circuit 204, and the circuit 206 to be closed or open. When controlling the first switching devices of the circuit 202, the circuit 204, and the circuit 206 to be closed, the processing module 208 also controls the second switching devices of the circuit 202, the circuit 204, and the circuit 206 to be open. When controlling the second switching devices of the circuit 202, the circuit 204, and the circuit 206 to be closed, the processing module 208 also controls the first switching devices of the circuit 202, the circuit 204, and the circuit 206 to be open.


In this device embodiment, multiple circuits 100 in Device Embodiment 1 and the processing module 208 are combined such that the processing module 208 implements, by controlling a first switching device and a second switching device, that an RRAM of each circuit included in a circuit group enters a resistance-variability state, or enters a resistance-invariability current output state. In this way, switching between the two statuses is flexible, and a circuit structure is simple in design.


Method Embodiment

This method embodiment provides a signal analysis method. A schematic flowchart of the signal analysis method is shown in FIG. 13. Signal analysis is performed using the signal processing circuit 200 in Device Embodiment 2. The signal processing circuit 200 includes two circuit groups. A schematic structural diagram of the signal processing circuit 200 is shown in FIG. 11. A circuit 202, a circuit 204, and a circuit 206 form a first circuit group, and a circuit 210, a circuit 212, and a circuit 214 form a second circuit group.


Step 402: Connect a first end of each circuit in each circuit group to a third end of the circuit in the circuit group.


As shown in FIG. 11, the processing module 208 controls the circuit 202, the circuit 204, and the circuit 206 using a port 2081, and controls, using a port 2084, second switching devices of the circuit 210, the circuit 212, and the circuit 214 to be closed.


Step 404: Receive two groups of input signals respectively using the two circuit groups, where each group of input signals includes N pairs of differential signals, one potential of each pair of differential signals of a first group of input signals is input through a first end of each circuit in the first circuit group, the other potential of each pair of differential signals of the first group of input signals is input through a third end of each circuit in the first circuit group, one potential of each pair of differential signals of a second group of input signals is input through a first end of each circuit in the second circuit group, and the other potential of each pair of differential signals of the second group of input signals is input through a third end of each circuit in the second circuit group.


A quantity of differential signal pairs included in the first group of input signals is the same as a quantity of circuits 100 included in the first circuit group, a quantity of differential signal pairs included in the second group of input signals is the same as a quantity of circuits 100 included in the second circuit group. For example, in FIG. 11, the first group of input signals and the second group of input signals each include three pairs of differential signals. One potential signal of a pair of differential signals is input through the first end of each circuit in the first circuit group, and the other potential signal of the pair of differential signals is input through a third end of the circuit. For example, if a threshold voltage of an RRAM is 8 V, the first group of input signals includes three pairs of differential signals: +5 V and −5 V, +5 V and −5 V, and −5 V and +5 V, which are input to a port 2021, a port 2022, a port 2041, a port 2042, a port 2061, and a port 2062, respectively. The second group of input signals includes three pairs of differential signals: +5 V and −5 V, −5 V and +5 V, and +5 V and −5 V, which are input to a port 2101, a port 2102, a port 2121, a port 2122, a port 2141, and a port 2142, respectively. In this case, a resistance of an RRAM in each circuit in the first circuit group changes with input differential signals.


Step 406: Connect the first end of each circuit in each circuit group to a second end of the circuit in the circuit group.


As shown in FIG. 11, the processing module 208 connects a first end of each circuit in the first circuit group to a second end of the circuit in the first circuit group using a port 2082 and connects a first end of each circuit in the second circuit group to a second end of the circuit in the second circuit group using a port 2085. For example, in a first circuit group, the port 2021 and the port 2023 are connected, the port 2041 and the port 2043 are connected, and the port 2061 and the port 2063 are connected, and in a second circuit group the port 2101 and a port 2103 are connected, the port 2121 and a port 2123 are connected, and the port 2141 and the port 2143 are connected.


Step 408: Receive a third group of input signals using the two circuit groups, where a potential of the third group of input signals is input through the first end of each circuit in the first circuit group, and a potential of the third group of input signals is input through the first end of each circuit in the second circuit group.


A quantity of signals included in the third group of input signals is the same as a quantity of circuits 100 included in the first circuit group. For example, in FIG. 11, the third group of input signals is +5 V, +5 V, and −5 V, and is input to the first circuit group through the port 2021, the port 2041, and the port 2061, respectively, and are input to the second circuit group through the port 2101, the port 2121, and port 2141, respectively.


Step 410: Obtain, through an output end of the first circuit group, a current of the third group of input signals passing through the first circuit group.


In this case, the first end and the second end of each circuit in the first circuit group are connected. Therefore, after the third group of input signals is input through the first end of each circuit in the first circuit group, the processing module 208 obtains, through the output end of the first circuit group, the current of the third group of input signals passing through the first circuit group.


Step 412: Obtain, through an output end of the second circuit group, a current of the third group of input signals passing through the second circuit group.


In this case, the first end and the second end of each circuit in the second circuit group are connected. Therefore, after the third group of input signals is input through the first end of each circuit in the second circuit group, the processing module 208 obtains, through the output end of the second circuit group, the current of the third group of input signals passing through the first circuit group.


Step 414: Determine, according to the obtained current of the third group of input signals passing through the first circuit group and the obtained current of the third group of input signals passing through the second circuit group, that the third group of input signals matches the first group of input signals or the third group of input signals matches the second group of input signals.


Optionally, first ends of RRAMs of all circuits in each circuit group are forward direction input ends. That is, the port 2021, the port 2041, the port 2061, the port 2101, the port 2121, and the port 2141 are all forward direction input ends of RRAMs in corresponding circuits. Step 414 further includes determining that the third group of input signals matches a first group of signals if the current of the third group of input signals passing through the first circuit group is greater than the current of the third group of input signals passing through the second circuit group, or determining that the third group of input signals matches a second group of signals if the current of the third group of input signals passing through the second circuit group is greater than the current of the third group of input signals passing through the first circuit group.


Following the foregoing example, in step 404, when the first end of each circuit in the first circuit group is connected to the third end of the circuit in the first circuit group, the first end of each circuit in the second circuit group is connected to the third end of the circuit in the second circuit group, and all the forward direction input ends of the RRAMs in circuits 100 are input ends of the first group of input signals, RRAMs of the circuit 202, the circuit 204, and the circuit 206 have a low resistance, a low resistance, and a high resistance, respectively, and RRAMs of the circuit 210, the circuit 212, and the circuit 214 have a low resistance, a high resistance, and a low resistance, respectively. It is assumed that a high resistance of an RRAM is 100 ohms, and a low resistance is 1 ohm.


After step 406 and step 406, the third group of input signals includes three signals: +5 V, +5 V, and −5 V, which are input to the first circuit group through the port 2021, the port 2041, and the port 2061, respectively, and are input to the second circuit group through the port 2101, the port 2121, and the port 2141, respectively. Currents output from the port 2023, the port 2043, and the port 2063 are 5 amperes (A), 5 A, and −0.05 A, respectively, and a current input to the processing module 208 through the port 2083 is 9.95 A. Currents output from the port 2103, the port 2123, and the port 2143 are 5 A, 0.05 A, and −5 A, respectively, and a current input to the processing module 208 through the port 2086 is 0.05 A. The current of the third group of input signals passing through the first circuit group is greater than the current of the third group of input signals passing through the second circuit group. Therefore, the third group of input signals matches the first group of input signals. When the signal processing circuit 200 includes at least two circuit groups, after the third group of input signals is input, a circuit group having a largest output current at the output end is determined, and input signals input when a first end of the circuit group is connected to a third end of the circuit group best match the third group of input signals.


Optionally, first ends of RRAMs of all circuits in each circuit group are reverse direction input ends. That is, all the port 2021, the port 2041, the port 2061, the port 2101, the port 2121, and the port 2141 are reverse direction input ends of RRAMs in corresponding circuits. Step 414 further includes determining that the third group of input signals matches a second group of signals if the current of the third group of input signals passing through the first circuit group is greater than the current of the third group of input signals passing through the second circuit group, or determining that the third group of input signals matches a first group of signals if the current of the third group of input signals passing through the second circuit group is greater than the current of the third group of input signals passing through the first circuit group.


Compared with the foregoing example, if all reverse direction input ends of RRAMs of circuits are input ends of the first group of input signals, it is easy to learn that RRAMs of the circuit 202, the circuit 204, and the circuit 206 have a high resistance, a high resistance, and a low resistance, respectively, and RRAMs of the circuit 210, the circuit 212, and the circuit 214 have a high resistance, a low resistance, and a high resistance, respectively. After the third group of input signals is input to the first circuit group and the second circuit group, currents output from the port 2023, the port 2043, and the port 2063 are 0.05 A, 0.05 A, and −5 A, respectively, and a current input to the processing module 208 through the port 2083 is −4.9 A. Currents output from the port 2103, the port 2123, and the port 2143 are 0.05 A, 5 A, and −0.05 A, respectively, and a current input to the processing module 208 through the port 2086 is 5 A. The current of the third group of input signals passing through the second circuit group is greater than the current of the third group of input signals passing through the first circuit group. Therefore, the third group of input signals matches the first group of input signals. Further, a port 2024, a port 2044, a port 2064, a port 2104, a port 2124, and a port 2144, shown in FIG. 11 is same as the port 2024, the port 2044, and the port 2064 shown in FIG. 10, and a port 2025, a port 2045, a port 2065, a port 2105, a port 2125, and a port 2145, shown in FIG. 11 is same as the port 2025, the port 2045, and the port 2065 shown in FIG. 10.


In the device embodiment, the signal processing circuit 200 implements, under control of the processing module 208, flexible switching between a function of recording an input signal according to a changed resistance of an RRAM caused by the input signal and a function of determining matching between an input signal and a history input signal. In the state in which the input signal matches the history input signal, it is determined, according to a magnitude of a current output from an output end of each circuit group, that the input signal most matches a recorded history input signal in which circuit group. The circuit is flexibly switched and has a simple structure without a complicated logic or feedback loop.


Device Embodiment 3

The signal processing circuit 200 in the foregoing Device Embodiment 2 can implement signal matching. On the basis of Device Embodiment 2, as shown in FIG. 12, this device embodiment provides an optimized signal processing circuit 300 that may be used for signal classification, and describes in detail a process of implementing signal classification using this circuit 300. Specific theoretical analysis is not described in this embodiment.


A first control end and a second control end of the circuit 100 that is in any composition manner in Device Embodiment 1 and that is of the signal processing circuit 300 are combined. That is, the signal processing circuit 300 includes a first circuit group including circuit 302, circuit 304, and circuit 306 and a second circuit group including circuit 310, circuit 312, and circuit 314. Refer to FIG. 10 description for the description of ports of the two circuit groups and the processing module 308. For the circuits 302, 304, 306, 310, 312, and 314 in this case, refer to the composition manners in Device Embodiment 1. In addition, a processing module 308 further includes a port 3085 and a port 3086 which are connected to a control end of a first circuit group and a control end of a second circuit group, respectively.


It is assumed that a first end of any circuit 302, 304, 306, 310, 312, and 314 is a forward direction input end of an RRAM, and there are four groups of signals to be classified: +5 V, +5 V, and −5 V; −5 V, −5 V, and +5 V; +5 V, +5 V, and +5 V; and −5 V, −5 V, and −5 V. A reverse-phase signal is generated first for each potential signal of each group of signals such that each group of signals includes three pairs of differential signals, and then the four groups of signals are: (+5 V, −5 V), (+5 V, −5 V), and (−5 V, +5 V); (−5 V, +5 V), (−5 V, +5 V), and (+5 V, −5 V); (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V); and (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V). The following describes a working process of the circuit 300 in performing signal classification.


Solution 1

Step 1: Connect a first end of each circuit in the first circuit group to a third end of the circuit in the first circuit group and connect a first end of each circuit in the second circuit group to a third end of the circuit in the second circuit group, and input two groups of signals: (+5 V, −5 V), (+5 V, −5 V), and (−5 V, +5 V); and (−5 V, +5 V), (−5 V, +5 V), and (+5 V, −5 V), respectively, where (+5 V, −5 V), (+5 V, −5 V), and (−5 V, +5 V) are a first class of signals, and (−5 V, +5 V), (−5 V, +5 V), and (+5 V, −5 V) are a second class of signals.


Step 2: Connect the first end of each circuit in the first circuit group to a second end of the circuit in the first circuit group and connect the first end of each circuit in the second circuit group to a second end of the circuit in the second circuit group, and input (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V) to both the first circuit group and the second circuit group. If the processing module 308 determines that an output current of the first circuit group is high, it indicates that (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V) are more similar to (+5 V, −5 V), (+5 V, −5 V), and (−5 V, +5 V), and (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V) are the first class of signals.


Step 3: Connect the first end and the second end of each circuit in the first circuit group and connect the first end and the second end of each circuit in the second circuit group, and input (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V) to both the first circuit group and the second circuit group. If the processing module 308 determines that an output current of the second circuit group is high, it indicates that (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V) are more similar to (−5 V, +5 V), (−5 V, +5 V), and (+5 V, −5 V), and (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V) are the second class of signals.


In Solution 1, if there are more signals to be classified, step 2 is repeated after step 1 until all of the signals to be classified are classified into the first class of signals or the second class of signals.


Solution 2

Step 1: Step 1 is the same as step 1 of Solution 1.


Step 2: After step 2 of Solution 1 is performed, (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V) are determined as the first class of signals. A port 3085 of the processing module 308 sends a control signal instructing the first end and the third end of each circuit in the first circuit group to connect to each other. In this case, signals (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V) are input to all circuits in the first circuit group, and resistances of RRAMs of all the circuits in the first circuit group change with these input signals (+5 V, −5 V), (+5 V, −5 V), and (+5 V, −5 V).


Step 3: After step 3 of Solution 1 is performed, that is, the first end of each circuit in the first circuit group is connected to the second end of the circuit in the first circuit group and the first end of each circuit in the second circuit group is connected to the second end of the circuit in the second circuit group, and (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V) are input to both the first circuit group and the second circuit group, the processing module 308 determines that an output current of the second circuit group is high, (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V) are the second class of signals. The port 3086 of the processing module 308 sends a control signal instructing the first end and the third end of each circuit in the second circuit group to connect to each other. Resistances of RRAMs of all circuits in the second circuit group change with these input signals (−5 V, +5 V), (−5 V, +5 V), and (−5 V, +5 V).


In Solution 1, if there are more signals to be classified, step 2 is repeated after step 1 until all of the signals to be classified are classified into the first class of signals or the second class of signals.


In comparison with Solution 1, in Solution 2, each time after all input signals are classified, a circuit group corresponding to a class to which the signals belong is updated such that classification of subsequent signals is complete based on latest signals. The signal processing circuit in Solution 2 has stronger adaptability.


According to this device embodiment on the basis of Device Embodiment 2, the processing module 308 performs feedback about a control signal at a control port of a circuit group such that the signal processing circuit 300 can continuously update resistances of RRAMs of circuits when classifying signals, and subsequent classification is determined according to latest classification of input signals. Therefore, the signal processing circuit 300 has greater adaptability to the input signals.


In the foregoing embodiments, the description of each embodiment has respective focuses. For a part that is not described in detail in an embodiment, reference may be made to related descriptions in other embodiments. It should be noted that the circuit 100 in any composition manner in Device Embodiment 1 is also applied to Device Embodiment 2 and Device Embodiment 3. Therefore, technical details in the three device embodiments can be referred to each other.


Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure, but not for limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, a person of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present disclosure.

Claims
  • 1. A circuit, comprising: a resistive random access memory (RRAM);a first switch; anda second switch,wherein a first end of the RRAM comprises a first end of the circuit,wherein a second end of the RRAM is separately coupled to a first end of the first switch and a first end of the second switch,wherein a threshold voltage of the RRAM comprises U volts (V),wherein a second end of the first switch comprises a second end of the circuit,wherein a second end of the second switch comprises a third end of the circuit,wherein the first switch further comprises a first control end,wherein the second switch further comprises a second control end,wherein the first control end is configured to receive a first control signal,wherein the second control end is configured to receive a second control signal,wherein the first control signal and the second control signal simultaneously make the first switch closed and second switch open,wherein an input potential at the first end of the circuit comprises U1 V,wherein an input potential at the second end of the circuit comprises U2 V,wherein an input potential at the third end of the circuit is U3 V,wherein |U1−U3|>U, andwherein |U1−U2|<U.
  • 2. The circuit according to claim 1, wherein a resistance of the RRAM does not change when the first switch is closed and the second switch is open.
  • 3. The circuit according to claim 1, wherein U3=−U1 V, and wherein U2=0 V.
  • 4. The circuit according to claim 1, wherein the first switch comprises a P-channel metal oxide semiconductor (PMOS), wherein the second switch comprises an N-channel metal oxide semiconductor (NMOS), wherein a gate of the PMOS comprises the first control end, wherein a gate of the NMOS comprises the second control end, wherein the first control signal and the second control signal comprise a voltage signal, wherein the first end of the first switch is coupled to the second end of the first switch, and the first end of the second switch is decoupled from the second end of the second switch when the voltage signal comprises a low potential, and wherein the first end of the second switch is coupled to the second end of the second switch, and the first end of the first switch is decoupled from the second end of the first switch when the voltage signal comprises a high potential.
  • 5. The circuit according to claim 1, wherein the first switch comprises an N-channel metal oxide semiconductor (NMOS), wherein the second switch comprises a P-channel metal oxide semiconductor (PMOS), wherein a gate of the NMOS comprises the first control end, wherein a gate of the PMOS comprises the second control end, wherein the first control signal and the second control signal comprise a voltage signal, wherein the first end of the first switch is coupled to the second end of the first switch, and the first end of the second switch is decoupled from the second end of the second switch when the voltage signal comprises a high potential, and wherein the first end of the second switch is coupled to the second end of the second switch, and the first end of the first switch is decoupled from the second end of the first switch when the voltage signal comprises a low potential.
  • 6. The circuit according to claim 1, wherein the first switch comprises a first transmission gate (TG), wherein the second switch comprises a second TG, wherein a positive control end of the first TG comprises the first control end, wherein a negative control end of the second TG comprises the second control end, wherein the first control signal and the second control signal comprise a voltage signal, wherein the first end of the first switch is coupled to the second end of the first switch, and the first end of the second switch is decoupled from the second end of the second switch when the voltage signal comprises a high potential, and the first end of the second switch is coupled to the second end of the second switch, and the first end of the first switch is decoupled from the second end of the first switch when the voltage signal comprises a low potential.
  • 7. The circuit according to any one of claim 1, wherein the first switch comprises a first transmission gate (TG), wherein the second switch comprises a second TG, wherein a negative control end of the first TG comprises the first control end, wherein a positive control end of the second TG comprises the second control end, wherein the first control signal and the second control signal comprise a voltage signal, wherein the first end of the first switch is coupled to the second end of the first switch, and the first end of the second switch is decoupled from the second end of the second switch when the voltage signal comprises a low potential, and wherein the first end of the second switch is coupled to the second end of the second switch, and the first end of the first switch is decoupled from the second end of the first switch when the voltage signal comprises a high potential.
  • 8. A signal processing circuit, comprising: a processor; andat least one circuit group coupled to the processor,wherein the at least one circuit group comprises N circuits,wherein N is a natural number greater than zero,wherein each of the N circuits comprises: a resistive random access memory (RRAM);a first switch; anda second switch,wherein a first end of the RRAM comprises a first end of a circuit,wherein a second end of the RRAM is separately coupled to a first end of the first switch and a first end of the second switch,wherein a threshold voltage of the RRAM comprises U volts (V),wherein a second end of the first switch comprises a second end of the circuit,wherein a second end of the second switch comprises a third end of the circuit,wherein the first switch further comprises a first control end,wherein the second switch further comprises a second control end,wherein the first control end is configured to receive a first control signal,wherein the second control end is configured to receive a second control signal,wherein the first control signal and the second control signal simultaneously make the first switch closed and the second switch open,wherein an input potential at the first end of the circuit comprises U1 V,wherein an input potential at the second end of the circuit comprises U2 V,wherein an input potential at the third end of the circuit comprises U3 V,wherein |1−U3|>U,wherein |1−U2|<U,wherein second ends of all circuits in the at least one circuit group are coupled to form an output end of the at least one circuit group,wherein first control ends of all circuits in the at least one circuit group are coupled to form a first control end of the at least one circuit group,wherein second control ends of all circuits in the at least one circuit group are coupled to form a second control end of the at least one circuit group,wherein the output end of the at least one circuit group, the first control end of the at least one circuit group, and the second control end of the at least one circuit group are all coupled to the processor, andwherein the processor is configured to couple a first end of each circuit in the at least one circuit group to a second end of the same circuit in the at least one circuit group using the first control end of the at least one circuit group.
  • 9. A signal processing circuit, comprising: a processor; andat least one circuit group coupled to the processor,wherein the at least one circuit group comprises N circuits,wherein N is a natural number greater than zero,wherein each of the N circuits comprises: a resistive random access memory (RRAM);a first switch; anda second switch,wherein a first end of the RRAM comprises a first end of a circuit,wherein a second end of the RRAM is separately coupled to a first end of the first switch and a first end of the second switch,wherein a threshold voltage of the RRAM comprises U volts (V),wherein a second end of the first switch comprises a second end of the circuit,wherein a second end of the second switch comprises a third end of the circuit,wherein the first switch further comprises a first control end,wherein the second switch further comprises a second control end,wherein the first control end is configured to receive a first control signal,wherein the second control end is configured to receive a second control signal,wherein the first control signal and the second control signal simultaneously make the first switch closed and the second switch open,wherein an input potential at the first end of the circuit comprises U1 V,wherein an input potential at the second end of the circuit comprises U2 V,wherein an input potential at the third end of the circuit comprises U3 V,wherein |U1−U3|>U,wherein |U1−U2|<U,wherein second ends of all circuits in the at least one circuit group are coupled to form an output end of the at least one circuit group,wherein first control ends of all circuits in the at least one circuit group are coupled to form a first control end of the at least one circuit group,wherein second control ends of all circuits in the at least one circuit group are coupled to form a second control end of the at least one circuit group,wherein the output end of the at least one circuit group, the first control end of the at least one circuit group, and the second control end of the at least one circuit group are all coupled to the processor, andwherein the processor is configured to couple the first end of each circuit in the at least one circuit group to a third end of the same circuit in the at least one circuit group using the second control end of the at least one circuit group.
  • 10. A circuit, comprising: a resistive random access memory (RRAM);a first switch; anda second switch,wherein a first end of the RRAM comprises a first end of the circuit,wherein a second end of the RRAM is separately coupled to a first end of the first switch and a first end of the second switch,wherein a threshold voltage of the RRAM comprises U volts (V),wherein a second end of the first switch comprises a second end of the circuit,wherein a second end of the second switch comprises a third end of the circuit,wherein the first switch further comprises a first control end,wherein the second switch further comprises a second control end,wherein the first control end is configured to receive a first control signal,wherein the second control end is configured to receive a second control signal,wherein the first control signal and the second control signal simultaneously make the first switch open and the second switch closed,wherein an input potential at the first end of the circuit comprises U1 V,wherein an input potential at the second end of the circuit comprises U2 V,wherein an input potential at the third end of the circuit comprises U3 V,wherein |U1−U3|>U, andwherein |U1−U2|<U.
  • 11. The circuit according to claim 10, wherein a resistance of the RRAM changes when the first switch is open and the second switch is closed.
  • 12. The circuit according to claim 10, wherein U3=−U1 V, and wherein U2=0 V.
CROSS-REFERENCE TO RELATED APPLICATION

This application is a continuation of International Patent Application No. PCT/CN2015/080610 filed on Jun. 2, 2015, which is hereby incorporated by reference in its entirety.

Continuations (1)
Number Date Country
Parent PCT/CN2015/080610 Jun 2015 US
Child 15822850 US