FPGA (Field Programmable Gate Array) multichannel DDC (Direct Digital Control) implementation method based on time division multiplexing
Through the two-stage mixing method and time-division multiplexing technology, the problem of resource waste and low utilization rate of the existing DDC pipeline when processing multiple target frequencies is solved, efficient multi-channel digital down-conversion is achieved, and resource utilization rate is improved. and FPGA resource usage efficiency.
Patent Information
- Application Number
- CN202410687748.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-10
AI Technical Summary
The existing DDC pipeline can only process one channel of data to downconvert a single target frequency at the same time. It is necessary to build a multi-stage pipeline to process multiple target frequencies, resulting in resource waste and low resource utilization.
Using a two-stage mixing method, the first-stage DDC divides the original signal into equal parts through N numerically controlled oscillation modules and extraction filter modules to reduce the sampling rate; the second-stage DDC digitally processes the first-stage mixed signal through M channels. Down conversion, multiplexing NCO and filters to process multiple channel data to achieve time-division multiplexing.
It improves resource utilization and can achieve down-conversion of multiple target frequencies while consuming the same resources, significantly reducing the consumption of FPGA resources and expanding the possibility of subsequent functions.
Smart Images

Figure CN118631176A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of digital signal processing, and in particular relates to an FPGA multi-channel DDC implementation method based on time-division multiplexing. Background Art
[0002] Digital down conversion (DDC) is a digital signal processing technology widely used in digital radio receivers. Digital down conversion refers to mixing the intermediate frequency signal collected by the ADC in the acquisition card to obtain a signal with a lower frequency than the intermediate frequency signal.
[0003] Digital down-conversion usually includes three modules: a numerically controlled oscillator (NCO) module, a mixing module, and a decimation filter module. The numerically controlled oscillator generates sine and cosine local oscillator signals, which are then multiplied with the input signals to complete the mixing, and finally the decimation filter is performed to obtain the output signal.
[0004] The existing technical solution is to collect the original intermediate frequency signal through ADC to obtain the original sampling data. The bandwidth of the data is equal to the sampling rate of the data. Then the NCO is controlled to generate a sine and cosine local oscillator signal with the same frequency as the original intermediate frequency signal, and then multiplied with the sampling data to complete the mixing, and obtain the difference frequency and the combined frequency. The combined frequency will be filtered out in the subsequent filtering module, and the difference frequency will be obtained here.
[0005] Since the frequency generated by the NCO is equal to the frequency of the original intermediate frequency signal, the spectrum of the difference frequency signal after mixing will be symmetrical about the origin, so that the spectrum can be moved to the baseband, the maximum extraction ratio can be achieved, and the signal sampling rate can be minimized.
[0006] The sampling rate of the mixed signal data is still equal to the sampling frequency of the ADC. At this time, the bandwidth of the signal is much smaller than the sampling rate of the data, so extraction filtering is required. The mixed signal passes through an anti-aliasing low-pass filter, and then through a half-band filter and FIR filter for extraction to complete the downsampling rate.
[0007] The DDC pipeline built by the existing technical solution can only process one channel of data at the same time to down-convert a single target frequency. If multiple target frequencies need to be down-converted at the same time, a multi-stage pipeline needs to be built, which will consume a large amount of DSP and LUT resources.
[0008] However, in the DDC pipeline, the data output rate is much lower than the data input frequency, and the bandwidth of the output signal is also much lower than the bandwidth of the input signal. While decimating the data and reducing the sampling rate, a lot of computing power is wasted. Due to the reduction in data sampling rate, in the subsequent filtering path, the filter is in a state of waiting for data most of the time. On the timeline, the resource utilization here is extremely low. Summary of the invention
[0009] The purpose of the present invention is to overcome the defects of the prior art and provide an FPGA multi-channel DDC implementation method based on time-division multiplexing, which utilizes the idle time of the filter path after downsampling in the DDC pipeline and processes the data of multiple channels by time-division multiplexing. It improves the utilization rate of resources and realizes down-conversion of multiple target frequencies while consuming the same resources.
[0010] The object of the present invention is achieved through the following technical solutions:
[0011] A method for implementing FPGA multi-channel DDC based on time-division multiplexing, the method comprising implementing digital down-conversion through two-stage mixing, specifically comprising:
[0012] First-level DDC: The original signal is divided into N equal parts through N digitally controlled oscillator modules and extraction filter modules and then reduced to zero frequency. The sampling rate of each signal is reduced to 1 / N of the original, and the total bandwidth of the N signals remains unchanged. N is a natural number.
[0013] Second-stage DDC: Digitally down-convert the signal after the first-stage mixer through M channels. Each channel selects the input signal from any signal output by the first-stage mixer. Each channel can down-convert N target frequencies at the same time and output N signals, where M is a natural number.
[0014] Furthermore, the first-stage mixing specifically includes:
[0015] The data sampled by ADC is multiplied by N numerically controlled oscillator modules respectively, and the original spectrum is divided into N equal parts, where N is the number of numerically controlled oscillator modules, and the frequency of each numerically controlled oscillator module is (2n-1)*fs / 2N, and n is the numerically controlled oscillator module serial number;
[0016] Move the spectrum after N equal divisions to zero frequency, and then reduce the signal sampling rate to 1 / N of the signal input rate.
[0017] Furthermore, the second-stage mixing specifically includes:
[0018] The signal with the target frequency is selected from the N signals output by the first-stage mixer as input, and the data of each channel is processed in turn through the digital control oscillation module and the filter.
[0019] Furthermore, the second-stage mixing further includes:
[0020] When the data processing of one channel is completed, the parameters of the numerically controlled oscillation module and the filter are cached, and then the next set of working parameters are loaded to process the data of the next channel.
[0021] Furthermore, the first-stage frequency mixing is implemented based on a first-stage frequency mixing unit, and the first-stage frequency mixing unit includes N digitally controlled oscillation modules and N low-pass filters, and the signal sampling rate is reduced by the low-pass filters.
[0022] Furthermore, the second-stage mixing is implemented based on a second-stage mixing unit. The second-stage mixing unit builds any number of signal processing channels according to FPGA chip resources and requirements. The second-stage mixing unit includes M digitally controlled oscillation modules and M filters.
[0023] The beneficial effects of the present invention are:
[0024] The present invention uses the principle of time-division multiplexing to multiplex the NCO and filter of the FPGA on the time axis to achieve the purpose of building more DDC channels with limited resources. Compared with the traditional DDC pipeline structure, the number of channels far exceeds that of the traditional structure with the same resources, which greatly improves the resource utilization rate and greatly reduces the consumption of FPGA resources, leaving more possibilities for the subsequent function expansion of the FPGA. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flowchart of a method for implementing FPGA multi-channel DDC based on time-division multiplexing according to an embodiment of the present invention;
[0026] Figure 2 This is a first-level frequency reduction flow chart of an embodiment of the present invention;
[0027] Figure 3 is a flow chart of second-stage down-conversion mixing channel selection in an embodiment of the present invention;
[0028] Figure 4 This is a flow chart of the second-stage mixing of an embodiment of the present invention. DETAILED DESCRIPTION
[0029] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0030] Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making any creative work shall fall within the scope of protection of the present invention.
[0031] The DDC pipeline built by the existing technical solution can only process one channel of data at the same time to down-convert a single target frequency. If multiple target frequencies need to be down-converted at the same time, a multi-stage pipeline needs to be built, which will consume a large amount of DSP and BRAM resources.
[0032] However, in the DDC pipeline, the data output rate is much lower than the data input frequency, and the bandwidth of the output signal is also much lower than the bandwidth of the input signal. While decimating the data and reducing the sampling rate, a lot of computing power is wasted. Due to the reduction in data sampling rate, in the subsequent filtering path, the filter is in a state of waiting for data most of the time. On the timeline, the resource utilization here is extremely low.
[0033] In order to solve the above technical problems, the following embodiments of the FPGA multi-channel DDC implementation method based on time-division multiplexing of the present invention are proposed.
[0034] Reference Figure 1 As shown in the figure, this is a flowchart of the FPGA multi-channel DDC implementation method based on time-division multiplexing in this embodiment. This method uses a two-stage mixing method to achieve digital down-conversion, which can achieve M×N mixing methods. This embodiment is described in a 3×4 method.
[0035] The first stage of mixing multiplies the ADC sampled data with four NCOs, whose frequencies are fs / 8, 3fs / 8, 5fs / 8 and 7fs / 8 respectively. These four mixings will divide the original spectrum into four equal parts, and then move the spectrum of these four parts to zero frequency respectively. After that, they will pass through a low-pass filter with a sampling rate of 4, and the signal sampling rate of the four channels of the first frequency conversion will be reduced to one-fourth of the original. Figure 2 ,like Figure 2 The figure shows the first level frequency reduction flow chart of this embodiment.
[0036] The significance of the first-stage mixer is that after reducing the sampling rate of the signal, it is equivalent to reducing the input signal rate of the subsequent second-stage mixer module. At the same time, the second-stage mixer module can arbitrarily select the signals of the four channels output by the first-stage mixer module as the input signal. While reducing the rate, the bandwidth of the input signal is not lost. The analyzable bandwidth is still equal to the sampling rate of the ADC. While maintaining the working rate of the second-stage mixer module, reducing the rate of the input signal means that after the second-stage mixer module processes the data of the first-stage mixer module, there is still a long idle time. Before the data of the next point of this channel arrives, it can process the data of 3 channels again, so the multiplexing of the NCO and filter of the second-stage mixer module can be realized.
[0037] The second-stage mixer module can be built in any number according to the FPGA chip resources and requirements. Here, a 3×4 model is selected, so 3 are selected. The second-stage mixer module can select one of the four frequency bands output by the first-stage mixer module as input. Figure 3 ,like Figure 3 The figure shows a flow chart of the second stage down-conversion mixing channel selection in this embodiment.
[0038] The input signal rate of the second-stage mixer module is one-fourth of the original sampling data, and the working rate of the second-stage mixer module is the sampling rate fs of the original data, so a single second-stage mixer module can process data from four channels at the same time. After the NCO and filter of the second-stage mixer module process the data of the first channel, they can cache the parameters of the NCO and the filter, and then let the NCO and the filter load the parameters of the second channel and start processing the data of the second channel. Repeat this process. After processing the data of the fourth channel, the data of the second point of the first channel starts to be input, and then the above process is repeated. Figure 4 ,like Figure 4 The figure shows the second stage mixing flow chart of this embodiment.
[0039] When the second-stage mixer performs spectrum shifting, since the input signal has passed through the first-stage DDC, the input signal of the second-stage mixer already contains I and Q data. At this time, the two orthogonal local oscillator signals generated by the NCO are multiplied by the input signal, which will not generate image frequencies. Therefore, the second-stage mixer does not need to consider spectrum aliasing when designing.
[0040] Although the NCO and filters of the four channels are multiplexed, from the time axis, the data of each channel is continuous, and the data of the four channels are output in parallel at the same time. Overall, the four channels of a single second-stage mixing module are almost independent of each other except that the output signal bandwidth needs to remain consistent.
[0041] Compared with the traditional DDC pipeline structure, this embodiment uses the same resources to build a channel number far exceeding the traditional structure. Taking the 3×4 structure as an example, this embodiment uses 7 (3+4) channel resources to complete 12 (3×4) channels of DDC, and the 12 channels are basically independent of each other except that the bandwidth of a group of four channels output by the same second-stage mixing module needs to be consistent.
[0042] Due to the reuse of NCO and filter, resource utilization is greatly improved. When building the same number of DDC channels, this embodiment greatly reduces the consumption of FPGA resources compared with the traditional digital down-conversion model, leaving more possibilities for subsequent functional expansion of FPGA.
[0043] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for implementing FPGA multi-channel DDC based on time-division multiplexing. It is characterized in that The method includes implementing digital down-conversion by two-stage mixing, specifically comprising: First-level DDC: The original signal is divided into N equal parts through N digitally controlled oscillator modules and extraction filter modules and then reduced to zero frequency. The sampling rate of each signal is reduced to 1 / N of the original, and the total bandwidth of the N signals remains unchanged. N is a natural number. Second-stage DDC: Digitally down-convert the signal after the first-stage mixer through M channels. Each channel selects the input signal from any signal output by the first-stage mixer. Each channel can down-convert N target frequencies at the same time and output N signals, where M is a natural number.
2. The FPGA multi-channel DDC implementation method based on time-division multiplexing as claimed in claim 1, It is characterized in that The first stage mixing specifically includes: The data sampled by ADC is multiplied by N numerically controlled oscillator modules respectively, and the original spectrum is divided into N equal parts, where N is the number of numerically controlled oscillator modules, and the frequency of each numerically controlled oscillator module is (2n-1)*fs / 2N, and n is the numerically controlled oscillator module serial number; Move the spectrum after N equal divisions to zero frequency, and then reduce the signal sampling rate to 1 / N of the signal input rate.
3. The FPGA multi-channel DDC implementation method based on time-division multiplexing as claimed in claim 1, It is characterized in that The second stage mixing specifically includes: The signal with the target frequency is selected from the N signals output by the first-stage mixer as input, and the data of each channel is processed in turn through the digital control oscillation module and the filter.
4. The FPGA multi-channel DDC implementation method based on time-division multiplexing as claimed in claim 3, It is characterized in that The second stage mixing further includes: When the data processing of one channel is completed, the parameters of the numerically controlled oscillation module and the filter are cached, and then the next set of working parameters are loaded to process the data of the next channel.
5. The FPGA multi-channel DDC implementation method based on time-division multiplexing as claimed in claim 2, It is characterized in that The first-stage frequency mixing is implemented based on a first-stage frequency mixing unit. The first-stage frequency mixing unit includes N digitally controlled oscillation modules and N low-pass filters. The signal sampling rate is reduced by the low-pass filters.
6. The FPGA multi-channel DDC implementation method based on time-division multiplexing as claimed in claim 3, It is characterized in that The second-stage mixing is implemented based on a second-stage mixing unit. The second-stage mixing unit builds any number of signal processing channels according to FPGA chip resources and requirements. The second-stage mixing unit includes M digitally controlled oscillation modules and M filters.
