A programmable normalization coprocessor data processing system and method

By designing a programmable normalized co-processor and using high-reliability memory and custom instruction sets, the processing speed and storage space limitations of miniature static infrared earth sensors in image data processing are solved, and flexible and efficient data processing is achieved. , reducing R&D difficulty and resource consumption, and suitable for complex data processing needs.

CN114840257BActive Publication Date: 2024-10-25BEIJING INST OF CONTROL ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210301072.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-24
Publication Date
2024-10-25
Estimated Expiration
2042-03-24

AI Technical Summary

Technical Problem

The new generation of miniature static infrared earth sensors faces processing speed and storage space limitations in image data processing. Traditional hardware acceleration methods have fixed functions and high costs, and cannot meet the needs of complex image data processing.

Method used

A programmable normalized coprocessor data processing system is designed. Through high-reliability memory design address jump instructions and data processing algorithm instructions, the flexibility and efficiency of data sorting and processing are achieved, including data reception and processing, address jump The transfer instruction analysis and programmable data rearrangement sub-modules, as well as the source data acquisition and processing, solution instruction analysis and basic operation unit sub-modules, realize the sorting and processing of image data.

Benefits of technology

It achieves reduced logic resource occupation, shortened R&D cycle, improved processing efficiency, improved system operation robustness, is suitable for complex data processing, and reduces FPGA internal logic resource consumption and overall product cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840257B_ABST
    Figure CN114840257B_ABST
Patent Text Reader

Abstract

A programmable normalized coprocessor data processing system and method, which designs a universal data processing architecture, reduces the use of logic resources, improves data processing speed, reduces software calculations, and normalizes complex and multi-type data processing. This method is efficient, flexible and universal. It has been successfully applied to the development of a new generation of satellite-borne micro-static infrared earth sensors.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, in particular to a programmable normalized coprocessor data processing method, which is suitable for the development of a new generation of micro static infrared earth sensors. Background Art

[0002] As an important attitude measurement product for spacecraft, infrared earth sensors are widely used in aircraft control subsystems. By measuring the relative position between the body and the earth, and through data fusion and attitude solution, the pitch and roll direction attitude information of the body relative to the earth is obtained.

[0003] In the development process of the new generation of micro static infrared earth sensors, a fully digital design scheme is adopted to meet the requirements of miniaturization and low cost. It is necessary to complete image data sorting, image denoising, image compensation algorithm, image non-uniformity correction, image bad pixel removal, earth image processing, geocentric vector calculation and other functions.

[0004] During the development process, the product's CPU was 80C32, with an 8-bit MCU core and a main frequency of 22MHz. Its performance could not meet the requirements of the above complex image data processing and solving. The MCU+FPGA (taking A54SX72A as an example) solution was used to complete the above functions, but faced the following technical problems:

[0005] (1) The source image data is sorted and calculated using MCU software. Due to the limitations of processing speed and storage space, there is severe hysteresis and it cannot match the image data refresh rate and posture settlement cycle requirements. Hardware acceleration is required.

[0006] (2) Hardware acceleration through FPGA. Traditional hardware acceleration methods have fixed functions. During the R&D process, when faced with changes in algorithm solutions, data sorting and data processing optimization adjustments, they need to be constantly redesigned, which increases the difficulty of R&D and prolongs the R&D cycle.

[0007] (3) The selected FPGA chip has limited internal logic resources to complete the full-process processing of the above image data, and cannot be fully realized. The high-performance CPU+FPGA solution is selected, and the cost of the whole product increases greatly, which cannot adapt to future commercial aerospace applications. Summary of the invention

[0008] The technical problem solved by the present invention is: to overcome the deficiencies of the prior art, analyze, extract and summarize the above problems, and propose a programmable normalization coprocessor data processing system and method.

[0009] The technical solution of the present invention is: a programmable normalization coprocessor data processing system, a data sorting normalization coprocessor, a data algorithm normalization coprocessor; a target sequence data storage device, a high-reliability storage device;

[0010] The high-reliability memory designs address jump instructions and data processing algorithm instructions for source sequence data according to preset storage rules;

[0011] The data sorting normalization coprocessor completes the sorting of the original sequence to the target sequence by parsing the address jump instruction input by the high-reliability memory, and stores the sorted target sequence in the target sequence data memory; the original sequence is the source sequence data output by the sensor;

[0012] The data algorithm normalization coprocessor reads the target sequence data from the target sequence data memory, operates on the read target sequence data according to the data processing algorithm instructions input from the high-reliability memory, and completes the processing of all the target sequence data.

[0013] Preferably, the data sorting normalization coprocessor comprises a data receiving and processing submodule, an address jump instruction parsing submodule, and a data programmable rearrangement submodule;

[0014] The data receiving and processing submodule receives the source sequence data output by the sensor, receives the valid flag tick signal between the start tick signal and the end tick signal of the source sequence data, and latches the data corresponding to the valid flag tick signal, which is recorded as data_M_N;

[0015] The address jump instruction parsing submodule reads the address jump instruction through address addressing, performs decoding and parsing, and obtains the new destination address x of the data data_M_N after reordering;

[0016] The data programmable rearrangement submodule stores the latch signal data_M_N into the destination address x of the target sequence data memory.

[0017] Preferably, the data receiving and processing submodule, the address jump instruction parsing submodule, and the data programmable rearrangement submodule are instantiated and integrated, and the logic control parts of the three submodules are completed through the state machine design; the source sequence data is received and stored after data rearrangement as a closed-loop control process i; the state machine design performs cyclic control on the closed-loop control process i according to the capacity of the source sequence data and the target sequence data to complete the sorting of all the source sequence data.

[0018] Preferably, the address jump instruction is a custom instruction, and according to a preset address jump sequence, a corresponding address is assigned to each source sequence data in the above order.

[0019] Preferably, the data algorithm normalization coprocessor includes a source data acquisition processing submodule, a solution instruction parsing submodule, and a basic operation unit submodule;

[0020] The source data acquisition processing submodule reads the target sequence data from the target sequence data storage device and performs data validity judgment to obtain valid data to be processed;

[0021] The calculation instruction parsing submodule decodes and parses the data processing algorithm instructions, and decomposes the algorithm in the image data processing process into basic operation processes;

[0022] The basic operation unit submodule performs operations on valid data to be processed according to the basic operation process to obtain image data processing results.

[0023] Preferably, the basic operation unit submodule includes but is not limited to a data fixed-point to floating-point conversion module, a data fixed-point four arithmetic operation module, a data floating-point four arithmetic operation module, a data floating-point to fixed-point operation module, and an operation result fitting module. The corresponding modules are called during the basic operation process according to different algorithm flow requirements so that the algorithm flow can be executed smoothly in sequence.

[0024] Preferably, if parallel processing is required, multiple basic computing unit submodules are designed to complete the calculation in parallel.

[0025] Preferably, for all image data processing processes required by the design, a data processing algorithm instruction set is written and downloaded into a high-reliability memory;

[0026] According to the design requirements of source sequence data to target sequence data, write the content of the re-arranged address jump instruction set and download it to the high-reliability memory.

[0027] Preferably, the data sorting normalization coprocessor, the data algorithm normalization coprocessor, and the target sequence data storage run in an FPGA or an ASIC.

[0028] A programmable normalization coprocessor data processing method runs the following steps in an FPGA or ASIC:

[0029] Receive the original sequence, i.e., the source sequence data output by the sensor, receive the valid flag tick signal between the start tick signal and the end tick signal of the source sequence data, and latch the data corresponding to the valid flag tick signal, recorded as data_M_N;

[0030] Through address addressing, read the address jump instruction, perform decoding and analysis, and obtain the new destination address x of the data data_M_N after reordering;

[0031] The latch signal data_M_N is stored in the destination address x of the target sequence data memory; the original sequence is sorted into the target sequence;

[0032] Reading target sequence data from a target sequence data storage device and performing data validity judgment to obtain valid data to be processed;

[0033] Receive data processing algorithm instructions and decode and analyze the data processing algorithm instructions, and decompose the algorithm in the image data processing process into basic operation processes;

[0034] The effective data to be processed is calculated according to the basic calculation process to obtain the image data processing result.

[0035] The advantages of the present invention compared with the prior art are:

[0036] (1) Normalized coprocessor data processing method, the logic resource occupancy is 1 / 3 of the traditional data processing method, and can be further reduced as the complexity increases.

[0037] (2) The programmable data processing method solves the problem of functional lock-in in traditional data processing models and the need to change the design to adjust the processing algorithm, greatly simplifying the regression iteration in the R&D process.

[0038] (3) Customized reduced instruction set, scalable coprocessor architecture, parallel and pipeline processing, the overall effect can increase the speed by an order of magnitude compared to traditional data processing methods.

[0039] (4) Deep integration of data and instructions and instruction verification can improve the robustness of system operation compared with traditional processing methods.

[0040] (5) By sorting different data and extracting data algorithm features, a programmable normalization coprocessor data processing method is proposed, which can realize flexible and variable data processing mode through external memory instruction programming.

[0041] (6) A streamlined custom data processing instruction set was designed, including address jump instructions and data algorithm instructions. The instruction set can be customized according to design requirements, reducing the us-level software instruction combination to the FPGA system main frequency ns level implementation.

[0042] (7) The designed data processing method can be implemented by hardware tailoring, parallel computing, and pipeline processing. It can complete parallel processing of multiple data sources, data sorting, denoising, correction, and bad pixel elimination pipeline processing, and the processing efficiency can be doubled. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A data sorting block diagram based on a programmable normalization coprocessor of the present invention;

[0044] Figure 2 A comparison chart of the effects of a non-programmable normalized sorting method and a programmable normalized sorting method;

[0045] Figure 3 A data processing block diagram based on a programmable normalization coprocessor of the present invention;

[0046] Figure 4 This is a comparison chart of the effects of CPU software calculation method, non-programmable normalization hardware acceleration calculation method and programmable normalization calculation method; DETAILED DESCRIPTION

[0047] The present invention comprises two parts: data sorting and data calculation.

[0048] (I) Data sorting

[0049] Data sorting completes the function of sorting the raw data output by the sensor. The method of the present invention generates the required target sequence data by setting instructions according to the source sequence data, and can adapt to different types of data sensors. The method of the present invention is described in detail in conjunction with the accompanying drawings. Figure 1 , Figure 2 The method of the present invention comprises the following steps:

[0050] Step 1: According to the data sensor model used and the working mode used by the data sensor, the source sequence data format output by the sensor at different times is obtained.

[0051] Step 2: Design the communication interface of the corresponding data sensor, receive the source sequence data output by the sensor, and output it to the data sorting and normalization coprocessor. This step plays the role of data pipeline and does not process the data.

[0052] Step 3, design a data sorting normalization coprocessor, which is implemented by three sub-modules: data receiving and processing, address jump instruction parsing, and data programmable rearrangement. It includes the design of each sub-module and the overall integrated design of the module.

[0053] Step a, implement the image data receiving and processing submodule design:

[0054] Receive the source sequence data outputted by step 2, receive the valid flag tick signal between the start tick signal and the end tick signal of the source sequence data, and latch the data corresponding to the valid flag tick signal, recorded as data_M_N.

[0055] Step b, implement the address jump instruction parsing submodule design:

[0056] Through address addressing, read the data in the high-reliability memory and rearrange the address jump instruction. Perform decoding and analysis to obtain the data read in step a and the new destination address x after reordering.

[0057] Step c, implement the data programmable rearrangement submodule design:

[0058] The data data_M_N obtained in step a and step b is stored in the destination address x of the data storage. The data storage can be a volatile memory (such as SRAM) or a non-volatile memory (such as Flash). The sorted target sequence data can be used by the data processing module or the data download module.

[0059] Step d: realize the integration of the above three sub-modules:

[0060] The submodules designed in step a, step b, and step c are instantiated and integrated, and the logic control parts of the three submodules are completed through the state machine design. The source sequence data is received and stored after data rearrangement as a closed-loop control process i. The state machine design loops and controls the closed-loop control process i according to the capacity of the source sequence data and the target sequence data to complete the sorting of all data.

[0061] The present invention needs to design a type of custom address jump instruction in the data sorting process. For example: In step 3 sub-step a, if the source sequence data is stored at address A of the target sequence data, the next source sequence data is stored at target address B. Then step 3 sub-step b will read the next address jump instruction In step 3, sub-step a, if the source sequence data is stored at address C of the target sequence data, the next source sequence data is stored at target address D, and so on, to complete the sorting of all data.

[0062] According to the design requirements for the source sequence data to the target sequence data, the content of the re-arranged address jump instruction set is written and downloaded to the high-reliability memory to adapt to the space radiation-resistant high-reliability application.

[0063] When the plan changes during the development process and data sorting needs to be optimized and adjusted, it is only necessary to program the address jump instructions in the external high-reliability memory to implement a flexible sorting method without changing the FPGA design, reducing the difficulty and cycle of research and development.

[0064] The address jump instruction is scalable. According to the actual design requirements, the following instructions can be designed but not limited to: address removal instruction, address pause instruction, address offset instruction, address mirror instruction, address data truncation instruction, etc. It can be simplified, trimmed and expanded according to the actual design requirements.

[0065] (II) Data calculation

[0066] The data calculation completes the image denoising, image compensation algorithm, image non-uniformity correction, image bad pixel removal and other data processing functions. It can adapt to different data processing algorithms, and the method of the present invention is described in detail in conjunction with the accompanying drawings, such as Figure 3 , Figure 4 The method of the present invention comprises the following steps:

[0067] Step 1: First, read out the image data in the data memory after data sorting (ie, the target sequence data memory), and complete it through the read memory timing interface.

[0068] Step 2, according to the image data processing process required by the design (in the design process of the background micro-static infrared earth sensor in this example, it includes image denoising, image compensation algorithm, image non-uniformity correction, and image bad pixel removal), decompose the algorithm processing steps and decompose the algorithm flow into basic operation flows.

[0069] Step 3, design the data algorithm normalization coprocessor module, which is implemented by three sub-modules: source data acquisition and processing, solution instruction parsing, and basic operation unit. It includes the design of each sub-module and the overall integrated design of the module.

[0070] Step a, implement the image source data acquisition and processing submodule design:

[0071] Receive the source data outputted by step 1, address according to the address, read the data to be processed, make validity judgment on the data (such as threshold judgment), and start data processing. For example: data_M_N.

[0072] Step b, implement the design of the instruction parsing submodule:

[0073] Through addressing, read the data processing algorithm instructions in the high-reliability memory and perform decoding and analysis. For the data obtained in step a, perform operations based on the basic operation steps decomposed from the data processing. Including but not limited to clarifying the operands, operation types, result decimal part processing of the basic operation, and storage of the operation results.

[0074] Step c: Implement the basic operation unit submodule design:

[0075] The basic operation unit submodule includes but is not limited to a data fixed-point to floating-point conversion module, a data fixed-point four arithmetic operation module, a data floating-point four arithmetic operation module, a data floating-point to fixed-point operation module, and an operation result fitting module. The basic operation unit submodule completes all operations in the basic operation steps decomposed from data processing. If there is a need for parallel processing, multiple basic operation modules can be designed and instantiated to complete and high-speed operations.

[0076] Step d: realize the integration of the above three sub-modules:

[0077] The submodules designed in step a, step b, and step c are instantiated and integrated, and the logic control parts of the three submodules are completed through the state machine design. The reading of the source sequence data to the basic operation of data processing is completed as a closed-loop control process i. The state machine design loops and controls the closed-loop control process i according to the image data processing process to complete all data processing work.

[0078] In the data processing process of the present invention, a type of custom data processing algorithm instructions needs to be designed. For example: In step 3 sub-step b, the instruction is parsed to obtain the basic operations required in step 3 sub-step c and the result processing. After completing a closed-loop control process i in step 3 sub-step d, the next data processing algorithm instruction will be read, and so on, all data processing is completed to obtain the target algorithm result, such as posture information.

[0079] According to all the image data processing processes required by the design, the data processing algorithm instruction set content is written and downloaded to the high-reliability memory to adapt to the high-reliability application of space radiation resistance.

[0080] When the scheme changes during the development process and the data processing algorithm needs to be optimized and adjusted, it is only necessary to program the address jump instruction in the external high-reliability memory in step 5 to implement a flexible sorting method without changing the FPGA design.

[0081] The data processing algorithm is scalable. According to the actual design requirements, the following instructions can be designed but not limited to, such as: calculation loop instructions, calculation arbitration instructions, calculation jump instructions, calculation fitting instructions, etc. It can be simplified, trimmed and expanded according to the actual design requirements.

[0082] The present invention is implemented on Actel's A54SX72A FPGA chip, and the image processing time is reduced from several seconds to hundreds of milliseconds; the FPGA internal logic resource usage is reduced from 300% to 80%, greatly reducing resource consumption; through programmable normalization characteristics, it can adapt to different data sorting and calculation requirements. It is suitable for complex data processing and is implemented through a general architecture with high efficiency, flexibility and universality. The contents not described in detail in the specification of the present invention belong to the common technology of those skilled in the art.

Claims

1. A programmable normalization coprocessor data processing system, characterized in that: Data sorting normalization coprocessor, data algorithm normalization coprocessor; target sequence data storage, high-reliability storage; The high-reliability memory designs address jump instructions and data processing algorithm instructions for source sequence data according to preset storage rules; The data sorting normalization coprocessor completes the sorting of the original sequence to the target sequence by parsing the address jump instruction input by the high-reliability memory, and stores the sorted target sequence in the target sequence data memory; the original sequence is the source sequence data output by the sensor; The data algorithm normalization coprocessor reads the target sequence data from the target sequence data memory, operates on the read target sequence data according to the data processing algorithm instructions input from the high-reliability memory, and completes the processing of all the target sequence data.

2. The system according to claim 1, characterized in that: The data sorting normalization coprocessor, the data algorithm normalization coprocessor, and the target sequence data memory run in the FPGA or ASIC.

3. The system according to claim 1, characterized in that: The data sorting normalization coprocessor comprises a data receiving and processing submodule, an address jump instruction parsing submodule, and a data programmable rearrangement submodule; The data receiving and processing submodule receives the source sequence data output by the sensor, receives the valid flag tick signal between the start tick signal and the end tick signal of the source sequence data, and latches the data corresponding to the valid flag tick signal, which is recorded as data_M_N; The address jump instruction parsing submodule reads the address jump instruction through address addressing, performs decoding and parsing, and obtains the new destination address x of the data data_M_N after reordering; The data programmable rearrangement submodule stores the latch signal data_M_N into the destination address x of the target sequence data memory.

4. The system according to claim 3, characterized in that: The data receiving and processing submodule, the address jump instruction parsing submodule, and the data programmable rearrangement submodule are instantiated and integrated, and the logic control parts of the three submodules are completed through state machine design; The source sequence data is received, rearranged and stored as a closed-loop control process i. The state machine is designed to perform cyclic control on the closed-loop control process i according to the capacity of the source sequence data and the target sequence data to complete the sorting of all the source sequence data.

5. The system according to claim 1, characterized in that: The address jump instruction is a custom instruction, and according to the preset address jump sequence, a corresponding address is assigned to each source sequence data in the above sequence.

6. The system according to claim 1, characterized in that: The data algorithm normalization coprocessor includes a source data acquisition processing submodule, a solution instruction parsing submodule, and a basic operation unit submodule; The source data acquisition processing submodule reads the target sequence data from the target sequence data storage device and performs data validity judgment to obtain valid data to be processed; The calculation instruction parsing submodule decodes and parses the data processing algorithm instructions, and decomposes the algorithm in the image data processing process into basic operation processes; The basic operation unit submodule performs operations on valid data to be processed according to the basic operation process to obtain image data processing results.

7. The system according to claim 6, characterized in that: The basic operation unit submodules include but are not limited to a data fixed-point to floating-point conversion module, a data fixed-point four arithmetic operation module, a data floating-point four arithmetic operation module, a data floating-point to fixed-point operation module, and an operation result fitting module. According to different algorithm flow requirements, the corresponding modules are called during the basic operation flow so that the algorithm flow can be executed smoothly in sequence.

8. The system according to claim 6, characterized in that: If parallel processing is required, multiple basic computing unit submodules are designed to complete the calculation in parallel.

9. The system according to claim 1, characterized in that: For all the image data processing processes required by the design, write a data processing algorithm instruction set and download it to a high-reliability memory; According to the design requirements of source sequence data to target sequence data, write the content of the re-arranged address jump instruction set and download it to the high-reliability memory.

10. A programmable normalization coprocessor data processing method, characterized in that Run the following steps in FPGA or ASIC: Receive the original sequence, i.e., the source sequence data output by the sensor, receive the valid flag tick signal between the start tick signal and the end tick signal of the source sequence data, and latch the data corresponding to the valid flag tick signal, recorded as data_M_N; Through address addressing, read the address jump instruction, perform decoding and analysis, and obtain the new destination address x of the data data_M_N after reordering; The latch signal data_M_N is stored in the destination address x of the target sequence data memory; the original sequence is sorted into the target sequence; Reading target sequence data from a target sequence data storage device and performing data validity judgment to obtain valid data to be processed; Receive data processing algorithm instructions and decode and analyze the data processing algorithm instructions, and decompose the algorithm in the image data processing process into basic operation processes; The effective data to be processed is calculated according to the basic calculation process to obtain the image data processing result.