DEVICE, SENSOR NODE AND PROCESSING METHOD IN MICROCONTROLLER
The MCU configuration with MRAM, non-volatile CPU, and FPGA-ACC, along with power gating and an access controller, addresses the power and performance issues of existing MCUs, enabling efficient data processing and transfer for sensor nodes.
Patent Information
- Application Number
- JP2020572357
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-02-16
- Filing Date
- 2020-02-15
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2040-02-15
AI Technical Summary
Existing MCUs are not suitable for sensor nodes that process large amounts of received signals due to high power consumption and inadequate performance in data transfer and processing.
A microcontroller unit (MCU) configuration using MRAM with divided memory cells, non-volatile CPU, and FPGA-ACC, combined with power gating control and an access controller for efficient data transfer and processing, achieving low power consumption and high performance.
The MCU achieves high computational performance (several hundred MHz) with low power consumption (100 μW or less) by utilizing non-volatile memory and power gating, enhancing data transfer efficiency and reducing unnecessary power consumption.
Smart Images

Figure 0007541731000005 
Figure 0007541731000013 
Figure 0007541731000030
Abstract
Description
[Technical field]
[0001] The present invention relates to a device, a sensor node, an access controller, a data transfer method, and a processing method in a microcontroller, and more particularly to a microcontroller unit (MCU) and a sensor node as devices that can be used with lower power and higher performance in IoT (Internet-of-Things) applications, an access controller, a data transfer method, and a processing method in a microcontroller. 。 [Background technology]
[0002] There is a demand for low-power, high-performance microcontroller units that can be applied to sensor nodes that require a power supply. In response to this demand, research and development has been conducted into the use of non-volatile memory mounted on MCUs (Non-Patent Documents 1 to 5). For example, Non-Patent Document 1 discloses a non-volatile MCU that has been demonstrated to operate at 32 bits at 30 MHz, and Non-Patent Document 2 discloses a non-volatile MCU that has been demonstrated to operate at 8 bits at 100 MHz. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] T. Onuki, et al., "Embedded Memory and ARM Cortex-M0 Core Using 60-nm C-Axis Aligned Crystalline Indium-Gallium-Zinc Oxide FET Integrated With 65-nm Si CMOS," JSSC, vol.52, Iss.4, pp.925-932, 2017. [Non-Patent Document 2] Y. Liu, et al., "A 65nm ReRAM-Enabled Nonvolatile Processor with 6× Reduction in Restore Time and 4× Higher Clock Frequency Using Adaptive Data Retention and Self-Write-Termination Nonvolatile Logic," ISSCC, pp.84-86, 2016. [Non-Patent Document 3] Y. Tsuji, et al., "Sub-μW Standby Power, <18 μW / DMIPS@25MHz MCU with Embedded Atom-switch Programmable Logic and ROM," Symp. VLSI Tech., pp.T86-T87, 2015. [Non-Patent Document 4] V. Singhal, et al., "A 10.5μA / MHz at 16MHz Single-Cycle Non-Volatile Memory Access Microcontroller with Full State Retention at 108nA in a 90nm Process," ISSCC, pp.148-150, 2015. [Non-Patent Document 5] N. Sakimura, et al., "A 90nm 20MHz Fully Nonvolatile Microcontroller for Standby-Power-Critical Applications," ISSCC, pp.184-186, 2014. Summary of the Invention [Problem to be solved by the invention]
[0004] However, the performance of the MCUs disclosed in these documents is not suitable for sensor nodes that process large amounts of received signals and extract useful information, because it is not possible to reduce the amount of data transferred to the data center.
[0005] Therefore, an object of the present invention is to provide a low-power, high-performance device applicable to a sensor node and a sensor node using the same, as well as an access controller, a data transfer method, and a processing method in a microcontroller related thereto. [Means for solving the problem]
[0006] The concept of the present invention is as follows. [1] An MRAM in which multiple memory cells are divided into multiple regions, each containing a select transistor and an MTJ; A non-volatile CPU including a non-volatile memory; A non-volatile FPGA-ACC including a non-volatile memory and executing a part of the arithmetic processing of the non-volatile CPU; a power gating control unit that controls power supply to each memory cell in the MRAM, the non-volatile CPU, and the non-volatile FPGA-ACC; A device comprising: [2] The device described in [1], wherein the non-volatile CPU sends data to the MRAM, causing the non-volatile FPGA-ACC to read the data from the MRAM, and the non-volatile FPGA-ACC sends data to the MRAM, causing the non-volatile CPU to read the data from the MRAM. [3] The device described in [1] or [2], wherein the non-volatile FPGA has a non-volatile memory function by which configuration data is stored. [4] The device described in any one of [1] to [3], wherein each memory cell of the MRAM is composed of a 2T-2MTJ including two of the select transistors and two of the MTJs. [5] A device described in any one of [1] to [4], wherein each of the multiple regions in the MRAM is composed of divided block units and power gating is performed on a block basis. [6] The device described in any one of [1] to [5], wherein the non-volatile FPGA has a tile that performs part of the calculations on the non-volatile CPU, and a DSP (Digital Signal Processor) that performs part of the calculations on the non-volatile CPU faster than the tile. [7] The device described in any one of [1] to [6], further comprising an access controller that controls access to the MRAM by reading and storing data in advance when reading from the MRAM. [8] The device described in [7], wherein when the access controller receives a data read command from the non-volatile CPU, it determines whether the data has already been read from the MRAM, and if it has already been read, it transmits the stored data to the non-volatile CPU. [9] The access controller: an address holding register for holding an address of the MRAM to be read when the address is received; a multiplexer that outputs to the MRAM so as to read out a plurality of designated destinations of the MRAM held in the address holding register; A plurality of data holding registers for holding data read from the MRAM; a comparator for, when receiving a read command together with a read destination specification, comparing an address related to the read destination specification with a read address stored in the address storage register; Equipped with The device according to [7] or [8], wherein when a read command is received together with a specification of a read destination, if the comparator determines that data has already been read from the MRAM, the device outputs data that has already been read and stored in any one of the plurality of data holding registers in response to the read command.
[10] The access controller further comprises a prefetch address generator coupled to the multiplexer; The prefetch address generator generates an address including a read destination address held in the address holding register, as described in [9] above. device .
[11] The device described in any one of [1] to
[10] above, which can be used with an average power of 100 μW or less.
[12] The device according to any one of [1] to
[11] , wherein the intermittent operation interval can be set to 100 ms or less.
[13] A sensor node configured to include a device according to any one of [1] to
[12] above.
[14] An address register for storing an address of the MRAM to be read when the address is received; a multiplexer that outputs to the MRAM so as to read out a plurality of destinations of the MRAM held in the address holding register; A plurality of data holding registers for holding data read from the MRAM; a comparator for, when receiving a read command together with a read destination specification, comparing an address related to the read destination specification with a read address stored in the address storage register; Equipped with an access controller that, when receiving a read command together with a specification of a read destination, outputs data that has already been read from the MRAM and that is held in one of the plurality of data holding registers in response to the read command if the comparator determines that the data has already been read from the MRAM.
[15] further comprising a prefetch address generator connected to the multiplexer; The access controller according to
[14] , wherein the prefetch address generator generates an address including a read destination address held in the address holding register.
[16] A data transfer method between a CPU and MRAM via an access controller, When the access controller receives a data read command together with a read address from the CPU, the access controller reads data at a plurality of addresses including the read address from the MRAM in advance; When a data read command is received from the CPU along with the next read address, the data transfer method determines whether the data has already been read, and if the command is to read data that has already been read, the data that has already been read is used as a response to the read command without reading from the MRAM.
[17] A processing method for a microcontroller having a non-volatile CPU, an MRAM, and a non-volatile FPGA-ACC as a reconfigurable computing module, An area for storing data exchanged between the non-volatile CPU and the non-volatile FPGA-ACC is set in the MRAM, Data input from the non-volatile CPU to the non-volatile FPGA-ACC is written to the area; A signal indicating that preparation for writing and starting calculation is completed is passed from the non-volatile CPU to the non-volatile FPGA-ACC; The non-volatile FPGA-ACC starts an operation using the data written in the area, After the calculation is completed, the calculation result of the non-volatile FPGA-ACC is passed to the non-volatile CPU using the area. A processing method in a microcontroller.
[18] The processing method for the microcontroller described in
[17] , wherein the non-volatile CPU and the non-volatile FPGA-ACC are subjected to power gating control.
[19] The processing method for a microcontroller according to
[18] , wherein the power gating control does not include data saving and restoration operations.
[20] A processing method in a microcontroller according to any one of claims
[17] to
[19] , wherein the arithmetic processing by the non-volatile FPGA-ACC relates to any one of Laplacian filter, DCT (Discrete Cosine Transform), FIR (Finite Impulse Response) filter and FFT (Fast Fourier Transform).
[21] A processing method for a microcontroller according to any one of
[17] to
[20] , wherein sequential processing according to a sequence is processed in parallel by the non-volatile CPU and a non-volatile FPGA-based accelerator. Effect of the Invention
[0007] According to the present invention, since the MRAM, NV-CPU, and NV-FPGA are configured using non-volatile memory cells, wasteful power consumption can be eliminated by power gating, which stops the power supply to each module of the MRAM, NV-CPU, and NV-FPGA, i.e., non-operating parts, by the power gating control unit, without evacuating the data stored in the memory cells of the MRAM, NV-CPU, and NV-FPGA. In addition, the reconfigurable arithmetic module equipped with the NV-FPGA can realize various signal processing at high speed. Furthermore, the access controller can make the data transfer between the NV-CPU and MRAM more efficient, thereby enabling the system as a whole to be faster. In this way, according to the present invention, it is possible to provide a low-power, high-performance device and a sensor node using the same. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a configuration diagram of a device according to an embodiment of the present invention. [Diagram 2]FIG. 2 is a diagram for explaining the concept of the present invention, in which FIG. 2A is a diagram showing power over time when configured based on a conventional CMOS, FIG. 2B is a diagram showing power over time when power gating is performed in FIG. 2A, and FIG. 2C is a diagram showing power over time when power gating is performed after the volatile memory portion in FIG. 2A is replaced with non-volatile memory. [Diagram 3] FIG. 3 is a diagram for explaining the concept of the present invention. FIG. 3A is a diagram showing power consumption over time when sequential processing is performed on a CPU with power gating, and FIG. 3B is a diagram showing power consumption over time when the processing is performed by an FPGA incorporated in a device. [Figure 4] FIG. 4 is a diagram showing the configuration of a system using sensor nodes. [Diagram 5] FIG. 5 is a diagram showing the configuration of a sensor node. [Figure 6] FIG. 6 is a diagram showing a specific configuration of FIG. [Figure 7] FIG. 7 is a diagram showing a specific configuration of STT-MRAM. [Figure 8] FIG. 8 is a diagram showing the operation waveforms of the STT-MRAM. [Figure 9] FIG. 9 is a diagram for explaining an access controller (Accelerator) between the CPU and the MRAM. [Figure 10] FIG. 10 is a diagram showing the transition of data transfer, and FIGS. 10A to 10F are diagrams showing each state. [Figure 11] FIG. 11 shows an example of data flow, where FIG. 11A shows the case of 16-bit instructions allocated to consecutive memory addresses, and FIG. 11B shows the case of 32-bit instructions allocated to consecutive memory addresses. [Figure 12] FIG. 12 shows a simulation waveform in the access controller. [Figure 13] Figure 13 is a chart comparing the power consumption of a system consisting of an access controller, MRAM, and NV-CPU with that of a conventional system. [Figure 14]FIG. 14 is a cross-sectional view showing an MTJ device used in the NV-CPU. [Figure 15] FIG. 15 is an example of a non-volatile flip-flop circuit. [Figure 16] FIG. 16 is a diagram showing a simulation waveform. [Figure 17] FIG. 17 is a diagram showing the operation of a flip-flop. [Figure 18] FIG. 18 is a diagram showing a write operation. [Figure 19] FIG. 19 is a diagram showing a read operation. [Figure 20] FIG. 20 is a diagram showing the details of the NV-FPGA. [Figure 21] FIG. 21 is a diagram showing the configuration of one tile in the NV-FPGA. [Figure 22] FIG. 22 is a diagram showing an example of a circuit including a wiring switch circuit. [Diagram 23] FIG. 23 is a block diagram of a 6-input LUT circuit. [Figure 24] FIG. 24 is a diagram illustrating an example of a non-volatile flip-flop circuit. [Figure 25A] FIG. 25A illustrates the THROUGH phase (CLK=1 and CLK'=0) of the operation of the circuit of FIG. [Figure 25B] FIG. 25B illustrates the HOLD phase (CLK=0 and CLK'=1) of the operation of the circuit of FIG. [Figure 25C] FIG. 25C illustrates the STORE phase of operation of the circuit of FIG. [Figure 25D] FIG. 25D illustrates the RESTORE phase of operation of the circuit of FIG. [Figure 26] FIG. 26 is a diagram showing the circuit configuration of the DSP core. [Figure 27] FIG. 27 is an image of a chip produced as an example. [Figure 28] FIG. 28 is a diagram showing the measured waveform. [Figure 29]FIG. 29 shows a Shmoo Plot. [Diagram 30] FIG. 30 is a diagram showing the relationship between the intermittent operation interval and the average power. [Diagram 31] FIG. 31 is a diagram showing the power obtained by energy harvesting for each energy source. [Diagram 32] FIG. 32 is a diagram showing the power required for each process of a Laplacian filter, a Discrete Cosine Transform (DCT), a Finite Impulse Response (FIR) filter, and a Fast Fourier Transform (FFT). [Diagram 33] FIG. 33 is a chart comparing this embodiment with the conventional examples (Non-Patent Documents 1 to 5). [Diagram 34] FIG. 34 is a diagram showing the relationship between the operating frequency and the average power consumption when an IoT application is assumed, from the graph in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Design changes can be made to the matters described in the embodiments of the present invention without changing the scope of the present invention.
[0010] 1 is a block diagram of a device according to an embodiment of the present invention. As shown in FIG. 1, the device 1 according to the embodiment of the present invention includes an STT-MRAM (Spin Transfer Torque-Magnetoresistive Random Access Memory) 2 as an MRAM, an NV-CPU (Nonvolatile Central Processing Unit) 3, an NV-FPGA (Nonvolatile Field-Programmable Gate Array) 4, a power gating control unit 5 that controls power supply to each memory cell in the STT-MRAM 2, the NV-CPU 3, and the NV-FPGA 4, and an access controller 6 that controls access to the STT-MRAM 2 by reading and storing data in advance when reading from the STT-MRAM 2. The access controller 6 is involved in access to the STT-MRAM 2, and these modules are connected by a bus 7.
[0011] In the device 1 according to the embodiment of the present invention, specifically in the MCU (Microcontroller Unit), the NV-CPU3 transmits data to the STT-MRAM2, which causes the NV-FPGA4 to read the data from the STT-MRAM2, and the NV-FPGA4 transmits data to the STT-MRAM2, which causes the NV-CPU3 to read the data from the STT-MRAM2. This means the following. That is, the calculation results in the NV-CPU3 are stored in the STT-MRAM2, the NV-FPGA4 performs further calculations using the calculation results stored in the STT-MRAM2 and returns the results to the STT-MRAM2, and the NV-CPU3 receives the calculation results in the NV-FPGA4 from the STT-MRAM2.
[0012] In the embodiment of the present invention, it is possible to provide a microcomputer that simultaneously realizes high computing performance (e.g., several hundred MHz, such as 200 to 300 MHz) and low power consumption performance (e.g., 100 μW or less), which is suitable for sensor nodes, etc. Low power consumption performance may be effective to a certain extent because standby power can be reduced by using non-volatile memory other than MRAM. However, high-speed writing and high-speed reading cannot be achieved when non-volatile memory other than MRAM is used.
[0013] Therefore, in an embodiment of the present invention, in order to achieve a computing performance of several hundred MHz, the MCU as the device 1 employs MRAM, preferably STT-MRAM2, as an area for storing data related to the computations in the CPU and FPGA.
[0014] The device 1 can also be called a non-volatile microcomputer chip, a non-volatile microcomputer, or a non-volatile microcontroller unit.
[0015] The STT-MRAM2 is configured by dividing a plurality of memory cells into a plurality of regions, each including a selection transistor and a magnetic tunneling junction (MTJ). Preferably, the STT-MRAM2 is configured of a plurality of subarray blocks, and a switch for turning on / off the power from a power supply unit (not shown) is provided for each block. The power gating control unit 5 can perform power gating on the STT-MRAM2 in block units. The block units here refer to block units into which each of the plurality of regions in the MRAM is divided, and refer to the MRAM subarrays constituting MRAM0 and MRAM1 in FIG. 9.
[0016] The memory part of the NV-CPU3 mounted on this module is entirely composed of non-volatile memory. The NV-CPU3 is provided with a switch for turning on / off the power from a power supply unit (not shown) for the entire module. Since the NV-CPU3 is composed of non-volatile memory, it is not necessary to save and write data in the CPU when turning on / off the switch (i.e., for each power gating), and power gating control can be performed. Naturally, since data is not saved and written, there is no power consumption. In devices that perform a certain amount of operation intermittently and enter a standby state between processes, particularly in IoT sensor nodes, it is particularly effective because data saving and writing is not required when performing power gating control.
[0017] The NV-FPGA4 is configured to include a non-volatile memory. The NV-FPGA4 is provided with a switch for power gating for each tile, and can turn on / off power from a power supply unit (not shown). In addition, when the NV-FPGA4 is equipped with a DSP, the DSP is provided with a switch for turning on / off power from a power supply unit (not shown). Since the NV-FPGA4 is configured to include a non-volatile memory, when turning on / off the switch (i.e., for each power gating), there is no need to save and write data in the FPGA, and there is no need to save and write configuration data. Since data and configuration data are not saved and written, there is no power consumption. In the case where a volatile FPGA is installed but a non-volatile FPGA is not installed as in the conventional case, saving and writing of data and configuration data is required for each power gating. However, in the embodiment of the present invention, since the FPGA is non-volatile, saving and writing of data and configuration data is not required for each power gating.
[0018] The power gating control unit 5 controls the power supply to each MRAM sub-array in the STT-MRAM 2, each tile in the NV-CPU 3 and the NV-FPGA 4, and the DSP, and supplies power only when a specified module is in operation.
[0019] Here, in the STT-MRAM2, it is preferable that each memory cell is composed of a 2T-2MTJ including two selection transistors and two MTJs. The STT-MRAM includes 1T-1MTJ, 2T-2MTJ, and 4T-4MTJ. The 4T-4MTJ is not preferable because a separate peripheral device is required for power gating, which consumes power. In contrast, the 1T-1MTJ and 2T-2MTJ are suitable because the cell configuration itself has a power gating function, but the 2T-2MTJ is preferable in terms of the number of bits to improve performance. Also, the 2T-2MTJ may have WL, BL, / BL, SL, and / SL on a cell unit basis, but it is preferable to have WL, BL, / BL, and SL on a cell unit basis, and to share SL and / SL, because this reduces the layout size. Also, since it is possible to set the write pulse width according to the write characteristics of the MTJ, it is possible to suppress and optimize the write current.
[0020] A certain concept of the device 1 according to the embodiment of the present invention will be described. FIG. 2 is a diagram for explaining the concept of the present invention. FIG. 2A is a diagram showing power versus time when configured based on a conventional CMOS. In the active state, it is the sum of the dynamic power portion and the static power portion, and in the non-active state, the static power portion occurs. When power gating is applied to this, as shown in FIG. 2B, static power is consumed only when the dynamic power portion occurs, and when dynamic power is not generated, static power is not consumed. However, in order to save data in the volatile memory and to write data to the volatile memory portion, separate power is generated before and after the active state. Therefore, if the volatile memory portion is made non-volatile memory, the saving and writing of data required in FIG. 2B is not necessary as shown in FIG. 2C.
[0021] Thus, in the embodiment of the present invention, this is realized by making the entire module in the device 1 non-volatile. Usually, an IoT sensor node performs a certain amount of operations intermittently and enters a standby state during each process. In a conventional CMOS-based architecture, since the internal memory is volatile, data transfer between the internal memory and the external memory is necessary for data backup before turning off the power. This data backup becomes unnecessary. Furthermore, in a completely non-volatile device (MCU), since all modules are non-volatile, an external memory is not required and stored data does not need to be transferred. Therefore, the power gating technology can be effectively applied with fine granularity, and unnecessary power consumption can be actively eliminated. Since the NV-FPGA 4 is configured to include a non-volatile memory, there is no need to save and write data in the FPGA for each power gating, and there is no need to save and write configuration data. In a device that performs a certain amount of operations intermittently and enters a standby state during each process, particularly an IoT sensor node, it is particularly effective because there is no need to save and write data when performing power gating control.
[0022] FIG. 3 is a diagram for further explaining the concept of the present invention. As shown in FIG. 3A, sequential processing on a CPU can only reduce power consumption due to power gating. However, as shown in FIG. 3B, by executing a part of the arithmetic processing of the CPU by the FPGA built into the device, the processing is accelerated and performance is improved. In this way, the sequence processing (sequential processing by sequence) for each operation interval is parallelized by the CPU and the FPGA-based accelerator (FPGA-ACC). Since the process time is greatly reduced by the parallel processing ("Processing time reduction by FPGA-ACC" in FIG. 3B), the time of power gating PG becomes longer, and the increase in the time of power gating due to parallel processing, that is, the time of the reduction in the process time by FPGA-ACC, both the static power part and the dynamic power part, become unnecessary. The unnecessary power of this reduction is much larger than the increase in power consumption due to the arithmetic processing of FPGA-ACC. In this way, by mounting the FPGA-ACC on a non-volatile microcomputer composed of an NV-CPU and MRAM, high arithmetic performance and low power consumption can be achieved. By shortening the process time, the usage time of the MRAM, which represents most of the power consumption, is shortened, and further power consumption reduction is realized. In this way, by making it possible to connect the NV-FPGA 4 to the NV-CPU 3 via the bus 7, sequence processing can be performed by parallel processing by the NV-CPU 3 and the NV-FPGA 4. In particular, in an IoT sensor node, as will be described later with reference to Figs. 4 and 5, it is preferable to reduce the amount of data by, for example, obtaining feature values or performing image processing in the end sensor node 110 and transmitting the data to the cloud device 140, which is a higher-level device, so that the sensor data does not need to be processed by the cloud device 140. In the embodiment of the present invention, since the sequence processing is performed by parallel processing by the NV-CPU 3 and the NV-FPGA 4, high calculation performance and low power consumption performance are realized, and application to an IoT sensor node is preferable.
[0023] This reduces the processing time for sequences at each operation interval, and further reduces power consumption. By configuring an MTJ on a CMOS, an ultra-low power consumption non-volatile FPGA can be realized.
[0024] As described above, a certain concept of the present invention is to realize a microcomputer that simultaneously realizes high computing performance (e.g., several hundred MHz, such as 200 to 300 MHz) and low power consumption performance (e.g., 100 μW or less), suitable for sensor nodes, etc. From the viewpoint of low power consumption performance, the use of non-volatile memory other than MRAM has a certain effect because standby power can be reduced. However, non-volatile memory other than MRAM cannot simultaneously realize computing performance of several hundred MHz because it cannot increase the write speed and read speed. In contrast, the use of MRAM realizes high speed because of high speed writing and reading, and furthermore, low power consumption due to non-volatility can be simultaneously realized, so that a microcomputer as a device composed of an NV-CPU, NV-FPGA, and MRAM memory according to an embodiment of the present invention exhibits a special effect.
[0025] In this way, in order to realize a microcontroller that combines high computing performance and low power consumption performance suitable for sensor nodes, particularly effective results can be achieved by implementing MRAM as memory in a microcontroller that is equipped with a CPU and FPGA and requires high computing performance.
[0026] Next, a sensor node using the device in Fig. 1 and a system using the same will be described. Fig. 4 is a configuration diagram of a system using the sensor node, and Fig. 5 is a configuration diagram of the sensor node. The system 100 is composed of one or more sensor nodes 110 attached to indoor and outdoor structures or worn by people or animals, a gateway (GW) 120 for connecting the sensor node 110 to a communication network 130 such as the Internet, and a higher-level device such as a cloud device 140 for storing and processing various information transmitted from the sensor node 110 via the communication network 130.
[0027] The sensor node 110 comprises a sensor element 111 that measures various physical quantities, an MCU 112 that processes data from the sensor element 111 and processes it into information, a communication unit 113 that outputs the information processed by the MCU 112 and various control data to the outside, and a power supply unit 114 that converts natural energy, artificially created vibrations, etc. into electricity and stores it.
[0028] 1, the MCU 112 can process data with low power consumption, eliminating the need to process sensor data in the cloud device 140. Instead, the sensor node 110 at the end can obtain features or perform image processing to reduce the amount of data before transmitting it to the cloud device 140, which is a higher-level device. This allows the amount of traffic to be significantly reduced.
[0029] Next, a specific configuration of the device 1 will be described. FIG. 6 is a configuration diagram that embodies FIG. 1. As shown in FIG. 6, the MCU 10 as a device includes an STT-MRAM 11, an NV-CPU 12, an NV-FPGA 13, an access controller 14 of the MEM4X, a bus 15, a PMU (Performance Monitoring Unit) 16, a system control (SYS CONTROL) 17, a bus matrix (AHB-MATRIX) 18, and, as peripheral devices of the CPU in the MCU, an ADC (Analog-Digital Converter) 19, a timer 20, a WDT (watchdog timer) 21, a UART (Universal Asynchronous Receiver / Transmitter) 22, and a serial bus (for example I 2 C The peripheral device includes a serial peripheral interface (SPI) 23, a general-purpose input / output (GPIO) 25, and a BIAS 26. The peripheral device serving as a CPU is an example, and may be configured separately.
[0030] FIG. 7 is a specific configuration diagram of the STT-MRAM 11. As shown in FIG. 7, the STT-MRAM 11 includes a left-side array (Left-Side Array) composed of MRAM subarrays and a right-side array (Right-Side Array) also composed of MRAM subarrays, and the MRAM itself is controlled by the Control. To access data stored at a specific address in the memory, the position (coordinates) of the memory cell where the data is stored is specified based on the address, which is input data. In Xpredec and Ypredec, signals corresponding to the coordinates indicating the position of the memory cell are generated based on the address, and further, in Xdec and Ydec, conversion to complementary signals required for actual access is performed, and then access to the target memory cell is executed. In this way, conversion from address to memory position is performed in two stages.
[0031] A Ydec is placed on the left and right of each of the Left-side Array and Right-side Array because the operation when reading memory data is different on the left and right. The outer Ydec injects a constant current into the memory cell to be read, and generates a voltage signal according to the state of the cell (i.e. the resistance state of the MTJ). This voltage signal is amplified by the sense amplifier (SA) attached to the inner Ydec, and the data from the memory cell to be read is extracted. In the diagram, the solid arrows are control signals, and the dotted arrows are data signals.
[0032] In this STT-MRAM 11, since there is no power supply line for each memory cell, no switch for power gating is provided.
[0033] In this STT-MRAM 11, as shown on the right side of FIG. 7, the WBT is shared between the left and right sides of each cell, so that the cell area can be reduced.
[0034] 8 is a diagram showing the operation waveforms of the STT-MRAM 11. Data is written by a write enable signal relative to the clock (CLK), and data is read by a read enable signal.
[0035] As described with reference to FIG. 1, when the access controller 6 receives a data read command from the NV-CPU 3, it judges whether the data has been read from the STT-MRAM 2 in advance, and if it has been read, it transmits the stored data to the NV-CPU 3. To explain the access controller 6 in detail, the access controller includes an address holding register, a multiplexer, a plurality of data holding registers, and a comparator, which are not shown in FIG. 1. When the access controller 6 receives an input of an address in the STT-MRAM 2 that is the read destination from the NV-CPU 3, it holds the address in the address holding register. When the multiplexer reads out the plurality of destinations in the STT-MRAM 2 that are specified by the address, it stores the data read from the STT-MRAM 2 in each data holding register. When the access controller 6 receives a new read command from the NV-CPU 3 together with the specification of the read destination, it compares the address held in the address holding register with the address of the read destination in the comparator, and judges whether the address of the read destination has been read from the STT-MRAM 2 in advance. If the data has already been read and stored in the data holding register, the stored data is sent to the NV-CPU 3 as a response to the read command.
[0036] FIG. 9 is a diagram for explaining the access controller (Accelerator) 14 between the CPU and the MRAM. Both 16-bit and 32-bit instructions are included. All data is 32-bit. In FIG. 9, HADDR is a memory address of the MRAM 11 accessed by the CPU 12, and HRDATA is data stored at the accessed address. The access controller (Accelerator) 14 includes a register (reg) for holding HADDR, a comparator (cmp) for comparing the next HADDR with the previous HADDR, a Prefetch Address Generator, a MUX (Multiplexer) for selecting and outputting either HADDR or the output of the address generator, registers (reg0, reg1) for holding data read from the MRAM 11, and a MUX (Multiplexer) for selecting and outputting either of the read data. Here, Prefetch means to fetch in advance, i.e., to take in data, prior to the timing of actual use. As shown in Figure 9, the MUX has a function of selecting one of the two inputs coming from the left or right depending on whether the value is "0" or "1," and outputting it as is.
[0037] In this way, the access controller 14 is provided on the input side of the STT-MRAM 11, and has an address holding register (reg) that holds the address when it receives an input of an address in the STT-MRAM 11 that is the read destination, a multiplexer (Multiplexer) that reads out multiple destinations in the STT-MRAM 11 specified by the address holding register (reg), multiple data holding registers (reg0, reg1) that hold data read from the STT-MRAM 11, and a comparator (cmp) that compares the address of the read destination held in the address holding register (reg) when it receives a read command together with the specification of the read destination.
[0038] The address of the data to be used is passed from the CPU 12 to the access controller (Accelerator) 14 via HADDR. At this time, that address is held in the register (reg) on the left side of the Accelerator in Figure 9. The MUX on the right side of the Accelerator compares the data passed from HADDR with the data held in reg, and if they do not match, it uses the value of HADDR as the value of MRAM_ADDR as is, reads data for two 16-bit instructions each from MRAM0 and MRAM1 (16 bits x 2 = 32 bits in two parallel for one MRAM) and takes them into reg0 and reg1.
[0039] When 16-bit instructions stored in consecutive memory addresses are executed consecutively, the data for four instructions is fetched into reg0 and reg1 by the above process. The data passed from the CPU 12 via HADDR is compared with the data held in reg. If the above condition is satisfied, the data that is pre-fetched into reg0 and reg1 and corresponds to the address specified by HADDR is designated by an arithmetic unit called Output control in the figure, and is output as HRDATA, i.e., in response to a read command from the CPU 12 via HADDR. In this case, data is passed from reg0 or reg1, not from the MRAM 11, in response to a read command from the CPU 12 via HADDR. Therefore, data is returned at a transfer speed that is possible between the CPU 12 and the Accelerator (e.g., 200 MHz), not at a transfer speed that is possible between the Accelerator and the MRAM (e.g., 50 MHz). This series of steps is shown in FIG. 11A. The values of 50 MHz and 200 MHz shown here are examples.
[0040] When 32-bit instructions stored in consecutive memory addresses are executed consecutively, the data for the two instructions is fetched into reg0 and reg1 by the above process, and the same process as above is carried out. In this case, the data is returned at 100 MHz. This series of steps is shown in Figure 11B. The value of 100 MHz shown here is just an example.
[0041] Access from the CPU 12 to the MRAM 11 is performed in a multiplexed manner, and the read data is temporarily stored in the registers (reg0, reg1). When the same memory address is accessed repeatedly, the data held in the registers is reused instead of the data in the memory. Figure 10 shows an example of the transition of data transfer in Figure 9. A data request is executed before the CPU needs the data, and when the next instruction ready to be fetched is executed, the 16-bit instruction held in the register is executed. Thus, high-speed instruction fetching is performed without interruption.
[0042] In FIG. 10, FIG. 10A shows the initial state, and in FIG. 10B, a prefetch data request, data storage in a register in the access controller (accelerator circuit), and a fetch operation of instruction A are executed simultaneously. In FIG. 10C, a fetch operation of instruction B is executed. In FIG. 10D, a fetch operation of instruction C is executed. In FIG. 10E, a fetch operation of instruction D is executed. The prefetch data requested in FIG. 10B is ready at this point. In FIG. 10F, a prefetch data request, data storage in a register in the access controller (accelerator circuit), and a fetch operation of instruction E are executed simultaneously. Since preparations for fetching the next instruction to be executed were completed in the previous state, high-speed instruction fetching can be performed without interruption.
[0043] FIG. 11 shows an example of data flow, where FIG. 11A shows the case of 16-bit instructions allocated to consecutive memory addresses, and FIG. 11B shows the case of 32-bit instructions allocated to consecutive memory addresses. As shown in FIG. 11A, 16-bit instructions allocated to consecutive memory addresses are fetched serially, so that data for four instructions can be prefetched in advance to a register, and as shown in FIG. 11A, instruction fetch can be performed at four times the access speed to the MRAM. Also, in the case of 32-bit instructions allocated to consecutive memory addresses, by performing the same control by interleaving as shown in FIG. 11B, data for two 32-bit instructions can be stored in a register, doubling the memory access speed. As a result, it is possible to hide the bottleneck of memory access, and high-speed instruction fetching can be adaptively performed according to the length of the instruction to be fetched.
[0044] In this way, the so-called best-effort method is used to achieve high speed. The degree of actual performance improvement varies depending on the program being executed. Specifically, although it is possible for programs in which memory access to random addresses occurs frequently due to conditional branching, it is preferably effective for processes that execute a certain sequence sequentially, such as MCUs for sensor node applications. In such processes, memory access is also regular, so it works very effectively. As a result, it is possible to obtain the same effect as a cache without increasing the area or power overhead.
[0045] Here, we will explain this access controller in more detail. For example, we fabricated a test chip of a non-volatile VLSI processor using a 40nm MOS / MTJ process. It can be designed by using an automatic design flow and cell library for MTJ-based NV-LIM LSI. From the number of gates of each block, the area overhead due to the introduction of the accelerator circuit is estimated to be 13.6%. Note that, although each block is designed separately here for overhead evaluation, it is also possible to integrate these blocks and lay them out as a single circuit block. In that case, the area overhead is expected to be even smaller.
[0046] Figure 12 shows the simulation waveforms in the access controller (accelerator circuit). In this example, (1) 16-bit instructions assigned to consecutive memory addresses, (2) branch instructions for accessing non-consecutive memory addresses, and (3) 32-bit instructions assigned to consecutive memory addresses are executed in sequence. Figure 12 shows that the operating frequency dynamically changes from 50 MHz to 200 MHz depending on whether the transition of the memory address to be accessed satisfies the condition for instruction fetch acceleration.
[0047] Figure 13 is a chart comparing the power consumption of a system consisting of an access controller (accelerator circuit) and a CPU incorporating MRAM with that of a conventional system. Here, the effect of relaxing the performance requirements for MRAM was confirmed as follows. Low-performance MRAM (LP-MRAM) reads and writes at 50MHz. As a medium-performance MRAM (MP-MRAM), it can read / write at 100MHz. High-performance MRAM (HP-MRAM) reads and writes at 200MHz. Furthermore, all MRAM is designed the same.
[0048] From Fig. 13, we can see that the power of MRAM accounts for a large portion of the total power consumption, and the higher the required performance, the higher the ratio becomes. By using the access controller (accelerator circuit), there is no need to change the performance required for MRAM, so the system performance can be improved with only the power overhead of the accelerator circuit.
[0049] Here, we compare the performance when this accelerator circuit is built in and when it is not. In the evaluation, we evaluated the area, power consumption, and processing performance of three types of systems using MRAM with different performance as mentioned above, a system using a cache, and a system using an accelerator circuit.
[0050] [Table 1]
[0051] As shown in Table 1, in the case of implementation using medium-performance or high-performance MRAM, the efficiency decreases as the power consumption of the MRAM increases, and the temperature range in which operation is guaranteed becomes narrower. In the case of implementation using a cache, performance improvement can be expected, but the area overhead becomes very large. On the other hand, if an accelerator circuit is used, an acceleration unit can be embedded with a small area overhead, and the operating frequency of the CPU can be increased without changing the performance required for the MRAM. As a result, the area efficiency can be improved. Therefore, compared to the implementation using a conventional cache, the performance efficiency (MIPS / mW) is improved by 2.29 times to 3.71 times, and read / write operation can be guaranteed over a wide temperature range.
[0052] Although the access controller depends on the contents of the program to be executed, benchmarking using several sample programs confirmed that it can operate at 100 MHz or more even in filter operations involving relatively large amounts of memory access, and that it works very effectively with programs with relatively few memory accesses and branches.
[0053] Next, we will explain the NV-CPU. All flip-flops used in the NV-CPU are MTJ-based non-volatile flip-flops. Since they are non-volatile, there is no need to save data for power gating.
[0054] Figure 14 is a cross-sectional view of an MTJ device used in an NV-CPU. It is realized by forming an MTJ consisting of a pin layer, a barrier layer, and a free layer on the top layer and metal layer of the CMOS substrate. The MTJ element has two different resistance values depending on the direction of spin. The MTJ element can maintain the resistance state without a continuous power supply. Therefore, the MTJ device can be used as a 1-bit non-volatile memory.
[0055] Fig. 15 is an example of a non-volatile flip-flop circuit. Figs. 16 to 19 are diagrams showing a simulation waveform, a flip-flop operation, a write operation, and a read operation, respectively. This flip-flop is a master-slave type flip-flop, and is divided into a master section, a slave section, and a non-volatile memory section. In the embodiment of the present invention, an MTJ element is used to configure the non-volatile memory section.
[0056] In Figure 15, DATA indicates the input signal, Q and QB indicate output signals (complementary, B is Bar = negation), CLK and CLKB indicate clock signals (complementary), LB is a read control signal which is normally "1" and when "0" a read process is performed from the MTJ element to the memory section of the FF. WB is a write control signal which is normally "1" and when "0" a write process is performed from the memory section of the FF to the MTJ element. SB is a set signal which is normally "1" and when "0" the memory state of the FF is set to "1" regardless of the input.
[0057] The FF circuit is roughly divided into three parts: a master section, a slave section, and a non-volatile memory section. The master section takes in the input signal DATA when the clock is "0", and passes it to the slave section when it is "1". The slave section takes in data from the master section when the clock is "1", and simultaneously outputs that value to Q and QB. It does nothing when the clock is "0". The master and slave sections combined operate as a normal master-slave D flip-flop.
[0058] The non-volatile memory unit consists of two MTJ elements that store one bit complementary to each other, and a write circuit that generates a current to write to the MTJ elements. Depending on the control signals LB and WB, the data stored in the slave unit is written to the non-volatile memory, or read from the non-volatile memory to the slave unit.
[0059] Next, the NV-FPGA will be described in detail. Figure 20 is a diagram showing the details of the NV-FPGA. In Figure 20, the NV-FPGA is 8 columns-21 rows, but this can be set arbitrarily. The FPGA is provided with a power switch (PS) and a controller for each tile, and can turn on / off the power supply for each tile, enabling power gating.
[0060] FIG. 21 shows the configuration of one tile. A tile includes a configurable logic block (CLB) having several logic elements (LEs), a connection block (CB) for connecting the CLB to wiring tracks, a switch block (SB) for signal routing, a configuration circuit (CFGC), and a controller. For example, a logic element LE includes a 6-input LUT circuit, a flip-flop (FF) circuit, and a multiplexer (MUX). Configuration data for the CLB, SB, and CB is written via the CFGC. A truth table value for a specific logical operation is written to the MTJ element in each LUT circuit. The FF circuit includes a CMOS-FF section and an MTJ element section. During normal operation, data is read / written using the CMOS-FF. Just before the power is turned off, the value of the CMOS-FF is written to the MTJ element section, and after the power is turned on again, the value held in the MTJ element section is written back to the CMOS-FF. The CB connects any I / O pin of the CLB to any wiring track based on the configuration data, and the SB connects each wiring track to any adjacent Tile based on the configuration data.
[0061] The wiring switch is the basic component of the CB and SB mentioned above, and is a circuit that controls the on / off of the pass transistor based on the stored data. The stored data is stored in an area-efficient MTJ-based latch, and the pass transistor is implemented using an NMOS switch. Using the controller, block-level power gating is performed and each functional block is turned off optimally.
[0062] The switch block SB and the connection block CB are each composed of a basic component called a wiring switch, and the wiring switch includes a non-volatile storage area. FIG. 22 is a diagram showing an example of a circuit including a wiring switch circuit. The output (Q) of the non-volatile storage element is used to turn on / off the NMOS pass switch. The non-volatile storage element is composed of two inverters and two local write control transistors, and a sense amplifier using two MTJ devices, and the wiring information is programmed complementarily. The sense amplifier is used to read the stored state M and hold it as Q during the power-on state without generating a constant DC current path. Once the configuration data are programmed, they do not change, so no additional control transistors are required.
[0063] The tiles are also equipped with a decoder and driver, which allows them to be reconfigured into a computing module after fabrication.
[0064] The configurable logic block CLB is composed of a basic component called a logic element, and the logic element is composed of a non-volatile lookup table circuit (non-volatile LUT circuit) and a non-volatile flip-flop (non-volatile FF), each of which has a non-volatile memory function. Figure 23 is a diagram showing an example of a lookup table circuit.
[0065] A block diagram of the 6-input LUT circuit is shown in Figure 23. The 6-input LUT circuit consists of five elements: a sense amplifier, a 64-to-1 NMOS selector, an MTJ configuration array, an NMOS reference tree, and a programmable reference resistor.
[0066] The truth table of any six-input logic function can be calculated by dividing the (R0, R 64 ), (R1, R 65 ), (R 63 , R 127 ) in series-connected MTJ devices. A write operation to store logic function information in the MTJ devices is performed by activating the word lines (WL) and bit lines (BL), which is similar to the write operation of a conventional magnetic random access memory (MRAM). BL0 and BL2 are shared between the MTJ array and a programmable reference resistor, and write access transistor M WC is also shared among the 64 MTJ pairs in the MTJ-configured array. The logical operation of the LUT circuit is quite different from the read operation of the MRAM because both BL and WL are not used in the operation.
[0067] When EN is set high and the NMOS selector and NMOS reference tree are activated by the complementary logic input X, the current I F and I REF Each passes through a corresponding MTJ pair in the MTJ configuration array and the programmable reference resistor. F and I REF The difference between is sensed and complementary full swing outputs (Z, Z') are generated by a sense amplifier.
[0068] In order to ensure a sufficient sensing margin, the configuration of the series / parallel connected MTJ devices in the MTJ configuration array and the programmable reference resistor is performed as follows: first, in the MTJ configuration array, if the stored data Y is 0, then (R AP , R AP ), if Y is 1, then (R P , R P ) are configured. The resistance of the MTJ device is Gaussian distributed N(R,σ R 2 ) (where R is the mean value, σ R is the standard deviation), the total resistance of the series-connected MTJ devices is N(2R,2σR 2 ), which means that (R P , R P ) state and (R AP , R AP ) states.
[0069] Next, the programmable reference resistor I(R P , R P ) and I(R AP , R AP ) in the middle REF The total resistance is adjusted so that the MTJ devices have two different resistance values. r0 , R r1 , R r2 , R r3 ) can be used to obtain 16 different reference resistance values, and the total resistance is adjusted to the I F It can be adjusted according to the current level fluctuation of R P represents the low resistance in the MTJ device, and R AP means high resistance.
[0070] FIG. 24 is a diagram showing an example of a non-volatile flip-flop circuit. The non-volatile flip-flop circuit (non-volatile FF circuit) consists of an NMOS-based differential-pair circuit (DPC), a cross-coupled CMOS inverter, two MTJ devices, and an MTJ write circuit. Complementary inputs (D, D') from the NV-LUT circuit are stored in the cross-coupled CMOS inverter in normal operation. They are also stored in the MTJ devices (M, M') in the master latch when the WCKB is activated at a low level. The behavior of the master latch is as follows.
[0071] 25A shows the THROUGH phase (CLK=1 and CLK'=0). Since M1 and M4 are turned on, the load capacitance Cq' is discharged to GND, and M6 is turned on. As a result, the load capacitance Cq is charged, the voltage of the output node q becomes VDD, and the output node q' becomes 0V.
[0072] FIG. 25B shows the HOLD phase (CLK=0 and CLK'=1). M3 is turned on so that the voltage at the output node (q, q') is held by the cross-coupled CMOS inverter. At the same time, M1 and M2 are turned off so that the DPC does not operate. As a result, V DD There is no DC current path from this pin to GND.
[0073] FIG. 25C shows the STORE phase. When the inputs (D, D') are (1, 0) and WCKB is activated low, M10 and M13 are turned on by the NOR gate, and the write current I W is applied to the MTJ device.
[0074] FIG. 25D illustrates the RESTORE phase. When RESB is activated to a low level, M9 is turned on, balancing the voltages at the output nodes q and q′, so that a clamp voltage is applied to each MTJ device. Then, the sensing current I M and I M When RESB is activated at a high level, M9 is turned off and I M and I M The difference between these two is amplified by a cross-coupled CMOS inverter.
[0075] In a nonvolatile FF circuit as shown in FIG. 24, the storage data of the FF held in the cross-coupled CMOS inverter is written to the MTJ element immediately before the power is turned off, and after the power is turned on again, the data is reloaded from the MTJ element to the cross-coupled CMOS inverter as the storage data of the FF. This eliminates the need for data evacuation / restoration via an external nonvolatile memory, making it possible to quickly transition between power on and off.
[0076] Also, preferably, a DSP (Digital Signal Processor) is installed. This allows the DSP to be used for calculations even when the amount of calculation is relatively large. The DSP is also provided with a power switch (PS) and a controller, which allows the power supply to be turned on / off for each tile, enabling power gating. In the DSP, as in the tiles, the switch block and connection block are composed of a basic component called a wiring switch, and the wiring switch includes a non-volatile storage area.
[0077] As mentioned above, each basic component of the NV-FPGA contains non-volatile memory, which stores configuration data. The memory state of the flip-flops is also stored in non-volatile memory. Therefore, there is no need to save data to an external non-volatile memory just before turning off the power, or to write the data back after turning the power back on. This makes it easy to turn the power on and off. By writing specific operations to the non-volatile FPGA in advance and turning the power on as needed, the operation can be started immediately, speeding up CPU processing. In addition, by turning the power off when not in use, unnecessary standby power consumption can be avoided.
[0078] In the circuit configuration of the DSP core in Figure 26, SEL[0] and SEL[1] are control signals for function selection, A, B, and C are inputs, and OUT is an output. It operates as a circuit that performs the following calculations. When (SEL[0],SEL[1])=(0,0), OUT=A×B, When (SEL[0],SEL[1])=(0,1), OUT=A×B+C, When (SEL[0],SEL[1])=(1,0), OUT=A+B, (SEL[0],SEL[1])=(1,1) is unused Here, the circuit configuration is arbitrary and other configurations are also possible.
[0079] In this way, it is preferable that the NV-FPGA 4 has tiles that perform part of the calculations on the CPU 3, and a DSP (Digital Signal Processor) that performs part of the calculations on the CPU 3 at a higher speed than the tiles, which satisfies both low power consumption and high performance, as shown in Fig. 3B. EXAMPLES
[0080] Next, an example will be described. Table 2 shows the specifications of the chip that was actually fabricated.
[0081] [Table 2]
[0082] Figure 27 shows an image of the fabricated chip. The chip includes an STT-MRAM, an NV-CPU and peripheral circuits, and an NV-FPGA.
[0083] FIG. 28 is a diagram showing a measured waveform. The program counter operates according to a 200 MHz clock (CLK), and data is transferred from the NV-CPU3 to the NV-FPGA4 via the MRAM2 by an enable signal from the NV-CPU3 to the NV-FPGA4, and data is transferred from the NV-FPGA4 to the NV-CPU3 via the MRAM2 by an enable signal from the NV-FPGA4 to the NV-CPU3. The enable signal is a control signal between the NV-CPU3 and the NV-FPGA4, and data flows from the NV-CPU3 to the NV-FPGA4 via the MRAM2, or from the NV-FPGA4 to the NV-CPU3 via the MRAM2. In this embodiment, data exchange between the NV-CPU3 and the NV-FPGA4 could be achieved at 200 MHz. Here, a specific address area of the MRAM2 is reserved as an area for holding data exchanged between the NV-CPU3 and the NV-FPGA4. The data to be input from the NV-CPU3 to the NV-FPGA4 is written to this area, and a signal is passed from the NV-CPU3 to the NV-FPGA4 indicating that writing has finished and that preparations to start calculations are complete, and the NV-FPGA4 begins calculations using the data written to the above area. A similar process occurs when the calculation results of the NV-FPGA4 are passed to the NV-CPU3 after completion. The addresses at which the data exchanged between the NV-CPU3 and NV-FPGA4 is held are predetermined, so the only communication between the two is a signal indicating that writing has finished and that preparations to start calculations are complete, and there is no need to pass information about which memory address holds the data required for processing.
[0084] FIG. 29 is a diagram showing a Shmoo Plot. The vertical axis is the voltage (V) related to the cores of the NV-CPU, NV-FPGA, and STT-MRAM, and the horizontal axis is the frequency (MHz). From the Shmoo Plot, operation was confirmed at each combination of frequency and voltage at intervals of 0.1 V in the range of 100 MHz to 204 MHz and in the range of core voltages from 1.05 V to 1.30 V at intervals of 2 MHz. The white parts in FIG. 29 show operation confirmed. At 100 MHz, operation was confirmed at intervals of 0.1 V from 1.07 V to 1.3 V, and at 202 MHz, operation was confirmed at 1.3 V. Therefore, since operation was confirmed at a frequency of 100 MHz and a voltage of 1.1 V, and at a frequency of 200 MHz and a voltage of 1.3 V, it is guaranteed that operation will occur if an approximation line of a curve or a straight line is drawn passing through these two points and a voltage higher than the approximation line is applied to each core. As an approximation line, for example, a straight line of 2×10 −3 f − V + 0.9 = 0 can be obtained, where f is the frequency (MHz) and V is the voltage (V).
[0085] FIG. 30 shows the relationship between the intermittent operation interval and the average power, in the case where power gating is not performed (without PG), where power gating is performed (with PG), and where power gating is performed and accelerated processing by FPGA is performed at the same time (with PG & FPGA-ACC). The horizontal axis is the intermittent operation time, and the average power was calculated for each intermittent operation time of 10 ms, 20 ms, 30 ms, 40 ms, 50 ms, 60 ms, 70 ms, 80 ms, 90 ms, and 100 ms. A Laplacian filter was assumed for data processing. Here, the NV-CPU and NV-FPGA are repeatedly switched between a state where arithmetic processing is performed and a state where arithmetic processing is not performed, and the interval between the start of one operation state and the start of the next operation state is called the "intermittent operation interval."
[0086] Without power gating, the system consumes a high average power of 1000 μW regardless of the intermittent operation interval. In contrast, with power gating, the average power decreases as the intermittent operation interval increases. Power gating also significantly reduces power consumption. Furthermore, when power gating is performed and acceleration processing is performed using an FPGA, the average power decreases as the intermittent operation interval increases, and even with the same intermittent operation interval, using an FPGA reduces power consumption even more significantly compared to not using an FPGA.
[0087] When the intermittent operation interval is 50 msec, power gating reduces the average power consumption to 100 μW, and by using an FPGA, the average power consumption is reduced to 47.14 μW, which is a 54% reduction in power consumption compared to when power gating is not performed.
[0088] From the results shown in FIG. 30, it was found that the microcontroller unit as the device according to this embodiment can be set to an intermittent operation interval of 100 ms or less when manufactured. Also, from another perspective, it was found that the microcontroller unit as the device according to this embodiment can be used with an average power of 100 μW or less when used. More specifically, from FIG. 30, it is appropriate that the intermittent operation time is 100 ms or less. This is because the average power can be suppressed to a predetermined value from each intermittent operation time of 10 ms, 20 ms, 30 ms, 40 ms, 50 ms, 60 ms, 70 ms, 80 ms, 90 ms, and 100 ms, and an appropriate range can be determined arbitrarily within these numerical ranges. The intermittent operation time is preferably 10 ms or more and 100 ms or less, more preferably 10 ms or more and 60 ms or less, and even more preferably 10 ms or more and 50 ms or less. Considering that the average power is 100 μW or less, this range is appropriate depending on whether power gating alone is adopted or whether power gating and FPGA are adopted.
[0089] Fig. 31 shows the power obtained by energy harvesting for each energy source. From this figure, and from the power obtained from various vibrations such as sunlight, heat, mechanical vibration, natural vibration, and artificial vibration, high frequency, etc., it is estimated that the MCU used in the IoT sensor node driven by the power obtained by energy harvesting will consume 100 (μW / cm 2 or μW / cm 3 ) can be considered as a standard.
[0090] Therefore, from FIG. 30, with an average power consumption of 100 μW, by using a non-volatile CPU, MRAM, and non-volatile FPGA, and by using power gating and FPGA processing, the intermittent operation interval can be set to approximately 20 msec or more. The upper limit of the intermittent operation interval is set arbitrarily. Also, from FIG. 30, by using power gating and FPGA processing, an average power consumption of 100 μW or less can be realized, and a device with an intermittent operation interval of 20 ms or more can be realized, providing a device for IoT.
[0091] From these results, it was found that the non-operating part manufactured in this embodiment can be used as a non-volatile memory by using MTJ. 、 The system is composed of MRAM, NV-CPU, and NV-FPGA. The power control unit stops the power supply to each MRAM, NV-CPU, and NV-FPGA module, i.e., non-operating parts, by power gating, without evacuating the data stored in the memory cells of the MRAM, NV-CPU, and NV-FPGA. This makes it possible to eliminate unnecessary power consumption. Furthermore, the FPGA can realize various signal processing at high speed by using a reconfigurable arithmetic module. Furthermore, the access controller can increase the efficiency of data transfer between the NV-CPU and MRAM, thereby making it possible to increase the speed of the entire system. Therefore, it was found that a microcontroller can be provided as a low-power, high-performance device.
[0092] Fig. 32 is a diagram showing the power required for each process, namely, Laplacian filter, DCT (Discrete Cosine Transform), FIR (Finite Impulse Response) filter, and FFT (Fast Fourier Transform). In any process, if the processing is not performed by FPGA, the power consumption of MRAM as memory is large, but by using FPGA processing, the power consumption of MRAM can be significantly reduced. Moreover, the reduction is greater than the power consumption by FPGA, so the effect is enormous.
[0093] Table 3 summarizes the number of tiles, DSPs, LUTs, and FFs used, the maximum operating frequency, and the power at 200 MHz for each process: Laplacian filter, DCT (Discrete Cosine Transform), FIR (Finite Impulse Response) filter, and FFT (Fast Fourier Transform).
[0094] [Table 3]
[0095] Regardless of the type of processing, the maximum operating frequency exceeds 200 MHz, and exceeds 250 MHz for DCT. At 200 MHz, the power consumption is also lowest for FIR filter, DCT, Laplacian filter, and FFT. In terms of the type of functions used in processing, the frequency of use is most frequent in the order of DSP, tile, FFs, and LUTs.
[0096] This embodiment will be compared with other conventional examples. FIG. 33 is a diagram comparing this embodiment (Example) with conventional examples (Non-Patent Documents 1 to 5). FIG. 34 is a diagram showing the relationship between the operating frequency and the average power when an IoT application is assumed in the diagram of FIG. 33. The one using FPGA is the technology of Non-Patent Document 3, and the operating frequency is 25 MHz in Non-Patent Document 3, while it is 200 MHz in this embodiment, so high data processing is possible. As for the average power, it is 47.14 μW in this embodiment, while the conventional example has a larger number of digits. Therefore, by the device according to this embodiment and the embodiment of the present invention, it is possible to provide a low-power and high-performance device and a sensor node using the same for the first time.
[0097] In this specification, NV-CPU and NV-FPGA are shown, but they may be written as non-volatile CPU and non-volatile FPGA, respectively. In addition, the word memory cell is used in NV-CPU, NV-FPGA, and MRAM, but they may be called storage area. NV-FPGA is FPGA-ACC shown in FIG. 30, that is, an FPGA-based accelerator. It goes without saying that various data stored in the non-volatile area in the non-volatile CPU and non-volatile FPGA (non-volatile FPGA-ACC) are saved and written during power gating if they were volatile.
[0098] The concept of the embodiment of the present invention is as follows. First, the device An MRAM in which a plurality of memory cells are divided into a plurality of regions, each including a selection transistor and an MTJ; A non-volatile CPU including a non-volatile memory; A non-volatile FPGA-ACC including a non-volatile memory and executing a part of the arithmetic processing of the non-volatile CPU; a power gating control unit that controls power supply to each memory cell in the MRAM, the non-volatile CPU, and the non-volatile FPGA-ACC; Equipped with.
[0099] As a result, the FPGA-based accelerator is configured to perform arithmetic processing separately for the non-volatile FPGA-ACC and the non-volatile CPU, and data related to the arithmetic processing in the non-volatile FPGA-ACC and the non-volatile CPU is stored in the MRAM. First, since both the FPGA and the CPU are non-volatile, there is no need to save and write data in the FPGA and configuration data for each power gating by the power gating control unit, and there is no need to save and write data in the CPU (see Figures 2A to 2C). Second, the sequence processing (sequential processing by sequence) for each operation interval is processed in parallel by the CPU and the FPGA-based accelerator (FPGA-ACC). Since the process time is greatly reduced by parallel processing, the time of the power gating PG becomes longer, and the increase in the time of power gating due to parallel processing, that is, the time of the decrease in the process time by the FPGA-ACC, both the static power part and the dynamic power part are not required. This reduction in unnecessary power is far greater than the increase in power consumption due to the computational processing of the FPGA-ACC (see Fig. 3A and Fig. 3B). In this way, by mounting the non-volatile FPGA-ACC on a non-volatile microcontroller consisting of a non-volatile CPU and MRAM, high computational performance and low power consumption can be achieved. By shortening the process time, the usage time of the MRAM, which accounts for most of the power consumption, is shortened, and further power consumption reduction is achieved. By making it possible to connect the non-volatile CPU and the non-volatile FPGA-ACC, sequence processing can be performed by parallel processing by the non-volatile CPU and the non-volatile FPGA-ACC (see Fig. 28). In particular, FPGAs can be adapted to computational processing by reconfiguration and are suitable for parallel processing with CPUs, so they can flexibly handle various computational processing in sensor nodes.
[0100] Secondly, the device further includes an access controller that controls access to the MRAM by reading and storing data in advance when reading from the MRAM. When receiving a data read command from the non-volatile CPU, the access controller determines whether data has been read from the MRAM in advance, and if data has been read, transmits the stored data to the non-volatile CPU. This allows the CPU to access the MRAM in a multiplexed manner, and the read data is temporarily stored in the accelerator. When the same memory address is accessed repeatedly, the temporarily stored data is reused without being read from the MRAM (see FIG. 10). As an example of the configuration of such an accelerator, as shown in FIG. The access controller: an address holding register for holding an address of the MRAM to be read when the address is received; a multiplexer that outputs to the MRAM so as to read out a plurality of designated destinations of the MRAM held in the address holding register; a plurality of data holding registers for holding data read from the MRAM in response to an input from the multiplexer; a comparator for, when receiving a read command together with a read destination specification, comparing an address related to the read destination specification with a read address stored in the address storage register; By providing When a read command is received along with a specified read destination, if the comparator determines that data has already been read from the MRAM, the data that has already been read and is held in one of the multiple data holding registers can be output in response to the read command. Furthermore, the access controller may further include a prefetch address generator connected to the multiplexer, whereby the prefetch address generator generates an address including the address of the read destination stored in the address holding register.
[0101] Third, a method of transferring data between a CPU and an MRAM via an access controller, When the access controller receives a data read command together with a read address from the CPU, the access controller reads data at a plurality of addresses including the read address from the MRAM in advance; When a data read command is received from the CPU along with the next read address, it is determined whether the data has already been read, and if the command is to read data that has already been read, the previously read data is used as a response to the read command without reading from the MRAM. That is, the prefetch data request, data storage in the access controller, and fetch operation are performed simultaneously, and the fetch operation is performed sequentially (see Figure 10). This allows high-speed instruction fetching without interruption. This is effective in sensor node applications, for example, where a certain sequence is executed sequentially, and works effectively because memory access is regular. The CPU operating frequency can be increased and system performance can be improved with only the power overhead of the access controller without changing the performance required for MRAM. The access controller can be embedded in the chip as an acceleration unit with a small area overhead, the CPU operating frequency can be increased, and read / write operations are guaranteed over a wide temperature range.
[0102] Fourthly, a processing method in a microcontroller having a non-volatile CPU, an MRAM, and a non-volatile FPGA-ACC as a reconfigurable computing module, An area for storing data exchanged between the non-volatile CPU and the non-volatile FPGA-ACC is set in the MRAM, Data input from the non-volatile CPU to the non-volatile FPGA-ACC is written to the area; A signal indicating that preparation for writing and starting calculation is completed is passed from the non-volatile CPU to the non-volatile FPGA-ACC; The non-volatile FPGA-ACC starts an operation using the data written in the area, After the calculation is completed, the calculation result of the non-volatile FPGA-ACC is passed to the non-volatile CPU using the area. With this method, there is no need to pass information about which memory address holds the data required for processing between the non-volatile CPU, non-volatile FPGA-ACC, and MRAM, and processing can be performed efficiently in the microcontroller.
[0103] In particular, in the above-mentioned processing method, it is preferable that the non-volatile CPU and the non-volatile FPGA-ACC are subjected to power gating control. Power gating control is to supply power only when arithmetic processing is performed and not to supply power when arithmetic processing is not performed. By using the non-volatile CPU and the non-volatile FPGA-ACC, it is not necessary to save and write data when turning the power on and off, and by using power gating, the average power consumption can be reduced as the intermittent operation interval is increased (with PG&FPGA-ACC in FIG. 30).
[0104] In particular, in the above-mentioned processing method, it is preferable that the arithmetic processing by the non-volatile FPGA-ACC is related to any one of processing of a Laplacian filter, a Discrete Cosine Transform (DCT), a Finite Impulse Response (FIR) filter, and a Fast Fourier Transform (FFT). In particular, assuming a processing method in a microcontroller as an IoT sensor node, as described with reference to Figs. 4 and 5, it is preferable to reduce the amount of data by, for example, obtaining feature values or performing image processing in the terminal sensor node 110 so that the sensor data does not need to be processed in the cloud device 140, and transmit the data to the cloud device 140, which is a higher-level device, and therefore any one of these processes is suitable.
[0105] In particular, in the above-mentioned processing method, it is preferable that sequential processing by the sequence is parallel-processed by the non-volatile CPU and the non-volatile FPGA-based accelerator. Since the sequence processing is parallel-processed by the non-volatile CPU and the non-volatile FPGA-ACC, high calculation performance and low power consumption performance are realized, and it is preferable to apply it to IoT sensor nodes. [Explanation of symbols]
[0106] 1: Device 2,11:STT-MRAM(MRAM) 3,12:NV-CPU 4,13:NV-FPGA 5: Power gating control unit 6,14: Access controller 7: Bus 100: System 110: Sensor node 120: Gateway (GW) 130: Communication network 140: Cloud device
Claims
1. An MRAM in which a plurality of memory cells are divided into a plurality of regions, each including a select transistor and an MTJ; A non-volatile CPU including a non-volatile memory; a non-volatile FPGA-ACC including a non-volatile memory and executing a part of the arithmetic processing of the non-volatile CPU; a power gating control unit that controls power supply to each memory cell in the MRAM, the non-volatile CPU, and the non-volatile FPGA-ACC; A device comprising:
2. The device of claim 1, wherein the non-volatile CPU transmits data to the MRAM, causing the non-volatile FPGA-ACC to read the data from the MRAM, and the non-volatile FPGA-ACC transmits data to the MRAM, causing the non-volatile CPU to read the data from the MRAM.
3. 3. The device according to claim 1, wherein the non-volatile FPGA-ACC has a non-volatile storage function by which configuration data is stored.
4. 4. The device according to claim 1, wherein each memory cell of the MRAM is configured as a 2T-2MTJ including two of the select transistors and two of the MTJs.
5. The device according to claim 1 , wherein each of the plurality of regions in the MRAM is configured in divided block units, and power gating is performed in block units.
6. The device according to any one of claims 1 to 5, wherein the non-volatile FPGA-ACC has a tile that performs part of the calculations on the non-volatile CPU instead, and a DSP (Digital Signal Processor) that performs part of the calculations on the non-volatile CPU faster than the tile.
7. The device of claim 1 , further comprising an access controller configured to control access to the MRAM by reading and storing data in advance when reading from the MRAM.
8. 8. The device according to claim 7, wherein when the access controller receives a data read command from the non-volatile CPU, it determines whether the data has already been read from the MRAM, and if it has already been read, it transmits the stored data to the non-volatile CPU.
9. The access controller: an address holding register for holding an address of an MRAM to be read when the address is received; a multiplexer that outputs to the MRAM so as to read out a plurality of designated destinations of the MRAM held in the address holding register; A plurality of data holding registers for holding data read from the MRAM; a comparator for, when receiving a read command together with a read destination specification, comparing an address related to the read destination specification with a read address stored in the address storage register; Equipped with 9. The device of claim 7 or 8, wherein when a read command is received together with a read destination specification, if the comparator determines that data has already been read from the MRAM, the device outputs data that has already been read and held in any one of the plurality of data holding registers in response to the read command.
10. the access controller further comprises a prefetch address generator coupled to the multiplexer; 10. The device of claim 9, wherein the prefetch address generator generates an address including a read destination address held in the address holding register.
11. 11. A device as claimed in any preceding claim, which is usable at an average power of 100 μW or less.
12. 12. The device according to claim 1, wherein the intermittent operation interval can be set to 100 ms or less.
13. A sensor node comprising a device according to any one of claims 1 to 12.
14. A processing method in a microcontroller including a non-volatile CPU, an MRAM, and a non-volatile FPGA-ACC as a reconfigurable arithmetic module, An area for storing data exchanged between the non-volatile CPU and the non-volatile FPGA-ACC is set in the MRAM, Data input from the non-volatile CPU to the non-volatile FPGA-ACC is written to the area; A signal indicating that preparation for writing and starting calculation is completed is passed from the non-volatile CPU to the non-volatile FPGA-ACC; The non-volatile FPGA-ACC starts an operation using the data written in the area; After the calculation is completed, the calculation result of the non-volatile FPGA-ACC is passed to the non-volatile CPU using the area. A processing method in a microcontroller.
15. 15. The processing method in a microcontroller according to claim 14, wherein the non-volatile CPU and the non-volatile FPGA-ACC are subjected to power gating control.
16. 16. The processing method for a microcontroller according to claim 15, wherein data saving and restoring operations are not performed in the power gating control.
17. The processing method in a microcontroller according to any one of claims 14 to 16, wherein the arithmetic processing by the non-volatile FPGA-ACC relates to any one of Laplacian filter, DCT (Discrete Cosine Transform), FIR (Finite Impulse Response) filter and FFT (Fast Fourier Transform).
18. 18. The processing method for a microcontroller according to claim 14, wherein sequential processing is performed in parallel by the non-volatile CPU and a non-volatile FPGA-based accelerator.
Citation Information
Patent Citations
Memory device
JP1990015342A
Memory controller and picture information processor
JP1990121041A
Prefetching method and device
JP2000148584A
Memory control circuit and cache memory
JP2015052940A
