Semiconductor device
The semiconductor device optimizes write operations in nonvolatile memory by predicting success rates using a machine learning model, reducing energy consumption and enhancing reliability through adaptive current flow time control.
Patent Information
- Application Number
- JP2023069504
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-20
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2043-04-20
AI Technical Summary
Conventional semiconductor devices using nonvolatile elements for data storage face challenges in reducing energy consumption during write operations due to stochastic write success rates, which are difficult to predict dynamically and result in unnecessary energy consumption and potential failures.
A semiconductor device with a prediction circuit that predicts the success rate of writing to a nonvolatile memory section based on device state information, using a machine learning model to optimize current flow time for write operations, employing short-time and long-time writes to minimize energy consumption.
The solution effectively reduces energy consumption in write operations by dynamically predicting and controlling current flow times, ensuring high reliability and minimizing energy waste.
Smart Images

Figure 2024155089000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a semiconductor device. [Background technology]
[0002] In embedded systems that require energy saving and high reliability, nonvolatile devices capable of suppressing energy consumption are used. For example, Patent Document 1 discloses a semiconductor device that includes a flip-flop and a nonvolatile storage unit, and controls the writing of data held by the flip-flop to the nonvolatile storage unit when data stored in the nonvolatile storage unit is not identical to data held by the flip-flop. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-101456 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the conventional technology, since a non-volatile element that stores data probabilistically is used, the write operation is controlled so that the data write is successful with a high probability. Therefore, in the conventional technology, there is room for reducing the energy consumption.
[0005] In view of the above technical problems, an object of one embodiment of the present disclosure is to reduce energy consumption in a write operation to a nonvolatile memory unit. [Means for solving the problem]
[0006] A semiconductor device according to one aspect of the present disclosure is a semiconductor device having a non-volatile memory unit, and includes a prediction circuit unit that predicts a write success rate for the non-volatile memory unit based on state information indicating the state of the semiconductor device, and a memory control unit that controls a write operation for the non-volatile memory unit based on the predicted write success rate. Effect of the Invention
[0007] According to one aspect of the present disclosure, it is possible to reduce energy consumption in a write operation to a non-volatile memory unit. [Brief description of the drawings]
[0008] [Figure 1] 1 is a flowchart illustrating an example of a store operation in the prior art. [Diagram 2] FIG. 2 is a block diagram illustrating an example of a prediction model. [Diagram 3] FIG. 2 is a block diagram showing an example of a functional configuration of the semiconductor device; [Figure 4] 11 is a flowchart illustrating an example of a store operation in the embodiment. [Diagram 5] 13 is a flowchart illustrating an example of a determination process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In this specification and the drawings, components having substantially the same functional configurations are denoted by the same reference numerals, and redundant description will be omitted.
[0010] [Embodiment] In recent years, various embedded systems, such as those in automobiles, robots, and spacecraft, play a key role in social infrastructure. Embedded systems are often powered by energy sources with limited amounts of energy, such as batteries, and so there is a need to reduce their energy consumption. In addition, since failures of embedded systems that play a key role in social infrastructure can cause accidents, it is also important to ensure high reliability.
[0011] In order to achieve both energy saving and high reliability, a non-volatile device that can retain data even when the power is turned off is useful. Patent Document 1 discloses a non-volatile device that ensures high reliability by retaining data even when the power is suddenly turned off while reducing energy consumption through power gating. The non-volatile device disclosed in Patent Document 1 is also called "VR-NVFF (Verify and Retryable Non-Volatile Flip-Flop)."
[0012] The VR-NVFF consists of a flip-flop section (hereafter also referred to as "FF"), a non-volatile element section, and a verification circuit section. The flip-flop section operates in the same way as a normal flip-flop circuit. The value held by the flip-flop section is lost when the power is turned off. The non-volatile element section stores a one-bit value using two magnetic tunnel junction (MTJ) elements. The value stored in the non-volatile element section is retained even when the power is turned off. The verification circuit section compares and verifies the value held by the flip-flop section with the value stored in the non-volatile element section.
[0013] An operation of writing a value held by the flip-flop unit to the non-volatile element unit is called a store operation. An operation of restoring a value stored in the non-volatile element unit to the flip-flop unit is called a restore operation. An operation of restoring a value stored in the non-volatile element unit to the verification circuit unit and comparing and verifying the value held by the flip-flop unit and the value held by the verification circuit unit is called a verify operation.
[0014] An object of an embodiment of the present disclosure is to realize an energy-saving store operation for writing data to a non-volatile element unit in a semiconductor device having a VR-NVFF. According to one aspect, the present embodiment can reduce energy consumption in a write operation to the non-volatile memory unit.
[0015] <Magnetic tunnel junction element> A magnetic tunnel junction element (hereinafter also referred to as an "MTJ element") is a non-volatile element that stores values by changing the direction of magnetization. An MTJ element can switch between a low resistance state and a high resistance state depending on the direction of current flow, and this phenomenon is used to write values. MTJ elements are used as non-volatile storage units, taking advantage of their characteristic of retaining their state even when the power is turned off. Reference 1 discloses that the probability of a state transition occurring in an MTJ element (in other words, the probability that writing to an MTJ element will be successful) depends on temperature, voltage, current flow time, etc.
[0016] [Reference 1] Sun, JZ: "Spin-transfer torque switched magnetic tunnel junction for memory technologies," Journal of Magnetism and Magnetic Materials, Vol. 559, p. 169479 (online), DOI: https: / / doi.org / 10.1016 / j.jmmm.2022.169479 (2022).
[0017] However, it is difficult to dynamically predict the write success rate of an MTJ element at a certain current flow time on an actual chip, due to factors such as process variations and dynamic changes in temperature and voltage.
[0018] Reference 2 discloses a stochastic switching device using an MTJ element. The stochastic switching device disclosed in Reference 2 utilizes the fact that writing to an MTJ element is a stochastic operation. However, Reference 2 does not dynamically predict the write success rate of the MTJ element by taking into account process variations, dynamic changes in temperature and voltage, and the like.
[0019] [Reference 2] U.S. Patent Application Publication No. 2019 / 130954
[0020] <Store operation flow> Since VR-NVFF writes to two MTJ elements, the success rate of the store operation depends on the write success rate of the MTJ elements. Considering that writing to an MTJ element is a probabilistic operation, VR-NVFF performs a verification operation after a write operation in order to improve the write success rate to the non-volatile element section, and repeats the process of performing the write operation again if it fails.
[0021] When writing to an MTJ element, the success rate increases as the current flow time is longer. On the other hand, the longer the current flow time, the greater the energy consumption. In order to reduce the energy consumption when writing to the non-volatile element, the VR-NVFF shortens the current flow time in the first write operation and lengthens the current flow time in the second and subsequent write operations.
[0022] A store operation of a semiconductor device equipped with a VR-NVFF will be described with reference to Fig. 1. Fig. 1 is a flowchart showing an example of a store operation in the conventional technology. Note that the store operation is executed by a control unit of the semiconductor device.
[0023] In step S1, the control unit of the semiconductor device verifies whether writing to the nonvolatile element unit is necessary. Specifically, the control unit causes the verification circuit unit of the VR-NVFF to compare and verify the value held by the flip-flop unit with the value stored in the nonvolatile element unit, and outputs the verification result.
[0024] When the verification result output by the verification circuit unit indicates that the value held by the flip-flop unit and the value stored in the non-volatile element unit are different, the control unit determines that writing to the non-volatile element unit is necessary, whereas when the verification result output by the verification circuit unit indicates that the value held by the flip-flop unit and the value stored in the non-volatile element unit are equal, the control unit determines that writing to the non-volatile element unit is unnecessary.
[0025] If it is determined that writing to the non-volatile element unit is necessary (YES), the control unit proceeds to step S2. On the other hand, if it is determined that writing to the non-volatile element unit is not necessary (NO), the control unit ends the store operation.
[0026] In step S2, the control unit of the semiconductor device causes the VR-NVFF to execute a short-time write operation. The short-time write operation is an operation of writing a value held by the flip-flop unit to the non-volatile element unit for a predetermined first current flow time. The first current flow time may be arbitrarily determined as a current flow time that can be statistically expected to have a certain degree of write success rate (e.g., about 80%). The first current flow time is, for example, 40 nanoseconds.
[0027] In step S3, the control unit of the semiconductor device judges the write result of the short-time write operation executed in step S2. Specifically, the control unit causes the verification circuit unit of the VR-NVFF to compare and verify the value held by the flip-flop unit and the value stored in the non-volatile element unit, and outputs the verification result.
[0028] If the verification result output by the verification circuit unit indicates that the value held by the flip-flop unit is equal to the value stored in the non-volatile element unit, the control unit determines that the short-time write operation is successful, whereas if the verification result output by the verification circuit unit indicates that the value held by the flip-flop unit is different from the value stored in the non-volatile element unit, the control unit determines that the short-time write operation is unsuccessful.
[0029] If the short-time write operation is successful (YES), the control unit ends the store operation. On the other hand, if the short-time write operation is unsuccessful (NO), the control unit proceeds to step S4.
[0030] In step S4, the control unit of the semiconductor device determines whether the counter indicating the number of write attempts is less than a predetermined threshold value. The predetermined threshold value is the upper limit number of times to retry a write attempt. The upper limit number may be set arbitrarily, but is, for example, 16.
[0031] If the counter is less than the threshold (YES), the control unit proceeds to step S6. At this time, the control unit increments the counter. On the other hand, if the counter is equal to or greater than the threshold (NO), the control unit proceeds to step S5.
[0032] In step S5, the control unit of the semiconductor device issues an interrupt and interrupts the store operation.
[0033] In step S6, the control unit of the semiconductor device causes the VR-NVFF to execute a long-time write operation. The long-time write operation is an operation of writing a value held by the flip-flop unit to the non-volatile element unit for a predetermined second current flow time. The second current flow time is set to be longer than the first current flow time. The second current flow time may be set to a current flow time at which a statistically nearly 100% write success rate can be expected. The second current flow time is, for example, 100 nanoseconds.
[0034] After the control unit of the semiconductor device causes the VR-NVFF to execute the long-term write operation, the process returns to step S3. After that, the control unit repeatedly executes the long-term write operation until the write to the non-volatile element unit is successful or the counter reaches the upper limit number of times.
[0035] <Energy consumption during store operation> In this embodiment, the energy consumption in a store operation is modeled as follows. Here, the energy consumption to be modeled is the energy consumption of a store operation in a semiconductor device having a memory bank composed of multiple VR-NVFFs. Hereinafter, this model will be referred to as the energy consumption model.
[0036] The energy consumption model is based on the following three assumptions: (1) The first long write operation is successful. (2) Execute store operations on N VR-NVFFs. (3) Only the energy consumption of the MTJ element is considered.
[0037]
number
[0038] Here, the parameters of the energy consumption model are as follows: E store : Energy consumption for the entire store operation E firstverify : Energy consumption during the first verification run E shortstore :Energy consumption for short write operations E secondverify : Energy consumption during the second verification run E longstore : Energy consumption during long write operations E thirdverify Energy consumption during the third test run E verify : Energy consumption during verification operation (per VR-NVFF) N: Total number of NVFFs N1: The total number of VR-NVFFs whose values differ between FF and MTJ elements after the first verification operation. N2: The total number of VR-NVFFs whose values differ between FF and MTJ elements after the second verification operation V: Voltage I: Current flowing into the MTJ element ·t shortstore : Current flow time for short write operation t longstore : Current flow time during long-term write operation P shortstore : Success rate of short-time write operations P longstore : Success rate of long-term write operations
[0039] Based on the energy consumption model, the success rate of short-time write operations P shortstore is the current flow time t shortstore Therefore, the energy consumption of a short write operation E shortstore and the energy consumption of long-term write operation Elongstore The sum of (E shortstore +E longstore ) to minimize the current flow time t shortstore should be set.
[0040] Based on the energy consumption model, the success rate of long-term write operations P longstore is the current flow time t longstore Therefore, the success rate of long-term write operations P longstore When the energy consumption of the long-term write operation E longstore The current flow time t longstore should be set.
[0041] <Success rate of write operations> There are several models for the success rate of writing to an MTJ element (see Reference 1, etc.), but in this embodiment, the success rate of a write operation to an MTJ element is modeled as follows. Note that the condition for a successful write operation is that writing to both of the two MTJ elements that make up the non-volatile element section is successful. Hereinafter, this model will be called the success rate model.
[0042]
number
[0043] Here, the parameters of the success rate model are as follows: P store : Store operation success rate P sw : Success rate of writing to MTJ element (per MTJ element) ·t: Current inflow time T: Temperature of the MTJ element V: Voltage I: Current flowing into the MTJ element ·R MTJ : Resistance value of MTJ element ·τ0: Trial time (approximately 1 nanosecond) Eb : Energy barrier ·k b :Boltzmann constant I c : Critical current value ν: constant (1≦ν≦2)
[0044] Based on the success rate model, the success rate of write operations P store is the write success rate of the MTJ element P sw It can be seen that the write success rate of the MTJ element P sw It can be seen that depends on temperature T, voltage V and current flow time t.
[0045] <Method for determining current flow time> If the write success rate of an MTJ element at a certain current flow time is dynamically predicted and the current flow time in a write operation to the MTJ element is appropriately controlled, the energy consumption of a store operation can be reduced more effectively.
[0046] In this embodiment, the energy consumption E of the entire store operation is dynamically calculated by machine learning. store Determine the current inflow time t that minimizes the write success rate P sw The write success rate of the MTJ element is predicted using a machine learning model with the objective function: Hereinafter, this machine learning model will be referred to as the “prediction model.”
[0047] 2 is a block diagram showing an example of a prediction model. As shown in FIG. 2, a prediction model 100 in this embodiment receives temperature T, voltage V, and current flow time t as inputs, and calculates a write success rate P sw Output.
[0048] Based on the above success rate model, the temperature T, voltage V, current flow time t, and write success rate P swIt can be seen that is expressed by a nonlinear function. Therefore, in order to make it possible to predict a nonlinear function, the prediction model may be configured with a multilayer neural network. The structure of the multilayer neural network is not limited, but for example, a forward propagation type neural network with 8 layers and 4 nodes can be used. However, the number of layers and the number of nodes are not limited to these, and may be designed arbitrarily depending on the amount of calculation and prediction accuracy.
[0049] The prediction model can be trained using training data obtained by performing write operations in advance at various temperatures T, voltages V, and current inflow times t and associating the write success rate with the temperatures T, voltages V, and current inflow times t. The prediction model may continue to use a trained prediction model trained offline, or may be retrained online every time a write operation is performed.
[0050] The trained prediction model may be incorporated as hardware into a control unit of a semiconductor device using an MTJ element. In order to enable the prediction model to be retrained, the model parameters of the prediction model may be stored in a non-volatile storage unit. The storage unit that stores the model parameters may be the VR-NVFF to be controlled or may be another storage unit.
[0051] In this embodiment, the energy consumption E store A current flow time that minimizes t (hereinafter referred to as "optimum current flow time") is searched for. The optimum current flow time is the shortest current flow time t among the current flow times t at which the write success rate is predicted to be nearly 100%. In this embodiment, the current flow time t in the write operation to the MTJ element is determined according to the optimum current flow time searched for.
[0052] Furthermore, in this embodiment, the prediction model is re-learned based on the temperature T, voltage V, current flow time t, and write result (success or failure) when the write operation is performed. This makes it possible to optimize the prediction model for the operating environment of the semiconductor device as the write operation is repeated.
[0053] <Functional configuration of semiconductor device> The functional configuration of the semiconductor device in this embodiment will be described with reference to Fig. 3. Fig. 3 is a block diagram showing an example of the functional configuration of the semiconductor device.
[0054] 3, the semiconductor device 1 in this embodiment includes N (≧1) nonvolatile flip-flops 2 and a control unit 3. The nonvolatile flip-flops 2 are nonvolatile devices that can retain data even when the power is turned off. The nonvolatile flip-flops 2 are, for example, VR-NVFFs. The control unit 3 controls the operation of the nonvolatile flip-flops 2.
[0055] 3 shows an example in which the semiconductor device 1 includes N nonvolatile flip-flops 2, but there is no limit to the number of nonvolatile flip-flops 2 included in the semiconductor device 1. When multiple nonvolatile flip-flops 2 are included, the control unit 3 only needs to control all of the nonvolatile flip-flops 2.
[0056] The nonvolatile flip-flop 2 includes a flip-flop unit 21, a nonvolatile element unit 22 (an example of a nonvolatile memory unit), and a verification circuit unit 23. The control unit 3 includes an acquisition unit 31, a prediction circuit unit 32, a determination unit 33, a memory control unit 34, and a learning circuit unit 35.
[0057] The flip-flop unit 21 is a volatile storage unit configured with a flip-flop circuit.
[0058] The nonvolatile element section 22 is a nonvolatile storage section composed of two MTJ elements.
[0059] The verification circuit unit 23 compares and verifies the value held by the flip-flop unit 21 and the value held by the non-volatile element unit 22, and outputs a verification result. The verification result output by the verification circuit unit 23 is a truth value indicating whether the value held by the flip-flop unit 21 and the value stored in the non-volatile element unit 22 are the same or not.
[0060] The acquiring unit 31 acquires state information indicating the state of the semiconductor device 1. The state information includes temperature data obtained by measuring the temperature of the semiconductor device 1 and voltage data indicating the power supply voltage of the semiconductor device 1. The temperature data can be acquired from a temperature sensor included in the semiconductor device 1. The voltage data can be acquired from the power supply of the semiconductor device 1.
[0061] In the above-mentioned success rate model, the temperature of the MTJ element is used as a parameter, but it is difficult to measure the temperature of the MTJ element itself. On the other hand, the temperature that can be measured by the temperature sensor of the semiconductor device 1 can be regarded as the same as the temperature of the MTJ element. Therefore, in this embodiment, the temperature measured by the temperature sensor provided in the semiconductor device 1 is used as the temperature of the MTJ element.
[0062] The prediction circuit unit 32 predicts the write success rate of the non-volatile element unit 22 based on the state information output by the acquisition unit 31. Specifically, the prediction circuit unit 32 predicts the write success rate by inputting the temperature, voltage, and current inflow time into a trained prediction model. The temperature and voltage to be input into the prediction model are acquired from the temperature data and voltage data included in the state information. The current inflow time to be input into the prediction model is selected by the determination unit 33.
[0063] The determination unit 33 determines the current inflow time based on the prediction result of the write success rate by the prediction circuit unit 32. Specifically, the determination unit 33 selects the current inflow time to be predicted, and obtains the prediction result of the write success rate at that current inflow time from the prediction circuit unit 32. The determination unit 33 repeatedly obtains the prediction result of the write success rate while changing the current inflow time, and searches for the optimal current inflow time that minimizes the energy consumption of the store operation.
[0064] The determining unit 33 determines the current flow time in the write operation to the MTJ element based on the searched optimal current flow time. Specifically, the memory control unit 34 determines the optimal current flow time as the current flow time in the long-time write operation (second current flow time). The memory control unit 34 also determines a current flow time shorter than the optimal current flow time as the current flow time in the short-time write operation (first current flow time).
[0065] The memory control unit 34 controls the store operation according to the current flow time determined by the determination unit 33. In other words, the memory control unit 34 executes a short-time write operation according to the first current flow time determined by the determination unit 33. Moreover, the memory control unit 34 executes a long-time write operation according to the second current flow time determined by the determination unit 33.
[0066] The learning circuit unit 35 re-learns the prediction model based on the result of the write operation by the memory control unit 34. Specifically, every time the memory control unit 34 executes a short-time write operation or a long-time write operation, the learning circuit unit 35 acquires a verification result from the verification circuit unit 23 of the nonvolatile flip-flop 2 and determines whether the write operation is successful or not. The learning circuit unit 35 also calculates a write success rate based on the number of nonvolatile flip-flops 2 for which the write operation was successful. The write success rate is M / N, where M (≦N) is the number of nonvolatile flip-flops 2 for which the write operation was successful. Then, the learning circuit unit 35 generates learning data that associates the write success rate with the temperature, voltage, and current flow time when the write operation was executed.
[0067] Then, the learning circuit unit 35 updates the model parameters of the prediction model based on the generated learning data. Specifically, the learning circuit unit 35 predicts the write success rate using the prediction circuit unit 32 based on the temperature, voltage, and current flow time included in the learning data. Next, the learning circuit unit 35 calculates the error between the predicted result of the write success rate and the write success rate included in the learning data. Then, the learning circuit unit 35 updates the model parameters of the prediction model so as to minimize the error. The model parameters may be updated based on, for example, an error backpropagation method or the like.
[0068] <Store operation procedure> A store operation executed by the semiconductor device 1 in this embodiment will be described with reference to Figure 4 and Figure 5. Figure 4 is a flowchart showing an example of a store operation in this embodiment.
[0069] In step S11, the control unit 3 of the semiconductor device 1 executes a process of determining a current flow time. The process of determining a current flow time is a process of determining a current flow time in a write operation to the nonvolatile element unit 22.
[0070] <Determination process of current flow time> The process of determining the current flow time (step S11 in FIG. 4) will be described in more detail with reference to FIG 5. FIG 5 is a flow chart showing an example of the determination process.
[0071] In step S21, the acquisition unit 31 of the control unit 3 acquires temperature data from a temperature sensor included in the semiconductor device 1. Next, the acquisition unit 31 acquires voltage data from a power supply of the semiconductor device 1. Then, the acquisition unit 31 sends state information including the temperature data and the voltage data to the prediction circuit unit 32.
[0072] In step S22, the determination unit 33 of the control unit 3 selects the current inflow time to be predicted. In the first step S22, the determination unit 33 may select a predetermined initial value of the current inflow time. The initial value of the current inflow time may be determined when the prediction model is learned. Then, the determination unit 33 sends the selected current inflow time to the prediction circuit unit 32.
[0073] In step S23, the prediction circuit unit 32 of the control unit 3 receives the state information from the acquisition unit 31. The prediction circuit unit 32 also receives the current inflow time from the determination unit 33. Next, the prediction circuit unit 32 acquires the temperature and voltage from the state information. Then, the prediction circuit unit 32 inputs the temperature, voltage, and current inflow time to the trained prediction model. The prediction model predicts the write success rate based on the temperature, voltage, and current inflow time, and outputs the prediction result.
[0074] In step S24, the determination unit 33 of the control unit 3 determines whether the prediction result output by the prediction circuit unit 32 satisfies a predetermined condition. If the prediction result of the writing success rate satisfies the predetermined condition (YES), the determination unit 33 of the control unit 3 proceeds to step S25. On the other hand, if the prediction result of the writing success rate does not satisfy the predetermined condition (NO), the determination unit 33 of the control unit 3 returns the process to step S22.
[0075] The predetermined condition is a condition for determining whether the predicted optimal current flow time is optimal or not. The predetermined condition is, for example, that the write success rate is equal to or greater than a predetermined threshold, and the difference from the predetermined threshold is within a predetermined range. The threshold for the write success rate may be set to a value close to 100%. The threshold is, for example, 99.999%.
[0076] The longer the current flow time, the higher the success rate of writing to an MTJ element. On the other hand, when the write success rate approaches 100%, the improvement in the success rate becomes small even if the current flow time is extended. Therefore, it is advisable to consider the balance between the write success rate and the current flow time (i.e., the amount of energy consumed) and search for the shortest current flow time that has a high probability of successful writing.
[0077] In step S22 from the second time onwards, the current inflow time to be predicted is reselected based on the prediction result output by the prediction circuit unit 32 in step S23. For example, if the prediction result of the write success rate is less than a predetermined threshold, the determination unit 33 may select a current inflow time longer than the previous time. Also, for example, if the prediction result of the write success rate is equal to or greater than a predetermined threshold and outside a predetermined range, the determination unit 33 may select a current inflow time shorter than the previous time.
[0078] In step S25, the determination unit 33 of the control unit 3 determines the current inflow time when the predicted result of the write success rate satisfies a predetermined condition as the optimal current inflow time. Next, the determination unit 33 determines the first current inflow time and the second current inflow time based on the optimal current inflow time. Then, the determination unit 33 sets the first current inflow time and the second current inflow time in the memory control unit 34.
[0079] Returning to Fig. 4, in step S12, the control unit 3 of the semiconductor device 1 verifies whether or not writing to the nonvolatile element unit 22 is necessary. Specifically, the control unit 3 causes the verification circuit unit 23 of the nonvolatile flip-flop 2 to compare and verify the value held by the flip-flop unit 21 with the value stored in the nonvolatile element unit 22, and outputs the verification result.
[0080] When the verification result output by the verification circuit unit 23 indicates that the value held by the flip-flop unit 21 and the value stored in the non-volatile element unit 22 are different, the control unit 3 determines that it is necessary to write to the non-volatile element unit 22. On the other hand, when the verification result output by the verification circuit unit 23 indicates that the value held by the flip-flop unit 21 and the value stored in the non-volatile element unit 22 are equal, the control unit 3 determines that it is not necessary to write to the non-volatile element unit 22.
[0081] If it is determined that writing to the non-volatile element unit 22 is necessary (YES), the control unit 3 proceeds to step S13. On the other hand, if it is determined that writing to the non-volatile element unit 22 is not necessary (NO), the control unit 3 ends the store operation.
[0082] In step S13, the control unit 3 of the semiconductor device 1 executes a short-time write operation in the nonvolatile flip-flop 2. Specifically, the memory control unit 34 of the control unit 3 writes the value held by the flip-flop unit 21 to the nonvolatile element unit 22 for the first current flow time determined in step S11.
[0083] In step S14, the control unit 3 of the semiconductor device 1 re-learns the prediction model based on the write result of the short-time write operation executed in step S13. Specifically, the control unit 3 causes the verification circuit unit 23 of the nonvolatile flip-flop 2 to compare and verify the value held by the flip-flop unit 21 with the value stored in the nonvolatile element unit 22, and outputs the verification result.
[0084] If the verification result output by the verification circuit unit 23 indicates that the value held by the flip-flop unit 21 is equal to the value stored in the non-volatile element unit 22, the learning circuit unit 35 determines that the short-time write operation has been successful. On the other hand, if the verification result output by the verification circuit unit 23 indicates that the value held by the flip-flop unit 21 is different from the value stored in the non-volatile element unit 22, the learning circuit unit 35 determines that the short-time write operation has failed.
[0085] Next, the learning circuit unit 35 calculates the write success rate M / N, where M is the number of nonvolatile flip-flops 2 in which the write operation was successful. The learning circuit unit 35 associates the write success rate with the temperature, voltage, and current flow time when the short-time write operation was performed. This generates learning data.
[0086] Next, the learning circuit unit 35 predicts the write success rate based on the temperature, voltage, and current flow time included in the learning data. Next, the learning circuit unit 35 calculates the error between the predicted result of the write success rate and the write success rate included in the learning data. Then, the learning circuit unit 35 updates the model parameters of the prediction model so as to minimize the error.
[0087] Note that the prediction model learned offline may be continued to be used without re-learning the prediction model, in which case the control unit 3 may skip step S14 and proceed to step S15.
[0088] In step S15, the control unit 3 of the semiconductor device 1 determines the write result of the short-time write operation executed in step S13. If the short-time write operation is successful (YES), the control unit 3 ends the store operation. On the other hand, if the short-time write operation is unsuccessful (NO), the control unit 3 proceeds to step S16.
[0089] In step S16, the control unit 3 of the semiconductor device 1 determines whether the counter indicating the number of writes is less than a predetermined threshold. If the counter is less than the threshold (YES), the control unit 3 increments the counter and proceeds to step S18. On the other hand, if the counter is equal to or greater than the threshold (NO), the control unit 3 proceeds to step S17.
[0090] In step S17, the control unit 3 of the semiconductor device 1 issues an interrupt and interrupts the store operation.
[0091] In step S18, the control unit 3 of the semiconductor device 1 executes a long-term write operation in the nonvolatile flip-flop 2. Specifically, the memory control unit 34 of the control unit 3 writes the value held by the flip-flop unit 21 to the nonvolatile element unit 22 for the second current flow time determined in step S11.
[0092] After causing the control unit 3 of the semiconductor device 1 to execute the long-time write operation in the nonvolatile flip-flop 2, the control unit 3 returns the process to step S14. In step S14 after executing the long-time write operation, the control unit 3 re-learns the prediction model based on the write result of the long-time write operation executed in step S18. Thereafter, the control unit 3 repeatedly executes the long-time write operation until the write to the nonvolatile element unit 22 is successful or the counter reaches the upper limit number of times.
[0093] <Effects of the embodiment> The semiconductor device 1 in this embodiment predicts the write success rate for the nonvolatile element unit 22 based on the state of the semiconductor device 1, and controls the write operation for the nonvolatile element unit 22 based on the prediction result. For example, if the write operation is controlled so as to minimize the energy consumption according to the state of the semiconductor device 1, it is possible to reduce the energy consumption in the write operation. Therefore, according to this embodiment, it is possible to reduce the energy consumption in the write operation for the nonvolatile element unit 22.
[0094] The semiconductor device 1 in this embodiment predicts the write success rate based on the state of the semiconductor device 1 and the current flow time to the nonvolatile element unit 22, and executes the write operation at the current flow time at which the write success rate is equal to or greater than a threshold value. Therefore, according to this embodiment, it is possible to minimize the energy consumption in the write operation to the nonvolatile element unit 22 within a range in which a predetermined write success rate can be maintained.
[0095] The state of the semiconductor device 1 in this embodiment includes the temperature of the nonvolatile element unit 22 and the voltage of the semiconductor device 1. Therefore, according to this embodiment, it is possible to reduce energy consumption in a write operation to the nonvolatile element unit 22 according to the temperature of the nonvolatile element unit 22 and the voltage of the semiconductor device 1.
[0096] In this embodiment, the nonvolatile element unit 22 includes a magnetic tunnel junction element. Therefore, according to this embodiment, it is possible to reduce energy consumption in a write operation to the nonvolatile element unit 22 including the magnetic tunnel junction element.
[0097] The semiconductor device 1 in this embodiment predicts the write success rate using a machine learning model that uses temperature, voltage, and current flow time as explanatory variables and the write success rate as a response variable. Therefore, according to this embodiment, the write success rate can be predicted based on the temperature of the nonvolatile element unit 22, the voltage of the semiconductor device 1, and the current flow time to the nonvolatile element unit 22.
[0098] The semiconductor device 1 in this embodiment re-learns the machine learning model based on the result of the write operation. Therefore, according to this embodiment, the prediction model can be optimized according to the operating environment of the semiconductor device 1.
[0099] The machine learning model in this embodiment is a multi-layer neural network. Therefore, according to this embodiment, even if the state of the semiconductor device 1 and the write success rate have a nonlinear relationship, the write success rate can be predicted based on the state of the semiconductor device 1.
[0100] [supplement] In the above embodiment, a configuration for reducing energy consumption in a write operation to a nonvolatile element unit has been described for a semiconductor device having a VR-NVFF. However, a nonvolatile device to which an embodiment of the present disclosure can be applied is not limited to a VR-NVFF. An embodiment of the present disclosure can be applied to any semiconductor device that has a nonvolatile device whose write success rate varies depending on the state of the semiconductor device.
[0101] For example, an embodiment of the present disclosure can be applied to a semiconductor device including a NVFF other than a VR-NVFF. Examples of NVFFs other than a VR-NVFF include a PSM-NVFF (pseudo-spin-MOSFETs NVFF). In addition, for example, an embodiment of the present disclosure can be applied to a semiconductor device including a nonvolatile device such as a magnetoresistive random access memory (MRAM) or a ferroelectric random access memory (FeRAM).
[0102] Although the embodiments of the present invention have been described in detail above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]
[0103] 1 Semiconductor device 2 Non-volatile Flip-Flops 3. Control Unit 21 Flip-flop section 22 Non-volatile element section 23 Verification Circuit Section 31 Acquisition Department 32 Prediction Circuit Section 33 Decision Section 34 Memory control unit 35 Learning circuit section
Claims
1. A semiconductor device including a non-volatile memory unit, a prediction circuit unit that predicts a write success rate for the non-volatile memory unit based on state information indicating a state of the semiconductor device; a storage control unit that controls a write operation to the non-volatile storage unit based on the predicted write success rate; A semiconductor device comprising:
2. 2. The semiconductor device according to claim 1, the prediction circuit unit predicts the write success rate based on the state information and a current flow time to the nonvolatile storage unit; the memory control unit executes the write operation during the current flow time when the write success rate is equal to or greater than a threshold value. Semiconductor device.
3. 3. The semiconductor device according to claim 2, the state includes a temperature of the nonvolatile storage unit and a voltage of the semiconductor device; Semiconductor device.
4. 4. The semiconductor device according to claim 2, The nonvolatile storage unit includes a magnetic tunnel junction element. Semiconductor device.
5. 4. The semiconductor device according to claim 3, the prediction circuit unit predicts the write success rate using a machine learning model that has the temperature, the voltage, and the current flow time as explanatory variables and the write success rate as a response variable; Semiconductor device.
6. 6. The semiconductor device according to claim 5, Further comprising a learning circuit unit that updates model parameters of the machine learning model based on a result of the write operation. Semiconductor device.
7. 7. The semiconductor device according to claim 5, The machine learning model is a multi-layer neural network. Semiconductor device.
Citation Information
Patent Citations
Method for operating memory device
JP2003263893A
Method and system for storing information
JP2006510153A
Determining and storing bit error rate relationships in spin transfer torque magnetoresistive random-access memory (STT-MRAM)
US20150206566A1
Semiconductor device
JP2018101456A
