High-reliability DDR controller system based on data correction
By introducing MIG IP core and self-reset module into the DDR controller system, combined with RS encoding processing, the problems of DDR controller initialization failure, data errors and fault recovery in aerospace applications are solved, and high reliability and data access are achieved Improved efficiency, suitable for complex spatial environments.
Patent Information
- Application Number
- CN202411122189.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-11-15
AI Technical Summary
The existing DDR controller technology cannot support automatic data retraining calibration, data error correction and automatic fault recovery in aerospace applications, resulting in initialization failures, read and write data errors and operating status abnormalities in complex space environments, and failures may occur. Self-recovery requires ground intervention to lead to loss of remote sensing data.
A highly reliable DDR controller system based on data correction is designed, using MIG IP core to realize the DDR controller, including write data FIFO, read data FIFO, command and address multiplexing FIFO, user interface and self-reset module, through status monitoring Comparing with data to achieve self-recovery of faults, and improving data access reliability through RS encoding processing module, it is suitable for data bandwidth and storage efficiency under cascaded DDR chips.
The fault self-recovery function of the DDR controller system is realized, which improves data access reliability, simplifies engineering implementation, reduces resource occupancy, enhances adaptability in complex space environments, and reduces power outage of satellite-borne equipment. Recharge time.
Smart Images

Figure CN118964244A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote sensing data processing and transmission systems for spacecraft, and in particular to a high-reliability DDR controller system based on data correction, which is suitable for onboard high-speed data processing and storage devices equipped with DDR chips. Background Art
[0002] To meet the needs of real-time on-orbit processing of massive remote sensing data, onboard high-speed data processing and storage devices usually use DDR SDRAM chips (abbreviated as DDR1, DDR2, DDR3, DD4, DDR5, etc.) to improve data access rate and cache capacity. Efficient DDR controller design is the key to DDR chip application.
[0003] The existing technology mainly involves the general working principle, implementation process, performance optimization strategy, chip self-test method, different application modes, etc. of the DDR controller.
[0004] In 2014, Kuang Liqiang's paper "FPGA-based DDR3 Design and Implementation" from the National University of Defense Technology described the architectural design and implementation methods of each module of the DDR3 controller, including external logic modules, user interface logic, command / data paths, data generation logic, storage control unit, physical layer interface, etc.
[0005] In 2018, Sun Lixue's paper "Design and Implementation of a Large-Capacity Asynchronous FIFO Cache System Based on DDR3 SDRAM" from the National Space Science Center of the Chinese Academy of Sciences proposed a method for implementing a high-speed, large-capacity asynchronous FIFO cache system. By writing a DDR3 user interface module and combining it with the FPGA's on-chip FIFO control module, a high-speed, large-capacity asynchronous FIFO is constructed for use in real-time acquisition systems of massive data.
[0006] In 2020, Lv Wenqiang's paper "Research on High-Speed Data Cache Technology Based on DDR2SDRAM" from the National Key Laboratory of Electronic Test Technology of North University of China introduced the implementation method of a storage system based on DDR2. It uses FPGA as the main controller and calls the storage interface generation tool MIG of ISE software to generate a DDR2 IP core. After receiving high-speed image data, it writes it into the DDR2SDRAM cache. During the idle time of the sending cycle, the data is read out and matched with the receiving rate of the storage device, realizing high-speed read and write operations on DDR2SDRAM.
[0007] Li Bingkun's patent "A DDR4 accelerated reading and writing device" (patent number CN114721983B) of Shandong Inspur Science and Technology Research Institute Co., Ltd. in 2023 proposed a method to improve the DDR processing rate. The invention improves the data throughput storage processing rate through ping-pong transmission method, data format conversion module, arbitration module, priority read and write operation mode, etc.
[0008] Hu Yuqing's patent "FPGA-based DDR2 SRAM interface circuit and its phase adjustment method" (patent number CN114090241A) of Sugon Network Technology Co., Ltd. in 2022 proposed a DDR performance optimization strategy. The invention sets the parameters of the control module, the read and write data module, and the phase adjustment module to determine the middle value of the read and write data phase window, so that DDR write data and read data work in the same clock domain, simplifying the cross-clock processing of read return data and achieving the purpose of saving clock resources.
[0009] Yang Haitao's patent "A Self-Test Method for DDR SDRAM" (patent number CN113628670A) from the Beijing Institute of Automation Control Equipment in 2021 proposed a DDR chip self-test method. The invention writes 0x5555AAAA and 0xFFFF0000 in DDR, traverses all addresses, reads back and determines whether the read value is the same as the written value, thereby detecting connection failures of the DDR chip and failures of the device itself. This patent is used to detect physical failures of DDR chips, improve the coverage and testing efficiency of fault detection, and is suitable for DDR chip production or inspection stages.
[0010] Existing technologies can solve general problems in DDR chip applications. However, in aerospace applications, due to the influence of space environment and electromagnetic interference, as well as temperature changes, voltage fluctuations, clock jitter and other factors, the DDR controller inside the onboard equipment may have various faults such as initialization training and calibration failure, read and write data errors, and abnormal operation process status. Existing DDR controller technology does not support functions such as automatic data retraining and calibration, data error correction decoding, and automatic fault recovery. In addition, when the aforementioned fault occurs, if the onboard equipment is not powered off and re-powered on, the fault will remain. The power-off and re-power-on operation of the onboard equipment requires ground intervention, which takes a long time and will result in the loss of a large amount of remote sensing data, seriously affecting the operation of related tasks. Summary of the invention
[0011] The technical problem solved by the present invention is: in order to make up for the defects of the prior art, a high-reliability DDR controller system based on data correction is provided to improve the reliability of the DDR controller system and enhance the adaptability of the DDR controller system in a complex space environment.
[0012] The present invention is implemented through the following technical solutions: a high-reliability DDR controller system based on data correction, the controller system includes a DDR chip, a DDR controller, and a self-reset module;
[0013] The DDR controller is implemented using the MIG IP core, including write data FIFO, read data FIFO, command and address multiplexing FIFO, user interface and DDR chip interface; the write data FIFO is used to receive external input data to be written into the DDR chip; the read data FIFO is used to read the data in the DDR chip; the command and address multiplexing FIFO is used to generate the read and write logic and address of the DDR chip to control the DDR chip, and write the external user data into the corresponding address in the DDR chip through the write data FIFO; the data at the corresponding address of the DDR chip is read out and sent to the user through the read data FIFO; the user interface signal includes the initialization completion flag phy_init_done, the write data FIFO full status flag a pp_wdf_afull, write enable app_wdf_wren of write data FIFO, write data app_wdf_data of write data FIFO, full status flag app_af_afull of command and address multiplexing FIFO, write enable app_af_wren of command and address multiplexing FIFO, read and write control command app_af_cmd, read and write logical address app_af_addr, output enable rd_data_valid of read data FIFO, output data rd_data_fifo_out of read data FIFO; the DDR chip interface includes the read and write control interface, address interface and data interface of the DDR chip.
[0014] Preferably, the high-reliability DDR controller system based on data correction further includes a self-reset module; the self-reset module performs the following operations:
[0015] S1. At the end of the DDR controller system initialization phase, detect the status identification signal output by the DDR controller system. If the status identification signal is abnormal, reset the DDR controller system. Otherwise, enter step S2.
[0016] S2, verifying the interface timing of the DDR controller system by using a data comparison method, if the interface timing verification passes, proceeding to step S3, otherwise, resetting the DDR controller system;
[0017] S3. During the working phase of the DDR controller system, the status identification signal of the DDR controller system is periodically monitored. When the status identification signal is abnormal, the DDR controller system is reset.
[0018] Preferably, the status identification signal includes an initialization completion identification phy_init_done, a write data FIFO full status identification app_wdf_afull, and a command and address multiplexing FIFO full status identification app_af_afull.
[0019] Preferably, the specific method of verifying the interface timing of the DDR controller system by using the data comparison method is as follows:
[0020] Multiple sets of data are written to the DDR chip in advance, and then read from the DDR chip. The read data is compared with the written data. If the comparison is consistent, it indicates that the interface timing of the DDR controller system is correct. Otherwise, it indicates that the interface timing of the DDR controller system is wrong.
[0021] The above-mentioned high-reliability DDR controller system based on data correction also includes a RS encoding processing module, an RS decoding processing module, and a supervision bit removal module;
[0022] The RS coding processing module adds a RS coding supervision bit to the end of each frame of user data to be written into the DDR chip and then sends it to the DDR controller;
[0023] The RS decoding processing module performs RS decoding on the coded data frame output from the DDR chip and sends the decoded data frame to the supervision bit removal module;
[0024] The supervision bit removal module removes the coded supervision bit at the end of the decoded data frame to restore the user data.
[0025] Another technical solution of the present invention is: a high-reliability cascaded DDR controller system based on data correction, comprising two of the above-mentioned DDR controller systems, and further comprising a first FIFO buffer unit, a second FIFO buffer unit, and an output synchronization control logic unit;
[0026] The write enable app_wdf_wren of the write data FIFO of the two DDR controller systems are simultaneously connected to the gating signal of the user data; the write data app_wdf_data of the write data FIFO of the first DDR controller system is connected to the low data bit of the user data, and the write data app_wdf_data of the write data FIFO of the second DDR controller system is connected to the high data bit of the user data;
[0027] The command and address multiplexing FIFOs corresponding to the two DDR controller systems share the read-write control command app_af_cmd and the read-write logical address app_af_addr; that is, when writing data in the case of cascading DDR chips, the read-write control commands and read-write logical addresses of the two DDR controller systems are the same, and the write data corresponds to the low data bit and high data bit of the user data respectively. The output data rd_data_fifo_out of the read data FIFO of the first DDR controller system is connected to the first FIFO buffer unit;
[0028] The output data rd_data_fifo_out of the read data FIFO of the second DDR controller system is connected to the second FIFO buffer unit;
[0029] The output synchronization control logic unit determines the cache data volume of the first FIFO buffer unit and the second FIFO buffer unit, and controls the read enable signal to be "valid" when both are greater than a certain value. The read enable signal acts on the first FIFO buffer unit and the second FIFO buffer unit at the same time, and synchronizes and aligns the high and low data bits from the two DDR controller systems for output, that is, when reading data in the case of cascading DDR chips, the read data FIFO output data of the two DDR controller systems are asynchronously written and synchronously read out by the first FIFO buffer unit and the second FIFO buffer unit, and synchronizes and aligns the high and low data bits for output.
[0030] Another technical solution of the present invention is: a satellite-borne high-speed data processing device, configured with the above-mentioned DDR controller system.
[0031] Another technical solution of the present invention is: a satellite-borne high-speed data storage device, configured with the above-mentioned DDR controller system.
[0032] Another technical solution of the present invention is: a satellite-borne high-speed data processing device, configured with the above-mentioned high-reliability cascade DDR controller system.
[0033] Another technical solution of the present invention is: a satellite-borne high-speed data storage device, configured with the above-mentioned high-reliability cascade DDR controller system.
[0034] The beneficial effects of the present invention compared with the prior art are:
[0035] (1) The present invention generates a system reset signal by using a method of status monitoring and data comparison, thereby increasing the fault self-recovery function of the DDR controller system;
[0036] (2) The present invention improves the reliability of data access of the DDR controller through the strategy of RS error correction decoding;
[0037] (3) The present invention has a simple principle, low resource occupancy, is easy to implement in engineering, has strong robustness, and is not limited by signal system and type, and has universal applicability.
[0038] (4) The present invention increases data bandwidth and improves data storage efficiency by aligning FIFO caches in a cascaded DDR controller system. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The included drawings are used to provide a further understanding of the embodiments of the present invention, which constitute a part of the specification and together with the text description, explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic diagram of a design reliability improvement process of a DDR controller system according to an embodiment of the present invention;
[0041] Figure 2 This is a schematic diagram of the processing flow of the cascaded DDR controller system according to an embodiment of the present invention;
[0042] Figure 3 The figure is a schematic diagram of the error correction control processing flow based on RS coding according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0044] Taking the DDR controller generated by the MIG IP core of Xilinx as an example, a high-reliability DDR controller system based on data correction is introduced by adopting the technical solution of the present invention, so as to improve the robustness of the DDR controller system.
[0045] MIG IP core is an IP developed by Xilinx for DDR chips. MIG IP core consists of four parts: infrastructure module, user interface module, physical layer module and memory controller module; the infrastructure module is responsible for generating and managing various clocks, global reset signals and delay control units of the DDR controller; the user interface module is responsible for generating and managing read and write control commands, read and write logical addresses, and read and write data; the physical layer module is responsible for the mutual conversion between user interface signals and chip physical pin signals; the memory control module is responsible for the initialization of the DDR controller system (power-on waiting, mode register setting, data training calibration) and the self-refresh, activation and pre-charge operations of the DDR chip.
[0046] The MIG IP core includes two sets of external interfaces: the user interface (the interface for the user FPGA to interact with the MIG) and the DDR physical chip interface (the interface for the MIG to interact with the DDR chip); the interface logic between the user and the MIG is realized by controlling three FIFOs (write data FIFO, command and address multiplexing FIFO, and read data FIFO). The write data FIFO is used to receive external input data to be written into the DDR chip; the read data FIFO is used to read the data in the DDR chip; the command and address multiplexing FIFO is used to generate the read and write logic for controlling the DDR chip and the address of the DDR chip, and write the external input user data to the corresponding address in the DDR chip through the write data FIFO; the data at the corresponding address of the DDR chip is read out and sent to the user through the read data FIFO.
[0047] The user interface signals include the initialization completion flag phy_init_done, the write data FIFO full status flag app_wdf_afull, the write enable of the write data FIFO app_wdf_wren, the write data of the write data FIFO app_wdf_data, the command and address multiplexing FIFO full status flag app_af_afull, the write enable of the command and address multiplexing FIFO app_af_wren, the read and write control command app_af_cmd, the read and write logical address app_af_addr, the output enable of the read data FIFO rd_data_valid, and the output data of the read data FIFO rd_data_fifo_out; the DDR chip interface includes the read and write control interface, address interface and data interface of the DDR chip. The generation and management of various signals of the DDR chip interface are controlled by the MIG IP core internally, and the user does not need to intervene.
[0048] A high-reliability DDR controller system based on data correction also includes a self-reset module and an error correction control module.
[0049] The self-reset module performs the following operations:
[0050] S1. At the end of the DDR controller system initialization phase, detect the status identification signal output by the DDR controller system. If the status identification signal is abnormal, reset the DDR controller system. Otherwise, enter step S2.
[0051] S2, verifying the interface timing of the DDR controller system by using a data comparison method, if the interface timing verification passes, proceeding to step S3, otherwise, resetting the DDR controller system;
[0052] S3. During the working phase of the DDR controller system, the status identification signal of the DDR controller system is periodically monitored. When the status identification signal is abnormal, the DDR controller system is reset.
[0053] In a specific embodiment of the present invention, the specific implementation steps of the self-reset module are as follows:
[0054] (1) Self-reset based on status monitoring during system initialization: 1 second after the system is powered on, the self-reset module detects the status identification signals of the MIG IP core (initialization completion identification phy_init_done, write data FIFO full status identification app_wdf_afull, command and address multiplexing FIFO full status identification app_af_afull). If the initialization completion identification signal phy_init_done is high, and the write data FIFO full status identification signal app_wdf_afull and the command / address FIFO full status identification signal app_af_afull are low, it means that the initialization operation of the DDR controller system is successful, and the process goes to step (3) of self-reset based on data comparison.
[0055] (2) If the initialization operation of the DDR controller system fails, a system reset signal is generated to act on the basic module and memory control module of the MIG IP core to reinitialize and train the MIG IP core; 0.5s after the system reset signal is generated, the status identification signal of the MIG IP core is detected. If the phy_init_done signal is high and the app_wdf_afull signal and the app_af_afull signal are low, the process goes to step (3) of self-reset based on data comparison, otherwise, step (2) is re-executed;
[0056] (3) Self-reset based on data comparison in the system initialization phase: after the status identification signals phy_init_done, app_wdf_afull, and app_af_afull of the MIG IP core are correct, at an interval of 10ms, the self-reset module sequentially writes 8 sets of predicted data to the DDR chip through the user interface, and then sequentially reads the above 8 sets of data from the DDR chip within 30ms after writing; compares the read data with the written data, and if the data are the same, proceeds to the status monitoring of the DDR operation phase in step (5);
[0057] It can be seen that the specific method of using the data comparison method to verify the interface timing of the DDR controller system is as follows:
[0058] Multiple sets of data are written to the DDR chip in advance, and then read from the DDR chip. The read data is compared with the written data. If the comparison is consistent, it indicates that the interface timing of the DDR controller system is correct. Otherwise, it indicates that the interface timing of the DDR controller system is wrong.
[0059] (4) If the read and write data in step (3) are inconsistent, a system reset signal is generated 120ms after the comparison time. The duration of the system reset signal is 1ms. The system reset signal is applied to the basic module and memory control module of the MIG IP core to reinitialize and train the MIG IP core, and then enter the self-reset module based on data comparison in step (3);
[0060] (5) Self-reset based on status monitoring during the system operation phase: After the above steps, a cycle counter with a period of 250ms based on a 100MHz clock frequency is generated, and the status identification signal of the MIG IP core is judged within the time period of 241ms to 242ms corresponding to the cycle counter. If the phy_init_done signal is at a high level, and the app_wdf_afull signal and the app_af_afull signal are at a low level, it means that the working status of the DDR controller system is normal;
[0061] (6) If the status identification signal of the MIG IP core in step (5) is abnormal, go to step (2) to generate a system reset signal, which acts on the basic module and memory control module of the MIG IP core to reinitialize and train the MIG IP core;
[0062] Therefore, in summary, the status identification signals monitored by the self-reset module include the initialization completion identification phy_init_done, the write data FIFO full status identification app_wdf_afull, and the command and address multiplexing FIFO full status identification app_af_afull.
[0063] The DDR controller system first performs initialization operations after the device is powered on, and then implements the data reading and writing functions of the DDR chip through the user logic interface.
[0064] Self-reset based on status monitoring during the system initialization phase: At the end of the DDR controller system initialization phase, the status identification signal of the DDR controller system (initialization completion identification, write data FIFO full status identification, command / address FIFO full status identification) is detected. When the status identification signal is abnormal, a system reset signal is generated to automatically reset the clock management unit and operation control logic of the DDR controller, and the DDR controller system is reinitialized and trained and calibrated until the status identification signal is correct.
[0065] Self-reset based on data comparison in the system initialization stage: After the self-reset module based on status monitoring in the system initialization stage, in order to further verify the correctness of the interface timing of the DDR controller system, multiple groups of data are written to the DDR chip in advance through the user logic interface, and then read from the DDR chip, and the read data is compared with the written data. If the comparison is consistent, it indicates that the interface timing of the DDR controller system is correct. If it is inconsistent, a system reset signal is generated again, the clock management unit and the operation control logic of the DDR controller are automatically reset, and the DDR controller system is reinitialized and trained and calibrated until the read data of the DDR chip is the same as the written data.
[0066] Self-reset based on status monitoring during the system operation phase: During the DDR controller system working phase (the normal operation phase after the system initialization is completed), the status identification signal of the DDR controller system is periodically monitored. When the status identification signal is abnormal, a system reset signal is generated to automatically reset the clock management unit and operation control logic of the DDR controller, and the DDR controller system is reinitialized and trained and calibrated until the status identification signal is correct.
[0067] The error correction module includes an RS encoding processing module, an RS decoding processing module, and a supervision bit removal module.
[0068] The RS coding processing module adds a RS coding supervision bit to the end of each frame of user data to be written into the DDR chip and then sends it to the DDR controller;
[0069] The RS decoding processing module performs RS decoding on the coded data frame output from the DDR chip and sends the decoded data frame to the supervision bit removal module;
[0070] The supervision bit removal module removes the coded supervision bit at the end of the decoded data frame to restore the user data.
[0071] like Figure 3As shown, the data access stage is based on the error correction control module of RS encoding and decoding. In the normal working stage of the DDR controller system, data access is generally in frames. It is assumed that the length of a single data frame corresponds to 100 DDR working clock cycles. Before writing DDR, each frame of data is RS (112, 100) encoded, and a supervision bit is added to the end of each frame of data to generate a coded data frame with a length corresponding to 112 clock cycles; in the write data cycle of the DDR controller system, the gating signal and data signal of the coded data frame are used as app_wdf_wren and app_wdf_data of the DDR chip respectively; in the read data cycle of the DDR controller system, the coded data frame output by rd_data_valid and rd_data_fifo_out of the DDR chip is RS (112, 100) decoded, and then the coding supervision bit at the end is removed to restore it to the frame format of user data for subsequent processing operations.
[0072] The error correction control module based on RS coding increases the DDR memory's ability to resist spatial single particle effects and improves the reliability of the DDR controller system.
[0073] like Figure 2 As shown, based on the above DDR controller system, the present invention also provides a high-reliability cascade DDR controller system based on data correction, including two DDR controller systems, and also including a first FIFO buffer unit, a second FIFO buffer unit, and an output synchronization control logic unit;
[0074] The write enable app_wdf_wren of the write data FIFO of the two DDR controller systems are simultaneously connected to the gating signal of the user data; the write data app_wdf_data of the write data FIFO of the first DDR controller system is connected to the low data bit of the user data, and the write data app_wdf_data of the write data FIFO of the second DDR controller system is connected to the high data bit of the user data;
[0075] The command and address multiplexing FIFOs corresponding to the two DDR controller systems share the read-write control command app_af_cmd and the read-write logical address app_af_addr; that is, when writing data in the case of cascading DDR chips, the read-write control commands and read-write logical addresses of the two DDR controller systems are the same, and the write data corresponds to the low data bit and high data bit of the user data respectively. The output data rd_data_fifo_out of the read data FIFO of the first DDR controller system is connected to the first FIFO buffer unit;
[0076] The output data rd_data_fifo_out of the read data FIFO of the second DDR controller system is connected to the second FIFO buffer unit;
[0077] The output synchronization control logic unit determines the cache data volume of the first FIFO buffer unit and the second FIFO buffer unit, and controls the read enable signal to be "valid" when both are greater than a certain value. The read enable signal acts on the first FIFO buffer unit and the second FIFO buffer unit at the same time, and synchronizes and aligns the high and low data bits from the two DDR controller systems for output, that is, when reading data in the case of cascading DDR chips, the read data FIFO output data of the two DDR controller systems are asynchronously written and synchronously read out by the first FIFO buffer unit and the second FIFO buffer unit, and synchronizes and aligns the high and low data bits for output.
[0078] Taking two DDR chips cascaded as an example, the data access rate of DDR memory can be increased by 1 times through data bit width expansion; when the write data FIFOs of the two DDR chips are controlled, the gating signal of the user data is used as the app_wdf_wren of the two DDR chips, the low data bit is used as the app_wdf_data of the first DDR chip, and the high data bit is used as the app_wdf_data of the second DDR chip; when the command / address FIFOs of the two DDR chips are controlled, the same app_af_wren and app_af_cmd are used, that is, the input signals of the two command / address FIFOs are the same; the read data FIFOs of the two DDR chips output When receiving and processing data, in order to solve the delay difference of the output data of the two DDR chips, two FIFOs (respectively called the first FIFO buffer unit and the second FIFO buffer unit) are established inside the FPGA. The rd_data_valid and rd_data_fifo_out of the two DDR chips are used as the write enable and write data of the first FIFO buffer unit and the second FIFO buffer unit respectively. The cached data amount of the two FIFO buffer units is judged, and the read enable of the FIFO buffer unit is generated when it is greater than a certain value. The same read enable is used to act on the two FIFO buffer units, so that the high and low data bits output by the two DDR chip caches can be synchronously aligned.
[0079] The chip cascade is based on the data synchronization module of the FIFO cache. When multiple groups of DDR chips are cascaded to improve the access rate and storage capacity of the DDR memory, the occasional data bit width splicing errors caused by the delay difference of the output data of each DDR chip are solved through shared control logic and a strategy of first writing the output data of each DDR chip into the corresponding FIFO cache and then reading it out at the same time, thereby improving the reliability of the DDR controller system.
[0080] like Figure 1As shown, based on the existing DDR controller system implementation method, the present invention adds a fault self-recovery function to the DDR controller system by adding self-reset based on state monitoring in the system initialization stage, self-reset based on data comparison in the system initialization stage, self-reset based on state monitoring in the system operation stage, a data synchronization module based on FIFO cache during chip cascading, and error correction control based on RS encoding in the data access stage. Compared with the power-off and power-on operation of the onboard equipment, the time required for self-reset is in the ms level.
[0081] The present invention solves various fault problems that may exist in aerospace applications, such as failure of DDR controller system initialization training and calibration, data access errors, and inability to recover after functional abnormalities during operation, thereby improving the reliability of DDR controller system design and enhancing the adaptability of DDR controller system in complex space environments. It has great engineering practical value in the field of remote sensing data processing and transmission systems for spacecraft.
[0082] Another technical solution of the present invention is: a satellite-borne high-speed data processing device, configured with the above-mentioned DDR controller system and the high-reliability cascade DDR controller system.
[0083] Another technical solution of the present invention is: a satellite-borne high-speed data storage device, configured with the above-mentioned DDR controller system and the high-reliability cascade DDR controller system.
[0084] The above is only a specific implementation of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.
[0085] The contents not described in detail in the specification of the present invention belong to the common knowledge of the professionals in this field.
Claims
1. A high-reliability DDR controller system based on data correction, Features Including DDR chip, DDR controller, self-reset module; The DDR controller is implemented using the MIG IP core, including write data FIFO, read data FIFO, command and address multiplexing FIFO, user interface and DDR chip interface; the write data FIFO is used to receive external input data to be written into the DDR chip; the read data FIFO is used to read the data in the DDR chip; The command and address multiplexing FIFO is used to generate the read and write logic of the control DDR chip and the address of the DDR chip, write the external input user data to the corresponding address in the DDR chip through the write data FIFO; read the data at the corresponding address of the DDR chip and send it to the user through the read data FIFO; the user interface signal includes the initialization completion flag phy_init_done, the write data FIFO full status flag app_wdf_afull, the write enable app_wdf_wren of the write data FIFO, the write data app_wdf_data of the write data FIFO, the command and address multiplexing FIFO full status flag app_af_afull, the write enable app_af_wren of the command and address multiplexing FIFO, the read and write control command app_af_cmd, the read and write logic address app_af_addr, the output enable rd_data_valid of the read data FIFO, and the output data rd_data_fifo_out of the read data FIFO; the DDR chip interface includes the read and write control interface, address interface and data interface of the DDR chip.
2. A high-reliability DDR controller system based on data correction according to claim 1, Features It also includes a self-reset module; the self-reset module performs the following operations: S1. At the end of the DDR controller system initialization phase, detect the status identification signal output by the DDR controller system. If the status identification signal is abnormal, reset the DDR controller system. Otherwise, enter step S2. S2, verifying the interface timing of the DDR controller system by using a data comparison method, if the interface timing verification passes, proceeding to step S3, otherwise, resetting the DDR controller system; S3. During the working phase of the DDR controller system, the status identification signal of the DDR controller system is periodically monitored. When the status identification signal is abnormal, the DDR controller system is reset.
3. A high-reliability DDR controller system based on data correction according to claim 2, It is characterized in that The status identification signal includes an initialization completion identification phy_init_done, a write data FIFO full status identification app_wdf_afull, and a command and address multiplexing FIFO full status identification app_af_afull.
4. A high-reliability DDR controller system based on data correction according to claim 2, It is characterized in that The specific steps to verify the interface timing of the DDR controller system using the data comparison method are as follows: Multiple sets of data are written to the DDR chip in advance, and then read from the DDR chip. The read data is compared with the written data. If the comparison is consistent, it indicates that the interface timing of the DDR controller system is correct. Otherwise, it indicates that the interface timing of the DDR controller system is wrong.
5. The high-reliability DDR controller system based on data correction according to claim 1, Features It also includes an RS encoding processing module, an RS decoding processing module, and a supervision bit removal module; The RS coding processing module adds the RS coding supervision bit at the end of each frame of user data to be written into the DDR chip and then sends it to the DDR controller; The RS decoding processing module performs RS decoding on the coded data frame output from the DDR chip and sends the decoded data frame to the supervision bit removal module; The supervision bit removal module removes the coded supervision bit at the end of the decoded data frame to restore the user data.
6. A high-reliability cascaded DDR controller system based on data correction, comprising two DDR controller systems according to any one of claims 1 to 5, It is characterized in that It also includes a first FIFO buffer unit, a second FIFO buffer unit, and an output synchronization control logic unit; The write enable app_wdf_wren of the write data FIFO of the two DDR controller systems are simultaneously connected to the gating signal of the user data; the write data app_wdf_data of the write data FIFO of the first DDR controller system is connected to the low data bit of the user data, and the write data app_wdf_data of the write data FIFO of the second DDR controller system is connected to the high data bit of the user data; The command and address multiplexing FIFOs corresponding to the two DDR controller systems share the read-write control command app_af_cmd and the read-write logical address app_af_addr; that is, when writing data in the case of cascading DDR chips, the read-write control commands and read-write logical addresses of the two DDR controller systems are the same, and the write data corresponds to the low data bit and high data bit of the user data respectively. The output data rd_data_fifo_out of the read data FIFO of the first DDR controller system is connected to the first FIFO buffer unit; The output data rd_data_fifo_out of the read data FIFO of the second DDR controller system is connected to the second FIFO buffer unit; The output synchronization control logic unit determines the cache data amount of the first FIFO buffer unit and the second FIFO buffer unit, and controls the read enable signal to be "valid" when both are greater than a certain value. The read enable signal acts on the first FIFO buffer unit and the second FIFO buffer unit at the same time, and synchronizes and aligns the high and low data bits from the two DDR controller systems for output, that is, when reading data in the case of cascading DDR chips, the read data FIFO output data of the two DDR controller systems are asynchronously written and synchronously read out by the first FIFO buffer unit and the second FIFO buffer unit, and synchronizes and aligns the high and low data bits for output.
7. A satellite-borne high-speed data processing device, Features A DDR controller system as claimed in any one of claims 1 to 5 is configured.
8. A satellite-borne high-speed data storage device, Features A DDR controller system as claimed in any one of claims 1 to 5 is configured.
9. A satellite-borne high-speed data processing device, Features The high-reliability cascaded DDR controller system as described in claim 6 is configured.
10. A satellite-borne high-speed data storage device, Features The high-reliability cascaded DDR controller system as described in claim 6 is configured.
Citation Information
Cited By
DDR (Double Data Rate) controller exception handling method and device and storage medium
CN119597527A
