A zero-padding truncation mixing system and method with configurable data length

CN123011641APending Publication Date: 2026-10-30NANJING RES INST OF ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611179033.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-10-30

AI Technical Summary

Technical Problem

[0003]现有的设计方法通常是针对特定长度和模式设计定制化的模块,通用性和灵活性差

Benefits of technology

[0009]本发明输出数据长度可动态配置,具有灵活性;接口均为AXI Stream接口,容易和其它接口模块连接,具有通用性;内部设计了监测信息收集模块,用于监测模块的状态信息,便于定位问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123011641A_ABST
    Figure CN123011641A_ABST
Patent Text Reader

Abstract

The application discloses a zero padding and intercepting mixed processing system and method with configurable data length, which comprises a parameter analysis module, a data processing module and a monitoring information collection module. Configuration parameters are obtained from configuration data, including a data length parameter L. The system receives data to be processed with an effective length of last by using an AXI Stream interface. If last is greater than the data length parameter L, intercepting processing is performed. If last is less than the data length parameter L, zero padding processing is performed. If last is equal to the data length parameter L, the data is directly output. The state of the system is collected to generate monitoring information for reporting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of signal processing technology and relates to a data zero-padding and truncation technique. Background Technology

[0002] In signal processing fields such as communications, audio and video processing, and radar signal processing, data streams are often of variable length, such as variable-point FFT frames or different frames outputting result data of varying lengths. However, many core processing modules in actual processing systems, such as fixed-point FFT IP cores and fixed-depth filters, require input data to have a fixed length.

[0003] Existing design methods typically involve customizing modules for specific lengths and patterns, resulting in poor versatility and flexibility. Therefore, a preprocessing module is needed that can adaptively pad or truncate data based on the configured target data length, transforming variable-length data streams into the required length for subsequent processing. Summary of the Invention

[0004] This invention provides a data length configurable zero-padding and truncation hybrid processing module, which adaptively pads or truncates the output data according to the configured output data length, realizes automatic switching of zero-padding and truncation modes, and meets the data length requirements of subsequent modules.

[0005] The system includes a parameter parsing module, a data processing module, and a monitoring information collection module. The parameter parsing module receives configuration data, parses the configuration parameters from it, and configures the data processing module. The data processing module uses the AXI Stream interface to receive the data to be processed, and automatically pads or truncates the data to be processed according to the data length parameter configured by the parameter parsing module before outputting it. The monitoring information collection module is used to report the monitoring information of the module.

[0006] The method includes the following steps: Step 1: Parse and obtain configuration parameters from the configuration data, including the data length parameter L; Step 2: Receive the data to be processed with a valid length of last using the AXI Stream interface. If last is greater than the data length parameter L, truncation is performed. If last is less than the data length parameter L, zero padding is performed. If last is equal to the data length parameter L, the data is output directly; Step 3: Collect the status of the system and generate monitoring information for reporting.

[0007] Truncation processing: Discard the last (last-L) input data.

[0008] Zero padding: When the input data is complete, stop receiving data. After the output data is complete, output L-last zeros.

[0009] The output data length of this invention can be dynamically configured, providing flexibility; all interfaces are AXI Stream interfaces, making it easy to connect with other interface modules and providing versatility; an internal monitoring information collection module is designed to monitor the status information of the module, facilitating problem location. Attached Figure Description

[0010] Figure 1 This is a schematic diagram of the zero-padding and truncation hybrid processing module.

[0011] Figure 2 This is the input / output timing diagram of the module in Example 1.

[0012] Figure 3 This is the input / output timing diagram of the module in Example 2.

[0013] Figure 4 This is the input / output timing diagram of the module in Example 3. Detailed Implementation

[0014] The present invention will be further described in detail below with reference to the embodiments and the accompanying drawings.

[0015] System principle and structure as follows Figure 1 As shown, it includes a parameter parsing module, a data processing module, and a monitoring information collection module. The parameter parsing module is used to receive configuration data, parse the configuration parameters from it, and configure the data processing module. The data processing module uses the AXI Stream interface to receive the data to be processed, and automatically pads or truncates the data to be processed according to the data length parameter configured by the parameter parsing module before outputting it. The monitoring information collection module is used to report the monitoring information of the module.

[0016] The method and steps include: Step 1, parsing and obtaining configuration parameters from the configuration data, including the data length parameter; Step 2, using the AXI Stream interface to receive data to be processed with a valid length of last. If last is greater than the data length parameter, truncation is performed and redundant data is discarded. If last is less than the data length parameter, zero padding is performed and the data is added to the data length parameter. If last is equal to the data length parameter, the data is output directly; Step 3, collecting the system status and generating monitoring information for reporting. Example

[0017] The system is connected to an FFT IP core to perform a 16-point FFT output. The input data length is 20, which is longer than the output data length, so truncation is required. When the number of input data reaches 16, the last 4 input data are discarded. The input / output timing diagram is as follows. Figure 2 As shown. Example

[0018] This module is connected to an FFT IP core for 16-point FFT output. The input data length is 11, which is shorter than the output data length, so zero padding is applied. Data reception stops when the input data is complete, and five zeros are output after the output data is complete. The input / output timing diagram is as follows: Figure 3 As shown. Example

[0019] This module is connected to an FFT IP core to perform a 16-point FFT output. The input data length is 16, which is equal to the output data length. The output is directly output. The input / output timing diagram is as follows. Figure 4 As shown.

[0020] The above embodiments do not limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention are included within the scope of protection.

Claims

1. A data length configurable zero-padding and truncation hybrid processing system, characterized in that, include: The system comprises a parameter parsing module, a data processing module, and a monitoring information collection module. The parameter parsing module receives configuration data, parses the configuration parameters from it, and configures the data processing module. The data processing module receives the data to be processed, automatically pads or truncates the data according to the data length parameter configured in the parameter parsing module, and then outputs the data. The monitoring information collection module reports the monitoring information from the module.

2. The data length configurable zero-padding and truncation hybrid processing system according to claim 1, characterized in that, The data processing module uses the AXI Stream interface.

3. A data length configurable zero-padding and truncation hybrid processing method, characterized in that, include: Step 1: Parse and obtain configuration parameters from the configuration data, including the data length parameter L; Step 2: Receive the data to be processed with a valid length of last using the AXI Stream interface. If last is greater than the data length parameter L, truncation is performed. If last is less than the data length parameter L, zero padding is performed. If last is equal to the data length parameter L, the data is output directly; Step 3: Collect the system status and generate monitoring information for reporting.

4. The data length configurable zero-padding and truncation hybrid processing method according to claim 1, characterized in that, The interception process includes: discarding the last - L input data.

5. The data length configurable zero-padding and truncation hybrid processing method according to claim 1, characterized in that, The zero-padding process includes: stopping data reception when the input data is complete, and outputting L-last zeros after the output data is complete.