Method and system for realizing large-scale DDC based on FPGA
By dividing channels in FPGA and using DDR3 memory cache to process broadband data, the problem of insufficient resources in traditional technology is solved, large-scale DDC digital signal processing is realized, and the needs of real-time output and playback functions are met.
Patent Information
- Application Number
- CN202010761277.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-31
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-07-31
AI Technical Summary
The traditional BRAM+DSP-based method requires insufficient FPGA chip resources when implementing large-scale DDC operations and cannot meet the needs of related functions.
By setting the bandwidth, center frequency and delay length parameters of the DDC in the FPGA, the broadband data is divided into multiple channels and written into the DDR3 memory. The DDR3 memory cache is used for data processing, including complex multiplication, DDS mixing, CIC and FIR filtering. and other steps to achieve large-scale DDC digital signal processing.
It realizes large-scale DDC digital signal processing, meets the needs of full-band real-time output and online playback functions, and avoids the problem of insufficient resources.
Smart Images

Figure CN112015693B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of digital signal processing based on FPGA, and relates to a method and a system for realizing large-scale DDC based on FPGA. Background Art
[0002] As the quality of wireless communication increases, the processing of airborne radio signals also faces huge challenges. Traditional DDC processing technology no longer meets the digital signal processing requirements of large-scale DDC. The traditional multi-channel DDC implementation solution uses DSP+BRAM, but since the BRAM inside the FPGA is very scarce, taking the XC7Z100 chip as an example, its internal BRAM is only about 3MB. Using this chip to implement a 50kHz bandwidth DDC can only achieve about 400 channels at most. Using the conventional BRAM+DSP method in traditional digital signal processing to implement large-scale multi-channel DDC operations will cause serious resource shortages for FPGA chips, which is not conducive to the realization of related functions. Summary of the invention
[0003] The purpose of the present invention is to provide a method and system for realizing large-scale DDC based on FPGA, which solves the problem that the conventional BRAM+DSP method used in traditional digital signal processing to realize large-scale multi-channel DDC operation will cause serious resource shortage for FPGA chip and be unfavorable for the realization of related functions.
[0004] The technical solution adopted by the present invention is as follows:
[0005] The method for implementing large-scale DDC based on FPGA includes the following steps:
[0006] Step 1: Set the bandwidth, center frequency, and delay length parameters of the DDC and cache them;
[0007] Step 2: Divide the broadband data into multiple channels, and write the broadband data of each channel into the DDR3 memory cache respectively;
[0008] Step 3: Read broadband data of a certain length cached in the DDR3 memory according to the input parameters, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching.
[0009] Step 4: Perform DDC processing on the read broadband data.
[0010] Furthermore, the step 2 comprises the following steps:
[0011] Step 21: Evenly divide the broadband data into multiple channels to form channelized broadband data;
[0012] Step 22: Divide the address interval of the DDR3 memory and set one channel to correspond to one address interval;
[0013] Step 23: Write the broadband data into the DDR3 memory cache to the corresponding address interval according to the channel.
[0014] Furthermore, the step 3 comprises the following steps:
[0015] Step 31: When reading for the first time, input bandwidth, center frequency, and delay length parameters, read broadband data of a certain length cached in the DDR3 memory, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching;
[0016] Step 32: When reading again, input the frequency control word, phase, and delay length parameters cached last time, read a certain length of broadband data cached in the DDR3 memory, the broadband data includes the last segment of broadband data read last time, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching.
[0017] Further, the DDC processing comprises the following steps:
[0018] Step 41: The read broadband data is mixed with the IQ signal of the DDS through complex multiplication;
[0019] Step 42: decimation filtering through CIC, FIR1 and FIR2;
[0020] Step 43: Output the IQ signals of the multi-channel DDC through FIR3 shaping filtering.
[0021] Furthermore, a level signal of the digital signal processed by the DDC is obtained, and when the level signal exceeds a preset level signal, the digital signal cached in the DDR3 memory is read.
[0022] The system for realizing large-scale DDC based on FPGA is characterized by comprising a parameter cache module, a broadband channelization module, a DDR3 memory, a DDC processing module, a data writing module, a data reading module, a data source cache module, a timing control module and a DDR3 control module, wherein:
[0023] The parameter cache module is used to cache parameters;
[0024] The broadband channelization module divides broadband data into multiple channels;
[0025] The DDR3 memory is used to cache broadband data of each channel;
[0026] The DDC processing module performs DDC processing on the read broadband data;
[0027] The data source cache module is used to cache the read broadband data;
[0028] A timing control module is used to exert time control on the signal;
[0029] The DDR3 control module is used to control the DDR3 data writing module to write broadband data into the memory, to control the data reading module to read broadband data out of the memory, and to control the frequency control word, phase, and delay length parameters of the currently read broadband data to be cached in the parameter cache module.
[0030] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0031] The present invention uses a local clock to quickly divide broadband data into multiple channels and write all of them into a DDR3 memory. When writing, each channel of channelized broadband data has a corresponding start address, and delayed output is performed to realize full-band real-time output function, online playback function and broadband delay function, which can meet the digital signal processing needs of large-scale DDC. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative work, among which:
[0033] Figure 1 It is a principle block diagram of the present invention;
[0034] Figure 2 It is a schematic diagram of address division of the DDR3 memory of the present invention;
[0035] Figure 3 is a block diagram of a DDR3 control module of the present invention;
[0036] Figure 4 It is a principle block diagram of the DDC processing module of the present invention;
[0037] Figure 5 It is a new signal capture principle diagram of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the embodiments described are only part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0039] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.
[0040] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0041] Explanation of professional terms:
[0042] FPGA: FPGA (Field Programmable Gate Array) is a product further developed on the basis of programmable devices such as PAL and GAL. It appears as a semi-custom circuit in the field of application-specific integrated circuits (ASICs), which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices.
[0043] DDC: Digital down conversion refers to a mixing method in which the intermediate frequency signal obtained after mixing in a superheterodyne receiver is lower in frequency than the original signal. It is one of the core technologies of software radio.
[0044] DDR3: DDR3 is a computer memory specification. It belongs to the SDRAM family of memory products, providing higher operating performance and lower voltage than DDR2 SDRAM. It is the successor of DDR2 SDRAM (synchronous dynamic random access memory) (increased to eight times), and is also a popular memory product specification.
[0045] DDS: DDS signal generator uses direct digital synthesis (DDS) technology to improve the frequency stability and accuracy of the signal generator to the same level as the reference frequency, and can perform fine frequency adjustment in a wide frequency range. The signal source designed using this method can work in a modulation state, adjust the output level, and output various waveforms.
[0046] CIC: In digital signal processing, the CIC filter is the best FIR filter, which uses integration and comb filter cascade.
[0047] FIR: Finite length unit impulse response filter, also known as non-recursive filter, is the most basic element in digital signal processing system. It can have strict linear phase-frequency characteristics while ensuring arbitrary amplitude-frequency characteristics. At the same time, its unit sampling response is finite length, so the filter is a stable system. Therefore, FIR filter is widely used in communication, image processing, pattern recognition and other fields.
[0048] Example 1
[0049] The method for realizing large-scale DDC based on FPGA provided by the present invention comprises the following steps:
[0050] Step 1: Set the bandwidth, center frequency, and delay length parameters of the DDC and cache them;
[0051] Step 2: Divide the broadband data into multiple channels, and write the broadband data of each channel into the DDR3 memory cache respectively;
[0052] Wherein, the step 2 comprises the following steps:
[0053] Step 21: Evenly divide the broadband data into multiple channels to form channelized broadband data;
[0054] Step 22: Figure 2 As shown, the address interval of the DDR3 memory is divided, and one channel is set to correspond to one address interval;
[0055] Step 23: Write the broadband data into the DDR3 memory cache to the corresponding address interval according to the channel.
[0056] Step 3: Read broadband data of a certain length cached in the DDR3 memory according to the input parameters, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching.
[0057] When implemented, the step 3 includes the following steps:
[0058] Step 31: When reading for the first time, input bandwidth, center frequency, and delay length parameters, read broadband data of a certain length cached in the DDR3 memory, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching;
[0059] Step 32: When reading again, input the frequency control word, phase, and delay length parameters cached last time, read a certain length of broadband data cached in the DDR3 memory, the broadband data includes the last segment of broadband data read last time, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching.
[0060] It should be noted that during the processing process, different broadband data need to be processed by time-sharing DDC. In order to ensure the continuity of the output data, the three parameters of the frequency control word, bandwidth, and phase (phase is used to set the initial phase of DDS) of the broadband data need to be read in advance before each DDC processing. The frequency control word and bandwidth are external input parameters. At the same time, the data needs to read the last segment of data processed last time for "restoring the scene". The phase is an internal parameter. After the current processing is completed, the initial phase of the next processing needs to be calculated and cached for use in the next processing.
[0061] Step 4: Perform DDC processing on the read broadband data.
[0062] Specifically, Figure 3 As shown, the DDC process includes the following steps:
[0063] Step 41: The read broadband data is mixed with the IQ signal of the DDS through complex multiplication;
[0064] Step 42: decimation filtering through CIC, FIR1 and FIR2;
[0065] Step 43: Output the IQ signals of the multi-channel DDC through FIR3 shaping filtering.
[0066] Preferably, the level signal of the digital signal processed by the DDC is obtained, and when the level signal exceeds the preset level signal, the digital signal cached in the DDR3 memory is read. Figure 5As shown, the digital signal is displayed on the spectrum and cached in DDR3 at the same time. Its capacity can hold data for tens of seconds. For signals that need to be specially observed, it is only necessary to read them from DDR3 according to the time when the signal appears.
[0067] In summary, the present invention uses a local clock to quickly divide broadband data into multiple channels and write all of them into the DDR3 memory. When writing, each channel of channelized broadband data has a corresponding starting address, and delayed output is performed to realize full-band real-time output function, online playback function and broadband delay function, which can meet the digital signal processing needs of large-scale DDC.
[0068] Example 2
[0069] Provides FPGA-based systems for large-scale DDC, such as Figure 1 As shown, it is characterized by comprising a parameter cache module, a broadband channelization module, a DDR3 memory, a DDC processing module, a data write module, a data read module, a data source cache module, a timing control module and a DDR3 control module, wherein:
[0070] The parameter cache module is used to cache parameters;
[0071] The broadband channelization module divides broadband data into multiple channels;
[0072] The DDR3 memory is used to cache broadband data of each channel;
[0073] The DDC processing module performs DDC processing on the read broadband data;
[0074] The data source cache module is used to cache the read broadband data;
[0075] A timing control module is used to exert time control on the signal;
[0076] like Figure 4 As shown, the DDR3 control module is used to control the DDR3 write data module to write broadband data into the memory, to control the read data module to read broadband data out of the memory, and to control the frequency control word, phase, and delay length parameters of the currently read broadband data to be cached in the parameter cache module.
[0077] During implementation, taking 1.5M-30M signal broadband data as an example, 1.5M-30M signals are collected in 6 channels, and then the 6 channels of full-band digital signals are divided into 57 channels of uniform channelized data with bandwidth BW=548KHz and FS=640KHz and channel spacing of 500KHz through 10-channel broadband channelization modules and 57-channel broadband channelization modules. The 57-channel channelized data are output through 285-channel broadband channelization modules to realize full-band high-resolution PSD. At the same time, the 57-channel channelized output data are also sent to the DDR3 memory for delayed output to realize the full-band IQ real-time output function, online playback function and 1024-channel DDC with broadband delay function. The bandwidths that can be realized for 1024-channel DDC are: 48kHz, 30kHz, 15kHz, 12kHz, 9kHz, 6kHz, 4.8kHz, 4kHz, 3.1kHz, 2.7kHz, 2.4kHz, 2.1kHz, 1.5, 1kHz, 600Hz, of which the DDC with 48kHz bandwidth is not less than 32. The maximum number of new signals is 1536 / min, and the intercept probability is 95% when the signal-to-noise ratio S / N ≥ 10dB.
[0078] The above description is only a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions and improvements made by any technician familiar with the field within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for implementing large-scale DDC based on FPGA, characterized in that: The following steps are involved: Step 1: Set the bandwidth, center frequency, and delay length parameters of the DDC and cache them; Step 2: Divide the broadband data into multiple channels; write the broadband data of each channel into the DDR3 memory cache respectively; Step 3: Read broadband data of a certain length cached in the DDR3 memory according to the input parameters, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching; Step 3 includes the following steps: Step 31: When reading for the first time, input bandwidth, center frequency, and delay length parameters, read broadband data of a certain length cached in the DDR3 memory, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching; Step 32: When reading again, input the frequency control word, phase, and delay length parameters cached last time, read a certain length of broadband data cached in the DDR3 memory, the broadband data includes the last segment of broadband data read last time, and record the frequency control word, phase, and delay length parameters of the currently read broadband data for caching; During the processing, different broadband data need to be processed by time-sharing DDC respectively. Before each DDC processing, the three parameters of the frequency control word, bandwidth and phase of the broadband data of this channel are read in advance. The phase is used to set the initial phase of DDS. The frequency control word and bandwidth are external input parameters. At the same time, the data needs to read the last segment of data processed last time to restore the scene. The phase is an internal parameter. After the current processing is completed, the initial phase of the next processing needs to be calculated and cached for the convenience of the next processing. Step 4: Perform DDC processing on the read broadband data.
2. The method for implementing large-scale DDC based on FPGA according to claim 1, characterized in that: The step 2 comprises the following steps: Step 21: Evenly divide the broadband data into multiple channels to form channelized broadband data; Step 22: Divide the address interval of the DDR3 memory and set one channel to correspond to one address interval; Step 23: Write the broadband data into the DDR3 memory cache to the corresponding address interval according to the channel.
3. The method for implementing large-scale DDC based on FPGA according to claim 1, characterized in that: The DDC process comprises the following steps: Step 41: The read broadband data is mixed with the IQ signal of the DDS through complex multiplication; Step 42: decimation filtering through CIC, FIR1 and FIR2; Step 43: Output the IQ signals of the multi-channel DDC through FIR3 shaping filtering.
4. The method for implementing large-scale DDC based on FPGA according to claim 1, characterized in that: The level signal of the digital signal processed by the DDC is obtained, and the digital signal cached in the DDR3 memory is read when the level signal exceeds the preset level signal.
5. The system according to any one of claims 1 to 4, wherein: It includes parameter cache module, broadband channelization module, DDR3 memory, DDC processing module, data writing module, data reading module, data source cache module, timing control module and DDR3 control module, among which: The parameter cache module is used to cache parameters; The broadband channelization module divides broadband data into multiple channels; The DDR3 memory is used to cache broadband data of each channel; The DDC processing module performs DDC processing on the read broadband data; The data source cache module is used to cache the read broadband data; A timing control module is used to exert time control on the signal; The DDR3 control module is used to control the DDR3 data writing module to write broadband data into the memory, to control the data reading module to read broadband data out of the memory, and to control the frequency control word, phase, and delay length parameters of the currently read broadband data to be cached in the parameter cache module.
