Weight updating method and processing unit for memristor array
By selecting the operating mode according to the weight update direction in the memristor array and changing the conductance value of the memristor, the problem of insufficient energy efficiency and computing power of traditional computing hardware in the online training of deep neural networks is solved, and efficient storage and calculation integration are achieved. Calculation and weight updates.
Patent Information
- Application Number
- CN202210592646.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-05-27
AI Technical Summary
Traditional computing hardware cannot meet the energy efficiency and computing power requirements in deep neural network online training, resulting in frequent data movement and performance bottlenecks, making it impossible to achieve efficient storage and computing integrated computing.
The memristor array is used to update the weight matrix by selecting the set or reset operation mode according to the weight update direction and changing the conductance value of the memristor to achieve efficient update of the weight matrix and reduce data movement.
It improves the energy efficiency and computing power of computing hardware, realizes integrated storage and calculation, reduces system energy consumption overhead, simplifies system design, and expands the range of weight representation.
Smart Images

Figure CN114861900B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a weight updating method and a processing unit for a memristor array. Background Art
[0002] At present, artificial intelligence technologies represented by deep neural networks have performed well in tasks such as image recognition and natural language processing, and have been widely used in various smart devices such as consumer electronics and self-driving cars. Computing hardware that supports online training of deep neural networks can enable smart devices to dynamically adapt to environmental changes. However, traditional computing hardware based on the von Neumann architecture cannot meet the energy efficiency and computing power requirements of online training of deep neural networks. Because storage and computing are separated in this traditional computing hardware, the frequent movement of large amounts of data causes huge overhead, which has become a major bottleneck hindering the improvement of system performance.
[0003] Memristor is a non-volatile device whose conductance state can be adjusted by applying external stimuli. According to Kirchhoff's current law and Ohm's law, an array composed of memristors can perform multiplication and accumulation calculations in parallel, and both storage and calculation occur in the memristor array. Based on this computing architecture, storage-computing integrated computing can be achieved without the need for large amounts of data movement. Therefore, memristor storage-computing integrated technology is expected to significantly improve the energy efficiency and computing power of computing hardware, thereby enabling smart devices to have online training capabilities. Summary of the invention
[0004] Some embodiments of the present disclosure provide a weight update method for a memristor array, wherein the memristor array is configured as a weight matrix for mapping a network layer of a neural network, and the memristor array includes a plurality of memristor units arranged in an array, and each of the plurality of memristor units includes two memristors for forming a differential unit, and the weight update method includes: obtaining a weight update direction for each weight in the weight matrix; selecting a weight update operation mode for the memristor array based on a previous update mode history, and changing the conductance value of at least one memristor in the corresponding memristor unit in the memristor array based on the weight update direction of each weight.
[0005] For example, in a weight updating method provided in some embodiments of the present disclosure, the weight updating operation mode includes a set operation mode and a reset operation mode.
[0006] For example, in a weight update method provided by some embodiments of the present disclosure, a weight update operation mode for the memristor array is selected based on a previous update mode history, including: when the previous update mode is the set operation mode, switching the weight update operation mode to the reset operation mode; or when the previous update mode is the reset operation mode, switching the weight update operation mode to the set operation mode.
[0007] For example, some embodiments of the present disclosure provide a weight updating method further comprising: initializing the weight updating operation mode to the setting operation mode or the resetting operation mode.
[0008] For example, in a weight update method provided by some embodiments of the present disclosure, a weight update operation mode for the memristor array is selected based on the previous update mode history, including: in response to m consecutive set operation modes, switching the weight update operation mode to the reset operation mode; or, in response to n consecutive reset operation modes, switching the weight update operation mode to the set operation mode, where m and n are integers greater than 1.
[0009] For example, in a weight updating method provided in some embodiments of the present disclosure, the set operation mode includes increasing the conductance value of at least one memristor in the memristor unit corresponding to the weight; or, the reset operation mode includes reducing the conductance value of at least one memristor in the memristor unit corresponding to the weight.
[0010] For example, in a weight updating method provided in some embodiments of the present disclosure, the conductance value of at least one memristor in the memristor unit corresponding to the weight in the memristor array is changed according to the weight update direction of each weight, including: when the weight update direction of the weight is positive, using the set operation mode to set at least one memristor in the memristor unit corresponding to the weight in the memristor array to increase the conductance difference between the two memristors, or, using the reset operation mode to reset at least one memristor in the memristor unit corresponding to the weight in the memristor array to increase the conductance difference between the two memristors; when the weight update direction of the weight is negative, using the set operation mode to set at least one memristor in the memristor unit corresponding to the weight in the memristor array to reduce the conductance difference between the two memristors, or, using the reset operation mode to reset at least one memristor in the memristor unit corresponding to the weight in the memristor array to reduce the conductance difference between the two memristors.
[0011] For example, in a weight updating method provided in some embodiments of the present disclosure, the memristor unit includes a memristor subunit of a 1T1R structure or a 2T2R structure.
[0012] Some embodiments of the present disclosure also provide a processing unit, which includes: a memristor array configured to be mapped into a weight matrix for a network layer of a neural network, and the memristor array includes a plurality of memristor units arranged in an array, and each of the plurality of memristor units includes two memristors for forming a differential unit; an update direction calculation module configured to obtain a weight update direction for each weight in the weight matrix; an update strategy control module configured to select a weight update operation mode for the memristor array based on a previous update mode history, and change the conductance value of at least one memristor in the corresponding memristor unit in the memristor array based on the weight update direction of each weight.
[0013] For example, some embodiments of the present disclosure provide a processing unit that also includes: an array driving module, configured to respond to a control signal, apply a voltage signal as the input signal to the memristor array, or receive a current signal as the output signal from the memristor array; an input module, configured to receive input data and convert the input data into an input signal to be input into the memristor array; an output module, configured to receive an output signal obtained after the memristor array performs computational processing on the input signal, and convert the output signal into output data; and a processing unit control module, configured to switch and schedule the working mode of the processing unit. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure.
[0015] Figure 1 It is a schematic diagram of the mapping relationship between the weight matrix of a network layer of a neural network and a memristor array;
[0016] Figure 2 is a schematic diagram of the structure of a memristor array;
[0017] Figure 3 It is a schematic diagram of a mapping method of positive and negative weights;
[0018] Figure 4A is a schematic diagram of a memristor subunit having a 1T1R structure;
[0019] Figure 4B is a schematic diagram of a memristor subunit having a 2T2R structure;
[0020] Figure 4C is a schematic diagram of another memristor subunit with a 2T2R structure;
[0021] Figure 5 A schematic diagram of a memristor array of a 1T1R structure provided by at least one embodiment of the present disclosure;
[0022] Fig. 6A A schematic diagram of a 2T2R structured memristor array provided by at least one embodiment of the present disclosure;
[0023] Figure 6B A schematic diagram of another 2T2R structured memristor array provided for at least one embodiment of the present disclosure;
[0024] Figure 7 A schematic diagram of a weight updating method proposed in at least one embodiment of the present disclosure;
[0025] Figure 8 A schematic diagram of a weight update operation mode proposed in at least one embodiment of the present disclosure;
[0026] Fig. 9 A flowchart of a weight updating method proposed in at least one embodiment of the present disclosure;
[0027] Fig.10 A schematic diagram of the structure of a processing unit proposed in at least one embodiment of the present disclosure; and
[0028] Fig.11 A schematic diagram of an update state of a processing unit proposed in at least one embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0030] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0031] The present disclosure is described below through several specific embodiments. In order to keep the following description of the embodiments of the present disclosure clear and concise, the detailed description of known functions and known components (elements) may be omitted. When any part (element) of the embodiments of the present disclosure appears in more than one figure, the part (element) is represented by the same or similar reference numeral in each figure.
[0032] Processing elements (PEs) that include memristor arrays can be used to accelerate artificial neural network algorithms. Figure 1 The figure shows the mapping relationship between the weight matrix of a neural network layer and the memristor array. Figure 1 As shown, the input value of each network layer of the neural network is mapped to input voltages X1, X2, ..., Xn of different amplitudes or pulse widths, and applied to the input end of the corresponding memristor array. Each weight parameter in the weight matrix of two adjacent network layers of the neural network is mapped to the conductance value of different memristors in the memristor array. For example, a certain weight parameter can be mapped to the conductance value of a memristor in the memristor array according to a certain rule. For example, the weight parameter can also be mapped to the conductance difference between two memristors in the memristor array. According to Kirchhoff's law and Ohm's law, the memristor array can realize efficient matrix-vector multiplication operations. For example, the output current values I1, I2, ..., In of the memristor array are equal to the cumulative result of each column after the voltage values X1, X2, ..., Xn are multiplied by the conductance value of the corresponding memristor. Therefore, the output result of each network layer of the neural network can be obtained by measuring the output current values of all columns.
[0033] Figure 2 Schematic structure of a memristor array is shown. Figure 2As shown, the memristor array includes a plurality of memristor units, which form an array of M rows and N columns, where M and N are both positive integers. Each memristor unit includes one or more switch elements and one or more memristors. Figure 1 In, WL <1> , WL <2> ...WL <m>Respectively represent the word lines of the first row, the second row, ... the Mth row, and the control electrode (eg, the gate of the transistor) of the switch element in the memristor unit circuit of each row is connected to the word line corresponding to the row; BL <1> BL <2> ...BL <n>They represent the bit lines of the first column, the second column, ... the Nth column respectively, and the memristors in the memristor unit circuit of each column are connected to the bit lines corresponding to the column; SL <1> , SL <2> ...SL <m>They represent source lines of the first row, the second row, ... the Mth row respectively, and the sources of the transistors in the memristor unit circuit of each row are connected to the source line corresponding to the row.
[0034] Figure 2 The memristor unit in the memristor array shown may include one or more memristor subunits, each memristor subunit may be, for example, a 1T1R structure or a 2T2R structure, wherein the memristor subunit of the 1T1R structure includes a switching transistor and a memristor, and the memristor subunit of the 2T2R structure includes two switching transistors and two memristors. The embodiments of the present disclosure are not limited to the type, structure, etc. of the memristor device. It should be noted that the transistors used in the embodiments of the present disclosure may be thin film transistors or field effect transistors (such as MOS field effect transistors) or other switching devices with the same characteristics. The source and drain of the transistor used here may be symmetrical in structure, so the source and drain may be indistinguishable in structure. The embodiments of the present disclosure do not limit the type of transistor used.
[0035] An efficient weight update strategy is one of the key factors in realizing a memristor online training computing system. At present, there are mainly two methods for implementing the weight update of a memristor online training computing system.
[0036] One method is to accurately calculate the weight update amount when the weight is updated, and rely on verification writing to accurately program the memristor conductance value corresponding to each weight to update the weight. However, the method relying on verification writing operation requires multiple operations on the memristor to achieve accurate programming of the memristor conductance value, and on the other hand, it requires multiple use of analog-to-digital conversion circuits, which not only places high demands on the erasable and write-resistant characteristics of the memristor, but also causes huge area and energy consumption overhead for the system.
[0037] Another method is to only consider the update direction of the weights instead of the exact value of the weight update amount when updating the weights, that is, to change the conductance value of the memristor corresponding to each weight according to the update direction of each weight. When updating, only a single operation is performed on the memristor without multiple verifications, which can effectively save the energy consumption of the system.
[0038] In order to represent positive and negative weights in artificial neural networks, a weight is usually mapped by the difference in conductance between two memristors. Figure 3 As shown, a positive device and a negative device are used to form a differential unit, and the conductance value g+ of the memristor as the positive device is subtracted from the conductance value g- of the memristor as the negative device to obtain the representation value w of the corresponding weight parameter. For example, Figure 3 As shown, in an array of memristor subunits using a 1T1R (1 transistor and 1 memristor) structure, the memristor as a positive device and the memristor as a negative device are located in different columns, and the two memristors form a differential unit. For example, after receiving the input voltage signal, the positive and negative memristors located in the two columns output the multiplication and accumulation calculation results of the two columns through two different source lines SL, that is, the output currents of the two columns, and obtain the difference between the output currents of the two columns through a subtraction circuit. For example, Figure 3 As shown, in another array of memristor subunits using a 2T2R (2 transistors and 2 memristors) structure, the output ends of the memristor as a positive device and the memristor as a negative device are connected to the same column. For example, after the positive and negative memristors receive the same or different input voltage signals, they directly complete the subtraction operation of the output current in the current domain.
[0039] The inventor of the present disclosure has noticed that in the existing weight update method based on the weight update direction, opposite operations are usually applied to the two memristors in the differential unit at the same time to achieve the weight update of positive and negative values. However, updating the two memristors in the differential unit at the same time increases the energy consumption overhead of the system, and equivalently reduces the dynamic range of the weight that the differential unit can represent. For example, when one memristor in the differential unit receives a positive polarity input voltage signal, the other memristor receives a negative polarity input voltage signal through an inverter, and the superposition result of the output currents of the two memristors in the differential unit can correspond to a weight element. When a set voltage is applied to one memristor, a reset voltage is also applied to the other memristor at the same time. In this method, the conductance values of the two memristors change at the same time, resulting in a large change in the update gradient of the weight value represented by the difference in the conductance of the two memristors, and the weight value that the differential unit can represent is very limited.
[0040] At least one embodiment of the present disclosure provides a weight update method for a memristor array, wherein the memristor array is configured as a weight matrix for mapping a network layer of a neural network, and the memristor array includes a plurality of memristor units arranged in an array, and each of the plurality of memristor units includes two memristors for forming a differential unit. The weight update method includes: obtaining a weight update direction for each weight in the weight matrix; selecting a weight update operation mode for the memristor array according to a previous update mode history, and changing the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight.
[0041] Figure 4A FIG. 1 shows a schematic diagram of a memristor subunit having a 1T1R structure. Figure 4A As shown, the memristor subunit of the 1T1R structure includes a transistor M1 and a memristor R1.
[0042] For example, when the transistor M1 is an N-type transistor, its gate is connected to the word line terminal WL, for example, when a high level is input to the word line terminal WL, the transistor M1 is turned on; the first electrode of the transistor M1 can be a source electrode and is configured to be connected to the source line terminal SL, for example, the transistor M1 can receive a reset voltage through the source line terminal SL; the second electrode of the transistor M1 can be a drain electrode and is configured to be connected to the second electrode (for example, the negative electrode) of the memristor R1, and the first electrode (for example, the positive electrode) of the memristor R1 is connected to the bit line terminal BL, for example, the memristor R1 can receive a set voltage through the bit line terminal BL. For example, when the transistor M1 is a P-type transistor, its gate is connected to the word line terminal WL, for example, when the word line terminal WL is input with a low level, the transistor M1 is turned on; the first electrode of the transistor M1 can be a drain and is configured to be connected to the source line terminal SL, for example, the transistor M1 can receive a reset voltage through the source line terminal SL; the second electrode of the transistor M1 can be a source and is configured to be connected to the second electrode (for example, the negative electrode) of the memristor R1, and the first electrode (for example, the positive electrode) of the memristor R1 is connected to the bit line terminal BL, for example, the memristor R1 can receive a set voltage through the bit line terminal BL. It should be noted that the resistive memory structure can also be implemented as other structures, such as a structure in which the second electrode of the memristor R1 is connected to the source line terminal SL, and the embodiments of the present disclosure are not limited to this.
[0043] In the following, the transistor M1 is described as an N-type transistor in this embodiment.
[0044] The function of the word line terminal WL is to apply a corresponding voltage to the gate of the transistor M1, thereby controlling the transistor M1 to be turned on or off. When operating the memristor R1, such as performing a set operation or a reset operation, it is necessary to turn on the transistor M1 first, that is, it is necessary to apply a turn-on voltage to the gate of the transistor M1 through the word line terminal WL. After the transistor M1 is turned on, for example, a voltage can be applied to the memristor R1 at the source line terminal SL and the bit line terminal BL to change the resistance state of the memristor R1. For example, a set voltage can be applied through the bit line terminal BL to make the memristor R1 in a low resistance state; for another example, a reset voltage can be applied through the source line terminal SL to make the memristor R1 in a high resistance state. For example, the resistance value of the high resistance state is more than 100 times the resistance value of the low resistance state, for example, more than 1000 times.
[0045] It should be noted that in at least one embodiment of the present disclosure, for example, by applying voltage simultaneously to the word line terminal WL and the bit line terminal BL, the resistance value of the memristor R1 can be made smaller and smaller, that is, the memristor R1 changes from a high resistance state to a low resistance state, and the operation of changing the memristor R1 from a high resistance state to a low resistance state is called a set operation; by applying voltage simultaneously to the word line terminal WL and the source line terminal SL, the resistance value of the memristor R1 can be made larger and larger, that is, the memristor R1 changes from a low resistance state to a high resistance state, and the operation of changing the memristor R1 from a low resistance state to a high resistance state is called a reset operation. For example, the memristor R1 has a threshold voltage, and when the input voltage amplitude is less than the threshold voltage of the memristor R1, the resistance value (or conductance value) of the memristor R1 will not be changed. In this case, the resistance value (or conductance value) of the memristor R1 can be used for calculation by inputting a voltage less than the threshold voltage; the resistance value (or conductance value) of the memristor R1 can be changed by inputting a voltage greater than the threshold voltage.
[0046] Figure 4B FIG. 1 shows a schematic diagram of a memristor subunit having a 2T2R structure. Figure 4B As shown, the 2T2R structure memristor subunit includes two transistors M1 and M2 and two memristors R1 and R2. In this embodiment, the transistors M1 and M2 are both N-type transistors.
[0047] The gate of transistor M1 is connected to the word line terminal WL1, for example, transistor M1 is turned on when a high level is input to the word line terminal WL1 of M1, and the gate of transistor M2 is connected to the word line terminal WL2, for example, transistor M2 is turned on when a high level is input to the word line terminal WL2 of M2; the first electrode of transistor M1 can be a source and is configured to be connected to the source line terminal SL, for example, transistor M1 can receive a reset voltage through the source line terminal SL, the first electrode of transistor M2 can be a source and is configured to be connected to the source line terminal SL, for example, transistor M2 can receive a reset voltage through the source line terminal SL, the first electrode of transistor M1 is connected to the first electrode of transistor M2, and they are connected together to the source line terminal SL. The second electrode of the transistor M1 may be a drain and configured to be connected to the second electrode (e.g., negative electrode) of the memristor R1, the first electrode (e.g., positive electrode) of the memristor R1 is connected to the bit line terminal BL1, for example, the memristor R1 may receive a set voltage through the bit line terminal BL1; the second electrode of the transistor M2 may be a drain and configured to be connected to the second electrode (e.g., negative electrode) of the memristor R2, the first electrode (e.g., positive electrode) of the memristor R2 is connected to the bit line terminal BL2, for example, the memristor R2 may receive a set voltage through the bit line terminal BL2.
[0048] Figure 4C A schematic diagram of another memristor subunit with a 2T2R structure is shown. Figure 4C The memristor sub-unit of the 2T2R structure shown includes two transistors M1 and M2 and two memristors R1 and R2. Figure 4C The gates of the transistors M1 and M2 of the memristor subunit in the embodiment are both connected to the word line terminal WL1. For example, when the word line terminal WL1 is input with a high level, the transistors M1 and M2 are turned on at the same time. Here, if the bias voltages applied to the bit lines BL1 and BL2 are the same, then Figure 4C The 2T2R in is electrically equivalent to Figure 4A In the 1T1R, that is, the two memristors are operated in the same way, so they can be regarded as "one memristor" as a whole; conversely, the two memristors can be operated differently or represent different values by applying different bias voltages on the bit lines BL1 and BL2. In addition, Figure 4C The structure of the memristor subunit shown and the connection relationship between the components can refer to the above Figure 4B The description of the illustrated embodiment will not be repeated here.
[0049] It should be noted that the transistors M1 and M2 in the memristor subunit of the 2T2R structure may also be P-type transistors, which will not be described in detail here.
[0050] For example, the memristor array provided by at least one embodiment of the present disclosure may include a plurality of memristor units arranged in an array, and each memristor unit includes two memristor subunits for forming a differential unit, wherein, for example, each memristor subunit includes a memristor and a switch element (e.g. Figure 4A ), the following will be Figure 5 Take this as an example to illustrate.
[0051] For example, Figure 5 FIG. 4 shows a memristor array constructed using a memristor subunit of a 1T1R structure. Figure 5 In the memristor array shown, each memristor unit 10 includes two memristor subunits for forming a differential unit, one of which includes a memristor 801 and the other includes a memristor 802. The conductance value of the memristor 801 is represented by G 11 , the conductance value of memristor 802 is represented by G 12 . When memristor 801 receives a positive input voltage signal, memristor 802 also receives a positive input voltage signal. For example, the input voltage signal received by memristor 801 is represented by v(t), and the input voltage signal received by memristor 802 is also represented by v(t). Memristor 801 as a positive device and memristor 802 as a negative device are respectively connected to two different SLs, and the output current passing through memristor 801 and the output current passing through memristor 802 are subtracted at the end of the SL. Therefore, the result of the multiplication and accumulation calculation of memristor 801 and memristor 802 is v(t)G 11 -v(t)G 12 , that is, v0(t)(G 11 -G 12 ). Therefore, the memristor differential unit composed of memristor 801 and memristor 802 can express a weight element, and the weight element is G 11 -G 12 , by configuring G 11 -G 12 The numerical relationship of can realize positive, zero, and negative weight elements. For example, in Figure 5 In the memristor array shown, the column where the memristor 801 as a positive device is located is a positive weight column, and the column where the memristor 802 as a negative device is located is a negative weight column.
[0052] For example, the memristor array provided by at least one embodiment of the present disclosure may include a plurality of memristor units arranged in an array, and each memristor unit includes a memristor subunit, and the memristor subunit includes two memristors and two switch elements (e.g. Figure 4B and Figure 4C In the case of a memristor subunit, two memristors are used to form a differential unit. Fig. 6A and Figure 6B Provide detailed explanation.
[0053] For example, Fig. 6A FIG. 4 shows a memristor array constructed using a 2T2R memristor subunit. Fig. 6A In the memristor array shown, each memristor unit 20 includes a memristor 801 and a memristor 802 for forming a differential unit, and the conductance value of the memristor 801 is represented by G 11 , the conductance value of memristor 802 is represented by G 12 , the memristor subunit of the 2T2R structure including the memristor 801 and the memristor 802 can correspond to a weight element, and the weight element can be mapped to the difference between the memristor 801 and the memristor 802, that is, G 11 -G 12 , by configuring G 11 -G 12 The numerical relationship of can realize positive, zero, and negative weight elements. For example, in Fig. 6A In the memristor array shown in FIG. 1 , the first electrode of the memristor 801 is connected to the bit line terminal BL P The memristor 801 is connected from the bit line terminal BL P The received input voltage signal is represented by v1(t). For example, the first electrode of the memristor 802 is connected to the bit line terminal BL N The memristor 802 is connected from the bit line terminal BL N The received input voltage signal is represented by v2(t). For example, the second electrode of memristor 801 is connected to the first electrode of transistor 701, and the second electrode of memristor 802 is connected to the first electrode of transistor 702. For example, the second electrode of transistor 701 is connected to the second electrode of transistor 702, and is connected together to the same source line terminal SL. For example, the output current passing through memristor 801 and the output current passing through memristor 802 are directly subtracted on SL to obtain the result of the multiplication and accumulation calculation of memristor 801 and memristor 802, that is, v1(t)G 11 -v2(t)G 12 For example, the gate of transistor 701 is connected to word line WL P Connect from WL P The gate of transistor 702 receives a voltage signal for controlling transistor 701 to be turned on or off, and the gate of transistor 702 is connected to word line WL N Connect from WL N A voltage signal for controlling the transistor 702 to be turned on or off is received.
[0054] For example, Figure 6B Another memristor array constructed using a 2T2R structured memristor subunit is shown. Figure 6B In the memristor array shown, each memristor unit 30 includes a memristor 801, a memristor 802 and a transistor 701, a transistor 702, and the conductance value of the memristor 801 is represented by G 11 , the conductance value of memristor 802 is represented by G 12 , on the bit line BL P and bit line BL N Under the condition of applying different biases, the memristor subunit of the 2T2R structure including the memristor 801 and the memristor 802 can correspond to a weight element, which can be mapped to the difference between the memristor 801 and the memristor 802, that is, G 11 -G 12 , by configuring G 11 -G 12 The numerical relationship of can realize positive, zero, and negative weight elements. Fig. 6A The difference between the memristor array shown is that Figure 6B The gate of the transistor 701 is connected to the gate of the transistor 702 and connected to the same word line WL, and receives a voltage signal from the word line for controlling the transistor 701 and the transistor 702 to be turned on or off.
[0055] It should be noted that the embodiments of the present disclosure have no restrictions on the type, structure, etc. of the memristor unit in the memristor array. For example, the memristor unit in the embodiments of the present disclosure may include one or more memristor sub-units, for example, the structure of each memristor sub-unit may be 1T1R, 2T2R or other possible structures (for example, including but not limited to 2T1R (two transistors and one memristor)). For example, the memristor unit in the embodiments of the present disclosure may also be composed of two memristors or two memristor sub-units located in different memristor arrays.
[0056] Figure 7 A schematic diagram of a weight updating method proposed in at least one embodiment of the present disclosure, the weight updating method comprising the following steps:
[0057] Step S110, obtaining the weight update direction of each weight in the weight matrix;
[0058] Step S120, selecting a weight update operation mode for the memristor array according to the previous update mode history, and changing the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight.
[0059] For example, the weight updating operation mode in step S120 includes a setting operation mode and a reset operation mode.
[0060] For example, in the set operation mode, only the memristors in the memristor array are set, and in the reset operation mode, only the memristors in the memristor array are reset.
[0061] Therefore, the weight updating method proposed in at least one embodiment of the present disclosure only performs set operation or reset operation on the memristor corresponding to the weight update direction. Compared with performing opposite operations (set operation and reset operation) on two memristor devices at the same time, it reduces the learning rate of a single update and is conducive to accelerating the convergence speed.
[0062] For example, in step S120, selecting the weight update operation mode for the memristor array based on the previous update mode history means referring to the history of the previous update mode, that is, referring to the state of the last previous update mode to select the weight update operation mode for the memristor array this time. For example, different switching methods can be selected.
[0063] For example, in a switching example, when the previous update mode history is the set operation mode, the current weight update operation mode is set to the reset operation mode; when the previous update mode history is the reset operation mode, the current weight update operation mode is set to the set operation mode.
[0064] For another example of a switching mode, after the set operation mode is performed m times continuously, the weight update operation mode is switched to the reset operation mode, otherwise the set operation mode is continued; or, after the reset operation mode is performed n times continuously, the weight update operation mode is switched to the set operation mode, otherwise the reset operation mode is continued, and m and n are integers greater than 1. The values of m and n can be set in advance.
[0065] In this example, according to the previous update mode history, the selection of the weight update operation mode for the memristor array requires first confirming the state in which the previous update mode has been continuously performed, and then switching to the state opposite to the previous update mode after the previous update mode has been continuously performed for a predetermined number of times, as the current weight update operation mode. For example, after confirming that the previous update mode history is the mth set operation mode that is continuously performed, and all set operations have been performed on the memristor that needs to be set, the current weight update operation mode is switched to the reset operation mode, and the reset operation mode is used for n consecutive times to perform the update operation, and then switched again. For example, the state of this weight update operation mode is the previous update mode history of the next weight update operation mode, that is, the next weight update operation mode needs to be considered or set according to the state of this weight update operation mode. According to the above-mentioned cyclic alternation process of repeated set operation mode and reset operation mode, the operation is performed until the training of the neural network is completed.
[0066] Therefore, the weight update method proposed in at least one embodiment of the present disclosure sets the current weight update operation mode by confirming the previous update mode history, so that the weight update operation mode can alternate between the set operation mode and the reset operation mode according to a predetermined period, thereby effectively solving the problem of memristor conductance saturation caused by always using the set operation or always using the reset operation when updating the weight.
[0067] For example, the weight updating method proposed in at least one embodiment of the present disclosure may also perform initialization settings on the weight updating operation mode according to actual needs. For example, the initialization settings may be performed before performing the first weight updating operation.
[0068] For example, the weight update operation mode set by the initialization can be used as the weight update operation mode in the first cycle operation. For example, the initial weight update operation mode is set to the set operation mode, that is, after obtaining the weight update direction of each weight in the weight matrix, the memristor in the memristor array that needs to be set is first set, and then switched to the reset operation mode according to the switching mode; or, the initial weight update operation mode is set to the reset operation mode, that is, after obtaining the weight update direction of each weight in the weight matrix, the memristor in the memristor array that needs to be reset is first reset, and then switched to the set operation mode according to the switching mode.
[0069] For example, the weight update operation mode set by initialization can also be used as the previous update mode of the weight update operation mode in the first cycle operation. For example, when the initial weight update operation mode is the set operation mode, the set operation mode is the previous update mode history of the weight update operation mode in the first cycle operation, and the weight update operation mode in the first cycle operation is therefore subsequently operated according to the above switching mode.
[0070] In the weight updating method proposed in at least one embodiment of the present disclosure, the set operation refers to the operation of increasing the conductance value of the memristor, and the reset operation refers to the operation of reducing the conductance value of the memristor. For example, in the set operation mode, it is necessary to perform a set operation on the corresponding memristor in the memristor array, that is, by applying a set voltage to at least one memristor in the differential unit to increase the conductance value of the memristor; for example, in the reset operation mode, it is necessary to perform a reset operation on the corresponding memristor in the memristor array, that is, by applying a reset voltage to at least one memristor in the differential unit to reduce the conductance value of the memristor. For example, at each update, only the set operation is performed on the memristor in the set operation mode, and only the reset operation is performed on the memristor in the reset operation mode, which reduces the number of operations by half, which is conducive to simplifying the system design, saving system energy consumption overhead, and reducing the requirements for the accuracy of the weight update value when the weight is updated.
[0071] In the weight updating method proposed in at least one embodiment of the present disclosure, for example, after obtaining the weight update direction of each weight in the weight matrix in step S110, step S120 is executed to change the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight. For example, when the update direction of a certain weight is positive, it is necessary to increase the conductance difference between the two memristors in the memristor unit corresponding to the weight, and when the update direction of a certain weight is negative, it is necessary to reduce the conductance difference between the two memristors in the memristor unit corresponding to the weight.
[0072] For example, the conductance difference between the two memristors can be increased by increasing the conductance value of the memristor as a positive device and keeping the conductance value of the memristor as a negative device unchanged. For example, the conductance difference between the two memristors can be increased by increasing the conductance values of both memristors, but the increase in the conductance value of the memristor as a positive device is greater than the increase in the conductance value of the memristor as a negative device. For example, in the set operation mode, a set operation is performed on at least one memristor in the memristor unit corresponding to the positive weight update direction in the memristor array to increase the conductance difference between the two memristors in the memristor unit.
[0073] For example, the conductance difference between the two memristors can be increased by keeping the conductance value of the memristor as a positive device unchanged and reducing the conductance value of the memristor as a negative device. For example, the conductance difference between the two memristors can be increased by reducing the conductance values of both memristors, but the decrease in the conductance value of the memristor as a positive device is less than the decrease in the conductance value of the memristor as a negative device. For example, in the reset operation mode, a reset operation is performed on at least one memristor in the memristor unit corresponding to the positive weight update direction in the memristor array to increase the conductance difference between the two memristors in the memristor unit.
[0074] The method for reducing the conductance difference between the two memristors is similar in principle to the method for increasing the conductance difference between the two memristors described above, and will not be described in detail here.
[0075] For example, in the set operation mode, a set operation is performed on at least one memristor in the memristor cell corresponding to a negative weight update direction in the memristor array to reduce the conductance difference between the two memristors in the memristor cell. For example, in the reset operation mode, a reset operation is performed on at least one memristor in the memristor cell corresponding to a negative weight update direction in the memristor array to reduce the conductance difference between the two memristors in the memristor cell.
[0076] In the weight updating method proposed in at least one embodiment of the present disclosure, for example, after step S110 obtains the update direction of each weight in the weight matrix (the update direction of the weight can be positive or negative), in step S120, the current weight update operation mode is determined according to the previous update mode history.
[0077] In the weight updating method proposed in at least one embodiment of the present disclosure, for example, the conductance value of one memristor in the memristor unit can be changed or the conductance values of the two memristors can be changed respectively, so that the conductance difference value of the two memristors is increased or decreased. For example, the conductance values of the two memristors can be changed by applying different set voltages or reset voltages to the two memristors respectively, so that the conductance difference value of the two memristors is increased or decreased. For example, the conductance difference value of the two memristors can be changed by applying different numbers of set operations or reset operations to the two memristors respectively. The weight updating method can change the amount of change in the conductance difference value of the memristors by changing the conductance value of at least one memristor, thereby effectively improving the weight representation range of the processing unit.
[0078] The following will be combined Figure 8 To describe in detail Figure 7 An example of the weight update method shown.
[0079] like Figure 8 As shown, the memristor array is composed of a plurality of memristor differential units arranged in an array, each memristor differential unit includes two memristors, and the difference in the conductance values of the two memristors represents a weight element. For a memristor with a conductance value as a minuend, it is referred to as a "positive device" here, and for a memristor with a conductance value as a subtrahend, it is referred to as a "negative device" here. For example, Figure 8 As shown, the black line frame represents the memristor as a positive device in the two memristors (the box on the left side of the figure), the gray line frame represents the memristor as a negative device in the two memristors (the box on the right side of the figure), the upward arrow represents increasing the conductance value of the memristor, that is, setting the memristor, and the downward arrow represents decreasing the conductance value of the memristor, that is, resetting the memristor.
[0080] For example, in at least one embodiment of the present disclosure, Figure 8 As shown, in the SET operation mode, when the weight update direction is positive (Δw>0), only the positive devices that need to be updated in the memristor array are set by the SET operation. Figure 5 , Fig. 6A and Figure 6B The memristor 801 in the memristor array is set. When the weight update direction is negative (Δw<0), only the negative device to be updated in the memristor array is set by the set operation. For example, Figure 5 , Fig. 6A and Figure 6B The memristor 802 in the memory performs a set operation, and when the weight update amount Δw is 0, no set operation is performed.
[0081] For example, in at least one embodiment of the present disclosure, Figure 8 As shown in FIG. 1 , in the reset (RESET) operation mode, when the weight update direction is positive (Δw>0), only the negative devices in the memristor array that need to be updated are reset by the reset operation. For example, Figure 5 , Fig. 6A and Figure 6B When the weight update direction is negative (Δw<0), only the positive devices in the memristor array that need to be updated are reset by the reset operation. Figure 5 , Fig. 6A and Figure 6B The memristor 801 in the embodiment performs a reset operation. When the weight update amount Δw is 0, no reset operation is performed.
[0082] Therefore, the weight updating method provided in at least one embodiment of the present disclosure only performs one of the SET operation or the RESET operation on all memristors that need to be updated each time the weight is updated, reducing the number of operations by half, which can effectively reduce the energy consumption overhead of the system and greatly simplify the complexity of system design.
[0083] Fig. 9 A flowchart of a weight update operation mode proposed in at least one embodiment of the present disclosure is shown, comprising the following steps:
[0084] Step S210, specify the number of consecutive updates using the SET operation mode: m, specify the number of consecutive updates using the RESET operation mode: n;
[0085] Step S220, determine the update mode, if the SET operation mode has been used for m consecutive times, switch to the RESET operation mode, if the RESET operation mode has been used for n consecutive times, switch to the SET operation mode;
[0086] Step S230, calculating the current weight update direction;
[0087] Step S240, using the corresponding SET mode or RESET mode determined above to update the weight;
[0088] Step S250: If the training is not completed, the next update is performed; if the training is completed, the process ends.
[0089] like Fig. 9 As shown, in step S210, the number of continuous update operations of the set operation mode is specified to be m times, and the number of continuous update operations of the reset operation mode is specified to be n times, and then step S220 is executed to update the weight each time. For example, m and n are preset in the control program.
[0090] For example, in step S220, the operation history is considered to determine the weight update operation mode to be currently adopted. For example, if the SET operation mode has been adopted for m consecutive times, the operation mode is switched to the RESET operation mode. If the RESET operation mode has been adopted for n consecutive times, the operation mode is switched to the SET operation mode. In this method, two counters can be set to count the number of times the SET operation mode and the RESET operation mode have been performed consecutively. For example, when switching from the SET operation mode to the RESET operation mode, the counter corresponding to the RESET operation mode is activated, and the counter corresponding to the SET operation mode is cleared at the same time; conversely, when switching from the RESET operation mode to the SET operation mode, the counter corresponding to the SET operation mode is activated, and the counter corresponding to the RESET operation mode is cleared at the same time.
[0091] For example, in step S230, the update direction of the current weight is calculated. For example, when the update direction of a certain weight is positive, it is necessary to increase the element value represented by the memristor unit corresponding to the weight, that is, it is necessary to increase the conductance difference between the two memristors in the memristor unit corresponding to the weight. For example, when the update direction of a certain weight is negative, it is necessary to reduce the element value represented by the memristor unit corresponding to the weight, that is, it is necessary to reduce the conductance difference between the two memristors in the memristor unit corresponding to the weight.
[0092] For example, in step S240, the weight of the memristor array is updated using the corresponding set operation mode or reset operation mode determined in step S220. For example, when performing a set operation or a reset operation, after performing the corresponding operation, the operation result is read and judged whether it meets the requirements. If it meets the requirements, the next step is entered. If it does not meet the requirements, the corresponding operation is performed again, and so on until it is confirmed that the operation result meets the requirements.
[0093] For example, step S250 determines whether the training of the neural network is completed at the end of each cycle. If the training is not completed, the next cycle is performed, that is, the above steps S220-S250 are repeated, and in this new cycle, step S220 adopts the corresponding set operation mode or reset operation mode according to the previous update mode history at the end of the previous cycle, and performs a set operation or a reset operation on the corresponding memristor according to the weight update direction calculated in the second cycle. This cycle is repeated until step 250 determines that the training of the neural network is completed.
[0094] For example, in the first cycle, the set operation mode can be initialized as the prior update mode, so the set operation mode is entered first (at this time, the counter corresponding to the SET operation mode is activated and set to 0, and the counter corresponding to the RESET operation mode is set to 0), and the operation is performed m times in a row and the set operation is adopted each time, and then the operation mode is switched to the reset operation mode (at this time, the counter corresponding to the RESET operation mode is activated and the counter corresponding to the SET operation mode is cleared to zero), and the operation is performed n times in a row and the reset operation is adopted each time.
[0095] exist Fig. 9 In the method shown, although step S220 is before step S230, the embodiments of the present disclosure have no restriction on the order of step S220 and step S230. For example, step S220 can be performed after step S230 or simultaneously with step S230, as long as the update direction and the update mode to be adopted have been determined before step S240 is executed.
[0096] like Fig.10 As shown, at least one embodiment of the present disclosure further provides a processing unit, which includes: a memristor array 100, an update strategy control module 200, an update direction calculation module 300, a forward input module 400, a reverse output module 500, an array driving module 600, a forward output module 700, a reverse input module 800, and a processing unit control module 900. These modules can be implemented, for example, in hardware, software, firmware, or any combination thereof.
[0097] For example, the memristor array 100 is configured to be mapped as a weight matrix for a network layer of a neural network, and the memristor array includes a plurality of memristor units arranged in an array, and each of the plurality of memristor units includes two memristors for forming a differential unit. For example, the memristor array 100 may adopt any of the above-mentioned exemplary applicable memristor arrays.
[0098] For example, the update direction calculation module 300 is configured to obtain the weight update direction of each weight in the weight matrix.
[0099] For example, the update strategy control module 200 is configured to select a weight update operation mode for the memristor array 100 according to the previous update mode history, and change the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight. For example, the update strategy control module 200 is used to determine the memristor that needs to be operated in each memristor differential unit according to the weight update direction. For example, the update strategy control module 200 is used to select a set operation mode or a reset operation mode, and perform a set operation or a reset operation on the memristor that needs to be operated. For example, the update strategy control module 200 is used to implement regular switching between the set operation mode and the reset operation mode. For example, the update strategy control module 200 is used to determine whether the operation in the current update mode has reached a preset number of times. If the preset number of times has been reached, it switches to another update mode for the next update.
[0100] For example, the forward input module 400 and the reverse input module 800 are configured to receive input data and convert the input data into input signals to be input into the memristor array 100 .
[0101] For example, the array driver module 600 is configured to respond to the control signal, apply a voltage signal as an input signal to the memristor array 100, or receive a current signal as an output signal from the memristor array 100. For example, in the set operation mode, the array driver module 600 can apply a set voltage to the memristor that needs to be set in the memristor array 100, and in the reset operation mode, the array driver module 600 can apply a reset voltage to the memristor that needs to be reset in the memristor array 100. For example, the array driver module 600 can also apply a read voltage to the memristor array 100 to read the current conductance value of each memristor, and the read conductance value can be used to verify whether the aforementioned set operation or reset operation meets the requirements.
[0102] For example, the forward output module 700 and the reverse output module 500 are configured to receive output signals obtained after the memristor array 100 performs computational processing on input signals, and convert the output signals into output data.
[0103] For example, the processing unit control module 900 is configured to switch and schedule the working mode of the processing unit. For example, the processing unit control module 900 can switch the working mode of the processing unit to a forward computing mode to perform an inference computing task. For example, the processing unit control module 900 can switch the working mode of the processing unit to a reverse computing mode to perform a training computing task.
[0104] In at least one embodiment of the present disclosure, when the processing unit updates the positive and negative weights of the memristors in the memristor array, it can respectively perform a set operation or a reset operation on the two memristors in the memristor array according to the weight update direction, thereby expanding the weight range that can be represented by the two memristors in the memristor unit, and in some embodiments, at each update, only one of the set operation or the reset operation is performed on the memristor that needs to be updated in the memristor array, which is conducive to simplifying the system design, reducing the system energy consumption overhead, and can also effectively solve the problem of memristor conductance saturation caused by always using unidirectional operation when updating the weight.
[0105] Fig.11 A schematic diagram of an update state of a processing unit proposed in at least one embodiment of the present disclosure, such as Fig.11 As shown, the forward input module 400 and the forward output module 700 are used in the forward calculation mode, and the reverse input module 800 and the reverse output module 500 are used in the reverse training mode.
[0106] For example, the update direction calculation module 300 obtains the update direction of the weight according to the calculation data of the forward input module 400, the forward output module 700 and the reverse input module 800, and inputs the update direction of the weight into the update strategy control module 200. For example, the update strategy control module 200 selects the current update operation mode according to the previous update mode history, and determines the memristor that needs to be operated in the memristor differential unit corresponding to each weight in the memristor array according to the weight update direction of each weight obtained from the update direction calculation module 300, and applies the corresponding operation to the corresponding memristor in the memristor array 100 through the array driving module 600.
[0107] There are a few points to note about this disclosure:
[0108] (1) The drawings of the embodiments of the present disclosure only relate to the structures related to the embodiments of the present disclosure, and other structures may refer to the general design.
[0109] (2) In the absence of conflict, the embodiments of the present disclosure and the features therein may be combined with each other to obtain new embodiments.
[0110] The above are only specific implementations of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and the protection scope of the present disclosure shall be based on the protection scope of the claims.< / m> < / n> < / m>
Claims
1. A weight updating method for a memristor array, wherein the memristor array is configured as a weight matrix for mapping a network layer of a neural network, and the memristor array comprises a plurality of memristor units arranged in an array, and each of the plurality of memristor units comprises two memristors for forming a differential unit, the weight updating method comprising: Obtaining a weight update direction for each weight in the weight matrix; selecting a weight update operation mode for the memristor array according to a previous update mode history, and changing the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight, The weight update operation mode includes a set operation mode and a reset operation mode. Wherein, changing the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight includes: When the weight update direction of the weight is positive, the set operation mode is used to perform a set operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to increase the conductance difference between the two memristors, or the reset operation mode is used to perform a reset operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to increase the conductance difference between the two memristors; When the weight update direction of the weight is negative, the set operation mode is used to perform a set operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to reduce the conductance difference between the two memristors, or the reset operation mode is used to perform a reset operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to reduce the conductance difference between the two memristors.
2. The weight updating method according to claim 1, wherein: Selecting a weight update operation mode for the memristor array based on a previous update mode history includes: When the previous update mode is the set operation mode, switching the weight update operation mode to the reset operation mode; or When the previous update mode is the reset operation mode, the weight update operation mode is switched to the set operation mode.
3. The weight updating method according to claim 1, further comprising: Initialize the weight update operation mode to the set operation mode or the reset operation mode.
4. The weight updating method according to claim 1, wherein: Selecting a weight update operation mode for the memristor array based on a previous update mode history includes: In response to the setting operation mode being performed m times in succession, switching the weight updating operation mode to the resetting operation mode; or In response to the reset operation mode being performed n times in succession, the weight update operation mode is switched to the set operation mode, Wherein, m and n are integers greater than 1.
5. The weight updating method according to claim 1, wherein: The set operation mode includes increasing the conductance value of at least one memristor in the memristor unit corresponding to the weight; or The reset operation mode includes reducing the conductance value of at least one memristor in the memristor cells corresponding to the weight.
6. The weight updating method according to any one of claims 1 to 5, wherein: The memristor unit includes a memristor subunit with a 1T1R structure or a 2T2R structure.
7. A processing unit based on a weight updating method, comprising: A memristor array configured to be mapped as a weight matrix for a network layer of a neural network, wherein the memristor array comprises a plurality of memristor units arranged in an array, and each of the plurality of memristor units comprises two memristors for forming a differential unit; an update direction calculation module, configured to obtain a weight update direction for each weight in the weight matrix; an update strategy control module, configured to select a weight update operation mode for the memristor array according to a previous update mode history, and to change the conductance value of at least one memristor in the corresponding memristor unit in the memristor array according to the weight update direction of each weight, The weight update operation mode includes a set operation mode and a reset operation mode. The update strategy control module is also configured as: When the weight update direction of the weight is positive, the set operation mode is used to perform a set operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to increase the conductance difference between the two memristors, or the reset operation mode is used to perform a reset operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to increase the conductance difference between the two memristors; When the weight update direction of the weight is negative, the set operation mode is used to perform a set operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to reduce the conductance difference between the two memristors, or the reset operation mode is used to perform a reset operation on at least one memristor in the memristor unit corresponding to the weight in the memristor array to reduce the conductance difference between the two memristors.
8. The processing unit according to claim 7, further comprising: an array driving module, configured to apply a voltage signal as an input signal to the memristor array or receive a current signal as an output signal from the memristor array in response to a control signal; An input module configured to receive input data and convert the input data into an input signal to be input into the memristor array; an output module, configured to receive an output signal obtained after the memristor array performs calculation processing on the input signal, and convert the output signal into output data; The processing unit control module is configured to switch and schedule the working mode of the processing unit.
