The present disclosure relates to the computer field, and in particular, to a signal processing circuit.
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.
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.
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.
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
Throughout this specification, a TG is also referred to as a complementary metal oxide semiconductor (CMOS) TG. As shown in
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 provides a variable-resistance circuit 100. A schematic structural diagram of the circuit 100 is shown in
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
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
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
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
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
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
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
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
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 provides a signal processing circuit 200. A schematic structural diagram of the circuit 200 is shown in
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.
This method embodiment provides a signal analysis method. A schematic flowchart of the signal analysis method is shown in
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
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
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
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
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
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.
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
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
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.
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.
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.
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.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2015/080610 | Jun 2015 | US |
Child | 15822850 | US |