A reconfigurable flexible control method based on SoC chip for bit flipping effect
By implementing dynamic online reconstruction of ARM and FPGA on the SoC chip, the problem that the embedded control system cannot be upgraded online and patched bit flip faults is solved, the flexibility and reliability of the system are improved, and it is suitable for remote patching under complex working conditions. , reducing hardware resource requirements and power consumption.
Patent Information
- Application Number
- CN202110788381.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-13
- Publication Date
- 2024-10-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing embedded control systems cannot be reconstructed online, making it difficult to upgrade the system and repair bit flip faults when demand changes, especially in environments such as satellites and power plants, which affects system reliability.
A reconfigurable flexible control method based on SoC chip is designed. By setting ARM and FPGA reconstruction modules in the on-chip eNVM area of SoC chip, dynamic online reconstruction is realized, and the peripheral interface is used to receive and store reconstruction data, and Complete reconstruction in LP-DDR3 to ensure that the system has software and hardware upgrade capabilities without increasing hardware resources.
It realizes the ability to correct bit flip faults in microprocessors and memory units, reduces the risk of system failure, improves system flexibility and reliability, supports a variety of peripheral interfaces, is suitable for remote repair under complex working conditions, and reduces Board space and power consumption.
Smart Images

Figure CN113703848B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of embedded systems, and in particular to a reconfigurable flexible control method based on a SoC chip facing a bit flip effect. Background Art
[0002] In the fields of communication, network, multimedia, aerospace, etc., embedded control systems based on ARM+FPGA have been increasingly used due to their superior performance and modular control functions. However, the existing embedded control systems cannot be reconfigured online, which makes it inconvenient to recall the physical system in some application fields when the demand changes. It needs to be disassembled for upgrading (such as equipment running automatically outside, inconvenient to enter the equipment site, aerospace field, etc.), which is very inconvenient. Therefore, it is necessary to reset the system remotely. Aiming at the existing embedded control systems, especially the embedded systems based on ARM+FPGA, a reconfigurable flexible control idea is proposed, which simplifies the system independent module testing and upgrading process without disassembly, supports multiple peripheral interfaces, and realizes a dynamic online reconfigurable technology.
[0003] The chip's ability to resist bit flips is particularly important for the operational reliability of satellite control systems outside the atmosphere. Since satellite payload controllers are exposed to outer space for a long time and are bombarded by high-energy particles for a long time, it is easy for the logic state of semiconductor devices to change abnormally, that is, "soft errors". The use of reconfigurable flexible control systems can greatly reduce the risk of system failures caused by single-particle flips. In the field of satellite applications, in addition to reconstructing the control system when needed, the control system can also reconstruct itself in orbit according to human settings (standby, timing or conditional triggering, etc.), and promptly repair "soft errors" caused by single-particle bombardment. For power plants, there are strong magnetic environments, and controllers often have bit flip failures. For some working environments that are inconvenient for personnel to enter, this solution can remotely repair bit flip failures to ensure stable and reliable operation of the system.
[0004] Specifically, the system functions can be adjusted dynamically as the demand changes, and the system functional modules can be changed independently, as a whole, or selectively. Using reconfigurable technology, the system can have the advantages of both software upgrade and hardware upgrade (FPGA circuit) without increasing hardware resources.
[0005] Therefore, how to build a reconfigurable, multi-configurable ARM+FPGA embedded control system that can correctly correct bit flip faults occurring in microprocessors and memory units is a problem that needs to be solved urgently. Summary of the invention
[0006] In view of this, the present invention provides a reconfigurable flexible control method based on SoC chip for bit flipping effect, which is a reconfigurable and multi-configurable embedded control system that can correctly correct bit flipping faults occurring in microprocessors and memory units.
[0007] To achieve the above object, the technical solution of the present invention is: a SoC chip reconfigurable flexible control method for bit flipping effect, comprising the following steps:
[0008] For the SoC chip, an ARM reconstruction module is set in the boot loader of the eNVM area in the chip, and the ARM reconstruction module is used to reconstruct the ARM controller.
[0009] In the main control program of the ARM controller, an FPGA reconstruction module is set, and the FPGA reconstruction module is used to reconstruct the FPGA controller.
[0010] Furthermore, the ARM reconstruction module is used to reconstruct the ARM controller, and the specific process is as follows:
[0011] The ARM reconstruction module receives the ARM controller reconstruction data through the peripheral interface. The ARM controller reconstruction data is temporarily stored in the on-chip eNVM area, and then the ARM controller reconstruction data is moved to the external RAM memory, namely LP-DDR3, and the reconstruction data is stored starting from the starting address of LP-DDR3.
[0012] After the reconstruction data is moved, the program jump function of the ARM controller reconstruction program is started, and the starting address of the ARM controller is modified to the starting address of LP-DDR3, thereby completing the process of reconstructing the ARM controller.
[0013] Furthermore, the FPGA reconstruction module is used to reconstruct the FPGA controller, and the specific process is as follows:
[0014] Part of the space in the external FLASH chip in the M2S090 chip is opened up as an FPGA reconstruction program storage area for receiving the FPGA reconstruction program.
[0015] When the FPGA reconstruction module detects that the data in the FPGA reconstruction program storage area is full and receives the FPGA reconstruction command, it calls the system programmable service in the M2S090 chip, that is, the ISP function.
[0016] The ISP function rewires the FPGA fabric with fixed-size blocks, and points to the pointer to the FPGA reconstruction program memory, which moves backward in sequence to point to the starting address of the next block. The ISP function is executed in a loop until the reconstruction of the programmable part of the entire FPGA fabric is completed, thereby completing the reconstruction process of the FPGA controller.
[0017] Furthermore, the SoC chip is selected as the M2S090 chip.
[0018] Furthermore, the ARM reconstruction module receives the ARM controller reconstruction data through the peripheral interface, and the ARM controller reconstruction data is temporarily stored in the on-chip eNVM area, and then the ARM controller reconstruction data is moved to the external RAM memory, namely LP-DDR3, specifically:
[0019] The ARM reconstruction module receives the ARM reconstruction start packet through the LVDS interface. The ARM reconstruction start packet sets the size, number of packets, burning area and program block number parameters of the ARM reconstruction program to be burned. Then the ARM reconstruction module receives the ARM reconstruction program package, and the ARM reconstruction program package is cached in LP-DDR0.
[0020] When the ARM reconstruction program package is completely received, the ARM reconstruction module receives the reconstruction verification package, performs CRC verification on the program code of the entire received ARM reconstruction program package, and executes the subsequent process when the verification is correct.
[0021] Furthermore, a part of the space in the FLASH chip externally set up in the M2S090 chip is opened up as an FPGA reconstruction program storage area for receiving the FPGA reconstruction program, specifically:
[0022] The external setting FLASH chip receives the FPGA reconstruction start packet through the LVDS interface, and the FPGA reconstruction start packet sets the size, number of packets, burning area and program block number parameters of the burning program.
[0023] Next, the FPGA reconstruction program package is received. The size of each FPGA program is fixed. A fixed area is opened in a certain sector of the external FLASH. Each time the FPGA reconstruction program package is received, the data of the corresponding fixed area is updated.
[0024] Furthermore, three FLASHs are set externally, each of which stores an ARM reconstruction module and an FPGA reconstruction module; the main control program of the M2S090 chip regularly checks the ARM reconstruction module and the FPGA reconstruction module stored in the three FLASHs, and repairs the bit-flipped data area.
[0025] Beneficial effects:
[0026] 1. The embodiment of the present invention provides a reconfigurable flexible control method based on SoC chip for bit flip effect. By analyzing the limitations of embedded control system and combining the functional requirements of open embedded control system, a reconfigurable flexible embedded system is designed. The system is based on SoC chip and improves the traditional embedded control system design architecture based on ARM+FPGA. The ARM controller can reconfigure the FPGA controller online through a reconfiguration module to realize real-time circuit dynamic reconstruction; at the same time, at the starting address of the ARM controller, a boot loader is designed, which can guide the ARM controller to complete its own reconstruction and realize online upgrade. Bit flip faults usually occur in microprocessors and memory units, and the reconstruction strategy proposed in the present invention can correctly correct the bit flip faults occurring in microprocessors and memory units. The control system built on this basis is a reconfigurable and multi-configurable embedded control system, which not only has strong computing power, flexible structure and low cost, but also has the characteristics of strong versatility, combinability, self-repairability, easy expansion and modular sub-control. The system can support a variety of peripheral interfaces, and various application designs are easy to transplant. It plays a very important role in working conditions where the working conditions are relatively complex and not easy to disassemble.
[0027] 2. The present invention provides a reconfigurable flexible control method based on SoC chips for bit flip effects, wherein the SoC chip is selected from the SmartFusion2 series, which integrates a flash FPGA architecture with inherent reliability, a 166MHz ARM Cortex-M3 processor, advanced security processing accelerators, SRAM, eNVM and rich communication interfaces on a single chip. This combination can inherit existing functions from other devices and greatly reduce the circuit board space and overall system power consumption. SmartFusion2 SOC FPGA is a FLASH type FPGA with strong resistance to single particle flips, which greatly increases system reliability. In addition, relying on the eNVM storage area, it can be completely immune to single particle flip effects. The bottom-level reconstruction module design of the entire chip is all located in this storage area, which completely avoids the single particle flip effect. In terms of aerospace applications, the reliability of the system reconstruction function is guaranteed;
[0028] 3. The present invention provides a reconfigurable flexible control method based on SoC chip for bit flip effect, which can periodically reconfigure its own functions as needed. The payload controller is exposed to the space environment or strong magnetic environment for a long time, and some functional items are prone to bit flip failures. It is generally believed that the most dangerous bit flip failures often occur in microprocessors and memory units. The periodic reconstruction function can regularly repair the bit flip part, greatly reducing the failure probability of the control system due to the bit flip effect; in addition, the reconstruction program stored in the external FLASH will also regularly repair the bit flip part to ensure the correctness of the data during each reconstruction.
[0029] 4. The present invention provides a reconfigurable flexible control method based on SoC chip for bit flipping effect. The reconstruction program is lightweight. The size of ARM reconstruction module and FPGA reconstruction module is several KBytes, which also reduces the controller overhead to a certain extent, reduces the probability of bit flipping of reconstruction function module, and better solves the problem of controller burning. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a structural block diagram of the embedded control system based on M2S090 of the present invention;
[0031] Figure 2 It is the functional principle diagram of the FPGA and ARM controller reconstruction of the present invention;
[0032] Figure 3 Reconstruction function flow chart of the ARM controller of the present invention;
[0033] Figure 4 This is a functional flow chart of the FPGA controller reconstruction of the present invention. DETAILED DESCRIPTION
[0034] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0035] The present invention provides a reconfigurable flexible control method based on SoC chip facing bit flip effect. For SoC chip, an ARM reconfiguration module is set in the boot loader of the eNVM area in the chip, and the ARM reconfiguration module is used to reconfigure the ARM controller;
[0036] In the main control program of the ARM controller, an FPGA reconstruction module is set, and the FPGA reconstruction module is used to reconstruct the FPGA controller.
[0037] The entire chip can be dynamically or statically reconfigured through the reconfiguration module located in the eNVM area of the chip. The ARM reconfiguration module is located in the boot loader of the eNVM_0 area and is used to reconfigure the ARM controller; the FPGA reconfiguration module is used to reconfigure the FPGA controller and is located in the main control program of the ARM controller; both the ARM and FPGA programs are stored in three external FLASH chips, which are redundant to each other. In the main control program of the ARM controller, a three-mode calibration program is designed to regularly repair the FLASH data area with bit flips.
[0038] The SoC chip in the present invention is selected as the M2S090 chip.
[0039] The M2S090 chip is used, and the M2S090 chip integrates FPGA and ARM. When the default development environment inside the M2S090 chip is not modified, after the M2S090 chip system is turned on, it first enters the on-chip FLASH, that is, the eNVM_0 area, and designs the ARM reconstruction program in the eNVM_0 area, which is the boot loader function program.
[0040] The M2S090 chip receives ARM reconstruction data through the peripheral interface. The ARM reconstruction data is temporarily stored in an area of the on-chip FLASH, and then the reconstruction data is moved to the external RAM memory, namely LP-DDR3, and the reconstruction data is stored starting from the starting address of LP-DDR3.
[0041] After the reconstruction data migration is completed, the program jump function of the ARM reconstruction program is started, and the starting address of ARM is modified to the starting address of LP-DDR3 to complete the ARM reconstruction process;
[0042] The FPGA reconstruction process is:
[0043] Part of the space in the external FLASH chip in the M2S090 chip is opened up as an FPGA reconstruction program storage area for receiving the FPGA reconstruction program.
[0044] When the M2S090 chip detects that the FPGA reconstruction program storage area is full of data and receives the FPGA reconstruction command, the FPGA controller calls the system programmable service in the M2S090 chip, namely the ISP function. The ISP function rewires the FPGA fabric with fixed-size blocks, and points to the pointer of the FPGA reconstruction program memory, which moves backward in sequence to the starting address of the next block. The ISP function is executed in a loop until the reconstruction of the entire FPGA fabric programmable part is completed; thus, the FPGA reconstruction process is completed.
[0045] like Figure 1 As shown, the system is mainly composed of a main controller and peripheral devices. The ARM controller is the core of the M2S090 chip. The data input and output must be through the APB bus to interact with the FPGA controller, and the FPGA controls the device terminal. The system main controller and the lower computer have a JTAG debugging interface, and three 256MB FLASH chips and a 1G LP-DDR chip are plugged in. The entire system has one LVDS and RS422 control interface for external connection to the upper computer system, and another RS422 to control the lower computer system. In practical applications, the control system based on the present invention can be completely equivalent to a "black box". Using its reconfigurable characteristics, the "black box" function can be flexibly changed according to demand.
[0046] Reconfigurable technology is a software design method that can utilize the existing software and hardware resources of the system and flexibly change its own architecture according to different application requirements. The essence of reconfigurable technology is a flexible design concept. Flexibility means that the control system has an open modular structure. According to the reconstruction method, system reconstruction can be divided into static system reconstruction (StaticReconfiguration) and dynamic system reconstruction (DynamicReconfiguration). Static system reconstruction refers to the static reloading of the logical function of the target system. The system can only be configured before operation, that is, the program data stored in the memory is re-downloaded to achieve the change of the chip logic function; dynamic system reconstruction refers to the reconfigurable system that can configure the controller in real time during operation through the peripheral interface (UART, LVDS, network port, SPI interface, etc.). In the present invention, FPGA and ARM both adopt the static system reconstruction method, that is, the reconstruction program is first stored in FLASH, and when the reconstruction burning and jump instructions are received, the reconstruction function of the controller is completed.
[0047] The core processor of this embodiment is the 166MHZ ARM Cortex M2S090. TM -M3 hard-core processor, embedded with Flash architecture FPGA. Based on common peripherals such as SRAM and PLL, the processor integrates advanced peripherals such as high-speed multiplier, CAN, USB, Gigabit Ethernet, etc., as well as abundant logic units and I / O resources. It adopts FGG484 package, small size and simple design.
[0048] The M2S090 chip integrates a 32-bit ARM Cortex-M3 processor with a maximum frequency of 166MHz, which can be used as the core of the algorithm processing part. It integrates 512KB non-volatile memory (eNVM), 64KB RAM, 1 RTC controller, 1 PDMA controller, 1 CAN controller, 2 multi-mode serial ports SPI, 2 UART interfaces and 2 I2C interfaces. The ARM subsystem consists of an ARM microprocessor, an ARM power circuit, an ARM reset circuit, an ARM clock circuit, an ARM accessor and ARM peripherals; the FPGA has about 90,000 logic units, a DDR controller, 109 1K×18bit RAMs, and has AES256, SHA256, and RNG hardware encryption functions. The FPGA subsystem consists of an FPGA controller, an FPGA download circuit, an FPGA clock circuit, an FPGA reset circuit, an FPGA power supply and FPGA peripherals. The M2S090 chip's ARM unit integrates 32 general input and output interfaces, and each interface can trigger an interrupt individually.
[0049] The main advantages of SmartFusion2 series SOC chips are:
[0050] 1. Single particle immunity: Since the M2S090 chip has excellent performance in resisting single particle effects compared to other SoC chips, it is widely used in aerospace, power and other industries. SmartFusion2 SOC FPGA is a FLASH FPGA with strong single particle upset resistance. The eNVM area can be completely immune to single particle effects, which greatly increases system reliability;
[0051] 2. To achieve the lowest power consumption, SmartFusion2 SOC FPGA devices can enter and exit Flash*Freeze mode in about 100us, which is suitable for low duty cycle applications that require short intermittent activities. With Flash*Freeze standby mode, power consumption can be reduced to lmw.
[0052] 3. High reliability: SmartFusion2 is the first SoC device that can protect all of its SoC embedded SRAM memories from SEU errors by using single error correction and double error detection protection functions on embedded memories such as Cortex-M3 embedded temporary memories, Ethernet, controller area networks and USB buffers.
[0053] FPGA controller reconstruction function design: The main controller will temporarily store the FPGA reconstruction data in a certain area of the external FLASH. When the reconstruction data is completely received, the main controller enters the FPGA reconstruction mode. The designed FPGA reconfigurable module, as a functional module of the ARM controller application, needs to call the application layer interface (API) function MSS_SYS_start_isp(...) and configure the function to programming mode. At this time, the Cortex-M3 processor will initialize the system controller (systemcontroller) and send the reconstruction program that has been written to the FLASH memory in advance to the system controller in units of 4k program blocks. The system controller will execute the ISP function service and rewire the FPGAfabric until the entire program is completely arranged. After the process is completed, restart and the new FPGA program will take effect. The principle of the entire reconstruction function is as follows Figure 2 The specific upgrade process is as follows Figure 4 shown.
[0054] ARM controller reconstruction function design: Using the designed ARM boot loader, after the program starts, the ARM program will first enter the eNVM_0 area and place the ARM reconstruction function module in this area. Each time the program starts, it will enter the ARM reconstruction program and first enter the countdown mode. If the relevant upgrade instructions are received before the countdown ends, the boot program will enter the receiving program mode. Send ARM reconstruction related instructions, the reconstruction program will cache the reconstruction program package in LP-DDR0. When the ARM controller reconstruction code is received, the CRC check will be performed on this part of the code. If the check is correct, the program in LP-DDR0 will be burned to a certain area of FLASH. After receiving the reconstruction related instructions, the program in FLASH will be copied to LP-DDR3. Finally, the program start address is set to the first address of LP-DDR3, and the ARM program reconstruction is completed. There is no need to restart the system, and the new ARM can run the program, the entire burning and program jump function module. If the CRC check is wrong, the command is returned to the host computer, waiting for the application upgrade code to be received again. The waiting time is set to 1 minute. If no upgrade code is sent to the ARM controller within 1 minute, the previous application is run; if the upgrade fails, the source program is executed; each time there is an upgrade requirement, the ARM controller needs to be reset, and the host computer platform controls the reset action. The specific upgrade process is as follows Figure 3 shown.
[0055] The external FLASH chip is designed with a three-mode proofreading function: In view of the fact that the system may work in a special environment, the system is designed with a three-mode proofreading function to compensate for storage data errors caused by bit flipping. The specific design is that each time the reconstruction program is received, the reconstruction program will be backed up to three external FLASH chips. The three FLASH chips have the same functions, and the storage data types and sizes are also the same. The main control program regularly proofreads the reconstruction program stored in the three external FLASH chips. After proofreading, if there is an abnormal data area, it will be erased and the correct data value will be written. The three-mode proofreading function of FLASH can ensure that each time there is a reconstruction requirement, the burned reconstruction program is the correct data.
[0056] Advantages of the present invention:
[0057] 1. The control system can continuously optimize its own functions according to the needs. After the system is put into use, the software functions and hardware functions (FPAG program) can be continuously optimized according to subsequent needs;
[0058] 2. SmartFusion2 integrates an inherently reliable flash FPGA fabric, a 166MHz ARM Cortex-M3 processor, advanced security processing accelerators, SRAM, eNVM and rich communication interfaces on a single chip. This combination can inherit existing functions from other devices and significantly reduce circuit board space and overall system power consumption;
[0059] 3. SmartFusion2 SOC FPGA is a FLASH FPGA with strong single-particle upset resistance, which greatly increases system reliability. In addition, relying on the eNVM storage area, it can be completely immune to the single-particle upset effect. The lowest-level reconstruction module design of the entire chip is all located in this storage area, which completely avoids the single-particle upset effect. In terms of aerospace applications, it ensures the reliability of the system reconstruction function;
[0060] 4. The system can reconstruct its own functions regularly as required. The payload controller is exposed to the space environment or strong magnetic environment for a long time, and some functional items are prone to bit flip failures. It is generally believed that the most dangerous bit flip failures often occur in microprocessors and memory units. The regular reconstruction function can regularly repair the bit flip part, greatly reducing the probability of failure caused by the bit flip effect in the control system; in addition, the reconstruction program stored in the external FLASH will also regularly repair the bit flip part to ensure the correctness of the data during each reconstruction;
[0061] 5. A concise code burning method is proposed to make the reconstructed program lightweight. The size of the entire functional module is a few KBytes, which also reduces the controller overhead to a certain extent, reduces the probability of bit flipping of the reconstructed functional module, and better solves the problem of controller burning;
[0062] Example 1:
[0063] In the experiment, two sets of ARM and FPGA programs with different execution effects were set up respectively. The first set of programs was burned by default, and the second set of programs was reconstructed. The experimental results show that the program can run stably according to the expected purpose and complete the system reconstruction.
[0064] (1) Receive the FPGA reconstruction start packet through the LVDS interface. The reconstruction start packet will specify the size of the burning program, the number of packages, the burning area, the program block number and other parameters; then send the reconstruction package. Since the FPGA program size is fixed (about 3.5MB), a fixed-size area is opened in a certain sector of the FLASH. Each time the reconstruction package is received, the data in this area is updated; after the reconstruction package is received, send the reconstruction burning package, execute the program burning code segment, and realize the FPGA hardware rewiring. When the FPGA controller is wired, the system needs to be restarted for the new FPGA program to take effect;
[0065] (2) Receive the ARM reconstruction data packet through the LVDS interface. Similarly, the reconstruction start packet will specify the size of the burning program, the number of packets, the burning area, the program block number and other parameters; then the reconstruction program package can be sent, but because the size of the ARM program is uncertain and is much smaller than the FPGA program, the ARM program package is cached in LP-DDR0; when the data is completely received, the reconstruction check packet is received, and the CRC check will be performed on the entire received program code. Only when the check is correct can the subsequent process be executed; when the reconstruction burning package is received, the entire reconstruction data will be burned to a certain area of FLASH; send the reconstruction program termination packet to start the program move and jump functions. At this point, there is no need to restart the system, and the reconstruction function of the entire ARM controller has been completed.
[0066] The present invention proposes a reconfigurable strategy based on SoC chips. This embodiment verifies the above-mentioned method, which means that the strategy is indeed feasible. However, the implementation strategy of the present invention is not limited to this. In some application scenarios, the ARM and FPGA controllers can also be reconfigured separately.
[0067] The advantages of this technical invention are particularly reflected in the aerospace field. Since the chip has a certain single-particle immunity capability, coupled with the reconstruction strategy proposed in the present invention, the software functions and some hardware functions (FPGA circuits) of the onboard payload can be flexibly changed, which also provides a method for continuous system optimization after the subsequent payload is launched into space; in addition, the static reconstruction strategy proposed by the present invention can be flexibly applied according to human settings, which greatly reduces the system failures caused by single particles to a great extent; in addition, this technical invention can also be applied to some harsh and unmanned application environments, especially power plants, and strong magnetic environments. As long as the system is equipped with a wireless transceiver module, the remote reconstruction function of the control system can be realized.
[0068] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A reconfigurable flexible control method based on SoC chip for bit flipping effect, characterized in that: The steps include: For the SoC chip, an ARM reconstruction module is set in the boot loader of the eNVM area in the chip, and the ARM reconstruction module is used to reconstruct the ARM controller; In the main control program of the ARM controller, an FPGA reconstruction module is set, and the FPGA reconstruction module is used to reconstruct the FPGA controller; The ARM reconstruction module is used to reconstruct the ARM controller, and the specific process is as follows: The ARM reconstruction module receives the ARM controller reconstruction data through the peripheral interface, and the ARM controller reconstruction data is temporarily stored in the on-chip eNVM area, and then the ARM controller reconstruction data is moved to the external RAM memory, i.e., LP-DDR3, and the reconstruction data is stored starting from the starting address of LP-DDR3; After the reconstruction data is moved, the program jump function of the ARM controller reconstruction program is started, the starting address of the ARM controller is modified to the starting address of LP-DDR3, and the process of reconstructing the ARM controller is completed; The FPGA reconstruction module is used to reconstruct the FPGA controller. The specific process is as follows: Part of the space in the FLASH chip outside the M2S090 chip is opened up as an FPGA reconstruction program storage area for receiving the FPGA reconstruction program; When the FPGA reconstruction module detects that the FPGA reconstruction program storage area is full of data and receives an FPGA reconstruction command, it calls the system programmable service in the M2S090 chip, namely, the ISP function; The ISP function rewires the FPGA fabric with fixed-size blocks, and points to the pointer to the FPGA reconstruction program memory, which moves backward in sequence to point to the starting address of the next block. The ISP function is executed in a loop until the reconstruction of the programmable part of the entire FPGA fabric is completed, thereby completing the reconstruction process of the FPGA controller.
2. The SoC chip-based reconfigurable flexible control method according to claim 1, characterized in that: The ARM reconstruction module receives the ARM controller reconstruction data through the peripheral interface, and the ARM controller reconstruction data is temporarily stored in the on-chip eNVM area, and then the ARM controller reconstruction data is moved to the external RAM memory, namely LP-DDR3, specifically: The ARM reconstruction module receives an ARM reconstruction start packet through the LVDS interface, and the ARM reconstruction start packet sets the size, number of packets, burning area and program block number parameters of the ARM reconstruction program to be burned; then the ARM reconstruction module receives the ARM reconstruction program package, and the ARM reconstruction program package is cached in LP-DDR3; When the ARM reconstruction program package is completely received, the ARM reconstruction module receives the reconstruction verification package, performs CRC verification on the program code of the entire received ARM reconstruction program package, and executes subsequent processes when the verification is correct.
3. The method according to claim 1, characterized in that In the M2S090 chip, a portion of the space in the external FLASH chip is opened as the FPGA reconstruction program storage area for receiving the FPGA reconstruction program, specifically: The externally arranged FLASH chip receives the FPGA reconstruction start packet through the LVDS interface, and the size, number of packets, burning area and program block number parameters of the burning program are set by the FPGA reconstruction start packet; Next, the FPGA reconstruction program package is received. The size of each FPGA program is fixed. A fixed area is opened in a certain sector of the external FLASH. Each time the FPGA reconstruction program package is received, the data of the corresponding fixed area is updated.
4. The method according to any one of claims 1 to 3, characterized in that: Three FLASHs are arranged externally, and each FLASH stores a copy of the ARM reconstruction module and the FPGA reconstruction module; The main control program of the M2S090 chip periodically checks the ARM reconstruction module and FPGA reconstruction module stored in the three FLASH chips, and repairs the bit-flipped data area.
Citation Information
Cited By
Satellite-borne SOC on-orbit programmable method and system
CN120821488A
