ZYNQ-based non-linear frequency modulation signal real-time generation method
The frequency and phase control words are calculated and transmitted through the PS side of the ZYNQ chip to directly generate nonlinear frequency modulation signals, which solves the problem of excessive resource occupation, achieves flexibility and adjustability, and simplifies the operation steps.
Patent Information
- Application Number
- CN202410682799.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-05-29
AI Technical Summary
When generating nonlinear frequency modulation signals, the existing technology needs to generate and store data in the ROM of the FPGA in advance, resulting in excessive resource usage and lack of flexibility and adjustability.
The PS side of the ZYNQ chip is used to calculate the frequency control word and phase control word, and is transmitted to the PL side through the AXI4-Lite protocol to directly generate a nonlinear frequency modulation signal, avoiding the occupation of ROM for storing frequency and phase data, and achieving real-time calculation and fast generate.
It saves FPGA resources and improves the flexibility and adjustability of generating new non-linear FM signals. The operation steps are simple and does not require pre-calculation by the host computer. The parameters can be obtained directly through the serial port.
Smart Images

Figure CN118655528A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of radar signal generation, and in particular relates to a method for generating a nonlinear frequency modulation signal in real time based on ZYNQ. Background Art
[0002] Synthetic Aperture Radar (SAR) is an advanced radar technology that acquires radar images of surface targets by sending continuous radio pulses and receiving and processing the return signals. Linear frequency modulation (LFM) is a common radar transmission waveform. Matching and filtering this signal at the receiving end will result in a signal with a low main-sidelobe ratio and a wide mainlobe width, resulting in azimuth and range ambiguity. Using nonlinear frequency modulation (NLFM) can improve the clarity and accuracy of radar images.
[0003] Compared with LFM signals, NLFM signals can be directly matched filtered at the receiving end to obtain signals with high main-to-sidelobe ratio and narrow mainlobe width. NLFM can effectively reduce azimuth ambiguity and improve azimuth resolution of images through nonlinear frequency modulation. NLFM can reduce distance ambiguity, making the distance position of targets in radar images clearer and more accurate. NLFM signals are more resistant to interference during transmission and reception, which makes the performance of NLFM radar systems more stable and reliable in complex electromagnetic environments.
[0004] At present, the method of generating NLFM signals through FPGA adopts the DDS+ROM method. The host computer software calculates the relevant integral and inverse functions to determine the frequency and phase of the NLFM signal, and saves them in the ROM of the FPGA. Then the DDS reads the frequency and phase in the ROM to send the determined signal. This method has a major defect: when different signals are to be transmitted, data needs to be generated in advance and stored in the ROM. Due to the limited resources of FPGA, the frequency and phase data will occupy a large amount of FPGA resources, resulting in resource waste.
[0005] Therefore, how to save resources for generating NLFM signals and improve the flexibility and adjustability of generating new NLFM signals are difficult problems that need to be solved urgently. Summary of the invention
[0006] The present invention aims to provide a method for generating a nonlinear frequency modulation signal in real time based on ZYNQ, so as to solve the problem that the data needs to be rewritten into ROM when generating NLFM signal, resulting in more occupied resources.
[0007] To achieve the above object, the present invention adopts the following technical solution:
[0008] A method for generating a nonlinear frequency modulation signal in real time based on ZYNQ, comprising the steps of calculating a frequency control word and a phase control word at a PS end, and completing a phase conversion at a PL end to obtain an output signal;
[0009] The method for calculating the frequency control word and the phase control word at the PS end comprises the following steps:
[0010] Step S1, obtaining the bandwidth, duration, window function type and number of frequency points of the NLFM signal;
[0011] Step S2, constructing a group delay function T(f) according to the bandwidth, duration, window function type and number of frequency points obtained in S1; calculating the time difference between adjacent frequency points according to the duration and number of frequency points obtained in S1 to determine the timer loading value;
[0012] Step S3, determining the frequency data and phase data of the NLFM signal based on the group delay function T(f);
[0013] Step S4, converting the frequency data and phase data obtained in step S3 into a frequency control word and a phase control word;
[0014] Step S5, determining whether the timer interrupt reaches the timer load value determined in step S2, if yes, transmitting the frequency control word and the phase control word to PL through the AXI4-Lite protocol; if no, returning to step S3 to redetermine the frequency and phase of the NLFM signal;
[0015] The method for completing phase conversion at the PL end to obtain an output signal comprises the following steps:
[0016] The received frequency control word and phase control word are obtained through the DDS module to obtain the address of the ROM table, and the corresponding amplitude is found by looking up the ROM table to complete the conversion from phase to amplitude to obtain the output signal.
[0017] Furthermore, the group delay function T(f) obtained in step S2 is:
[0018]
[0019]
[0020] Wherein, K represents a constant coefficient, B represents the bandwidth of the NLFM signal, W(x) represents the window function, f represents the frequency, and T represents the duration.
[0021] The time difference calculation formula of adjacent frequency points is:
[0022]
[0023] Among them, f psis the system clock value on the PS side, and x is the output timer load value.
[0024] Further, the implementation method of step S3 for determining the frequency and phase of the NLFM signal based on the group delay function T(f) comprises the following steps:
[0025] By finding the inverse function of the group delay function T(f), we can obtain the frequency modulation function f(t) of the NLFM signal: f(t) = T -1 (f),0≤t≤T; where T -1 (f) represents the inverse function of T(f);
[0026] The frequency data of the NLFM signal can be determined based on the frequency modulation function f(t);
[0027] The frequency modulation function f(t) of the NLFM signal is integrated by the integral approximate rectangular method to obtain the phase θ of the NLFM signal. i : Among them, θ i represents the phase data output at the i-th point, f out_i Represents the frequency data output at the i-th point, i.e., the value of the inverse function. Indicates the stride of the rectangle.
[0028] Furthermore, the step S3 uses a numerical analysis method to find the inverse function of the group delay function T(f); and uses the Newton iteration method based on the frequency modulation function f(t) to determine the frequency data of the NLFM signal.
[0029] Furthermore, the formula for converting the step frequency data and phase data into the frequency control word and the phase control word in step S4 is as follows:
[0030]
[0031] Among them, K1 represents the frequency control word, K2 represents the phase control word, fout and θout represent the frequency and phase data to be output respectively, N1 represents the number of bits of the phase accumulator, and N2 represents the number of bits of the waveform data table address.
[0032] The present invention provides a method for generating a nonlinear frequency modulation signal based on ZYNQ in real time, which realizes accurate and fast calculation of each frequency and phase by inverting the group delay function and subsequent integral operation at the PS end, thereby ensuring that different input parameters obtain different NLFM signals, and no pre-calculation by the host computer is required. Since the AXI4-Lite protocol of the PS end and the PL end in the ZYNQ chip can ensure high-speed data transmission, the frequency control word and the phase control word calculated by the PS end are transmitted to the DDS module of the PL end through the AXI4-Lite protocol, which can save the ROM for storing the frequency control word and the phase control word, and greatly save resources. Compared with the traditional method for generating NLFM signals, the nonlinear frequency modulation signal generation method of the present invention directly obtains the NLFM signal parameters used for the PS calculation of frequency and phase data in ZYNQ through the serial port, without the need for recompilation, and is more flexible and adjustable, and the operation steps are simple. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flow chart of a method for generating a nonlinear frequency modulation signal based on ZYNQ of the present invention;
[0034] Figure 2 is a flow chart of an embodiment for determining the next frequency data by inverting the group delay function through the Newton iteration method;
[0035] Figure 3 is a module block diagram of the DDS at the PL end of the embodiment;
[0036] Figure 4 1 is a schematic diagram of an AXI4-Lite protocol waveform in which the PS transmits the frequency control word and the phase control word to the PL in an embodiment;
[0037] Figure 5 is a simulation time domain curve of NLFM in the embodiment;
[0038] Figure 6 : is a comparison diagram of the pulse pressure output of the ideal NLFM signal and the simulated NLFM signal in the embodiment;
[0039] Figure 7 3 is a spectrum comparison diagram of an ideal NLFM signal and a simulated NLFM signal in the embodiment. DETAILED DESCRIPTION
[0040] The technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and embodiments.
[0041] like Figure 1 The present embodiment provides a method for generating a nonlinear frequency modulation signal in real time based on ZYNQ, including the steps of calculating a frequency control word and a phase control word at the PS end, and completing a phase conversion at the PL end to obtain an output signal.
[0042] The method for calculating the frequency control word and the phase control word at the PS end comprises the following steps:
[0043] Step S1: Obtain the bandwidth, duration, window function type and number of frequency points of the NLFM signal. In this embodiment, the bandwidth, duration, window function type and number of frequency points of the NLFM signal are obtained through the serial port of the PS end. Specifically:
[0044] The serial port sends 12 hexadecimal data at a time. The size of the 1st to 4th hexadecimal data indicates the bandwidth of the NLFM signal, the size of the 5th to 8th hexadecimal data indicates the duration of the NLFM signal, the size of the 9th to 11th hexadecimal data indicates the number of frequency points of the NLFM signal, and the size of the 12th hexadecimal data indicates the window function type. The window function types include Hanning window, Hamming window and Blackman window. The obtained hexadecimal data confirmation type is: 0 indicates Hanning window, 1 indicates Hamming window, 2 indicates Blackman window, and 3 to 15 are invalid data.
[0045] Assuming that the window function type obtained in this embodiment is the Blackman window, the expression of the Blackman window is:
[0046]
[0047] Where B is the bandwidth of the NLFM signal and f is the frequency.
[0048] Step S2: construct the group delay function T(f) according to the bandwidth, duration, window function type and number of frequency points obtained in S1; calculate the time difference between adjacent frequency points according to formula (6) based on the duration and number of frequency points obtained in S1 to determine the timer loading value.
[0049] This embodiment defines a group delay function T(f):
[0050]
[0051]
[0052] Wherein, K represents a constant coefficient, B represents the bandwidth of the NLFM signal, W(x) represents the expression of the window function, f represents the frequency, and T represents the duration.
[0053] Substituting the expression of the Blackman window into the group delay function T(f), the group delay function T(f) is rewritten to obtain the group delay function expression (4) based on the Blackman window of this embodiment:
[0054]
[0055] By taking the derivative of equation (4), we can get equation (5):
[0056]
[0057] Based on formula (2), according to the system clock value at the PS end, the duration of the NLFM signal and the number of frequency points, the expression of formula (6) can be obtained:
[0058]
[0059] Among them, f ps is the system clock value on the PS side, and x is the output timer load value.
[0060] Step S3: determining the frequency data and phase data of the NLFM signal based on the group delay function T(f), and the implementation method thereof is as follows:
[0061] (1) Take the inverse function of the group delay function T(f) and obtain the frequency modulation function f(t) of the NLFM signal:
[0062] f(t)=T -1 (f),0≤t≤T; (7)
[0063] Among them, T -1 (f) represents the inverse function of T(f).
[0064] Since the PS end cannot directly obtain the expression of the inverse function, to address this problem, this embodiment uses a numerical analysis method to obtain the inverse function of the group delay function.
[0065] (2) Based on the frequency modulation function f(t), the Newton iteration method is used to find the value of the inverse function at a specific point, and its expression is (8)
[0066]
[0067] The calculation process of Newton iteration method is as follows: Figure 2 As shown:
[0068] First, the group delay function T(f) is expressed as y = T(f), and then T -1 (f) is expressed as T(f)-y=0, then T′(f) is calculated, the initial approximation value f0 is set, and (8) is used to iterate until the required accuracy is met or the iteration number limit is reached.
[0069] (3) Integrate the frequency modulation function f(t) of the NLFM signal to obtain the phase of the NLFM signal. In this embodiment, the integral approximate rectangular method is used to obtain the phase of the NLFM signal, and the formula (9) is obtained. According to the formula (9), the phase θ of the NLFM signal can be determined. i :
[0070]
[0071] Among them, θ i represents the phase data output at the i-th point, f out_i Represents the frequency data output at the i-th point, i.e., the value of the inverse function. Indicates the stride of the rectangle.
[0072] Step S4: Based on the working principle of DDS, the numerical value of the frequency control word K1 controls the frequency of the output signal, and the numerical value of the phase control word K2 controls the phase offset of the output signal, which is used for phase signal modulation. The frequency data and phase data obtained in step S3 are converted into frequency control words and phase control words; the conversion formula used in this implementation is formula (10):
[0073]
[0074] Among them, K1 represents the frequency control word, K2 represents the phase control word, fout and θout represent the frequency and phase data to be output respectively, f0 represents the reference clock of DDS, N1 represents the number of bits of the phase accumulator, and N2 represents the number of bits of the waveform data table address.
[0075] Step S5, determine whether the timer interrupt reaches the timer load value determined in step S2, if yes, transmit the frequency control word and phase control word to PL through the AXI4-Lite protocol; if no, return to step S3 to redetermine the frequency and phase of the NLFM signal.
[0076] In this embodiment, the PS transmits the frequency control word and the phase control word to the PL through the AXI4-Lite protocol. Figure 4 Specifically:
[0077] When the clock rises, assign the correct address to M_AXI_AWADDR and pull up the M_AXI_AWVALID signal, wait for M_AXI_AWREADY to pull up to complete the first handshake, after M_AXI_AWREADY is pulled up, immediately pull M_AXI_AWVALID down and pull up the M_AXI_WVALID signal and assign the M_AXI_WDATA value, where M_AXI_WDATA is 32-bit data, of which the first 20 bits are the frequency control word and the last 12 bits are the phase control word. When the M_AXI_WVALID signal is high, if M_AXI_WREADY is detected to be high, it means that the second handshake is completed and the data transmission is completed.
[0078] The method for completing phase conversion at the PL end to obtain an output signal comprises the following steps:
[0079] The received frequency control word and phase control word are obtained through the DDS module to obtain the address of the ROM table, and the corresponding amplitude is found by looking up the ROM table to complete the conversion from phase to amplitude to obtain the output signal.
[0080] The schematic diagram of the DDS module structure at the PL end of this embodiment is as follows Figure 3 As shown, the phase accumulator is composed of an N1-bit adder and an N1-bit register. At the rising edge of the clock in each clock cycle, the adder adds the frequency control word and the phase data output by the accumulator register, and feeds the result of the addition back to the data input end of the accumulator register, so that the adder continues to add the frequency control word under the action of the next clock pulse. In this way, the phase accumulator continuously performs linear phase accumulation on the frequency control word under the action of the clock. That is, when each clock pulse is input, the phase accumulator accumulates the frequency control word once. The data output by the phase accumulator is the phase of the synthesized signal. The overflow frequency of the phase accumulator is the signal frequency output by the DDS. The data output by the phase accumulator is used as the phase sampling address of the waveform memory. The waveform sampling value stored in the waveform memory can be found by looking up the table, thereby completing the phase to amplitude conversion and obtaining the output signal.
[0081] Figure 5 is a simulation time domain curve of NLFM of the embodiment, Figure 6 : is a comparison diagram of the pulse pressure output of the ideal NLFM signal and the simulated NLFM signal in the embodiment, Figure 7 1 is a spectrum comparison diagram of an ideal NLFM signal and a simulated NLFM signal in an embodiment. Figure 5-Figure 7 It can be seen that the nonlinear frequency modulation signal generation method of this implementation is feasible.
[0082] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. A method for generating a nonlinear frequency modulation signal in real time based on ZYNQ, comprising two parts: calculating a frequency control word and a phase control word at a PS end, and completing a phase conversion at a PL end to obtain an output signal, characterized in that: The method for calculating the frequency control word and the phase control word at the PS end comprises the following steps: Step S1, obtaining the bandwidth, duration, window function type and number of frequency points of the NLFM signal; Step S2, constructing a group delay function T(f) according to the bandwidth, duration, window function type and number of frequency points obtained in S1; calculating the time difference between adjacent frequency points according to the duration and number of frequency points obtained in S1 to determine the timer loading value; Step S3, determining the frequency data and phase data of the NLFM signal based on the group delay function T(f); Step S4, converting the frequency data and phase data obtained in step S3 into a frequency control word and a phase control word; Step S5, determining whether the timer interrupt reaches the timer load value determined in step S2, if yes, transmitting the frequency control word and the phase control word to PL through the AXI4-Lite protocol; if no, returning to step S3 to redetermine the frequency and phase of the NLFM signal; The method for completing phase conversion at the PL end to obtain an output signal comprises the following steps: The received frequency control word and phase control word are obtained through the DDS module to obtain the address of the ROM table, and the corresponding amplitude is found by looking up the ROM table to complete the conversion from phase to amplitude to obtain the output signal.
2. The method for generating a nonlinear frequency modulation signal based on ZYNQ in real time according to claim 1, characterized in that: The group delay function T(f) obtained in step S2 is: Wherein, K represents a constant coefficient, B represents the bandwidth of the NLFM signal, W(x) represents the window function, f represents the frequency, and T represents the duration. The time difference calculation formula of adjacent frequency points is: Among them, f ps is the system clock value on the PS side, and x is the output timer load value.
3. The method for generating a nonlinear frequency modulation signal based on ZYNQ in real time according to claim 2, characterized in that: The implementation method of step S3 determining the frequency and phase of the NLFM signal based on the group delay function T(f) comprises the following steps: By finding the inverse function of the group delay function T(f), we can obtain the frequency modulation function f(t) of the NLFM signal: f(t) = T -1 (f),0≤t≤T; where T -1 (f) represents the inverse function of T(f); The frequency data of the NLFM signal can be determined based on the frequency modulation function f(t); The frequency modulation function f(t) of the NLFM signal is integrated by the integral approximate rectangular method to obtain the phase θ of the NLFM signal. i : Among them, θ i represents the phase data output at the i-th point, f out_i Represents the frequency data output at the i-th point, i.e., the value of the inverse function. Indicates the stride of the rectangle.
4. A method for generating a nonlinear frequency modulation signal based on ZYNQ in real time according to claim 3, characterized in that: The step S3 uses a numerical analysis method to find the inverse function of the group delay function T(f); and uses the Newton iteration method based on the frequency modulation function f(t) to determine the frequency data of the NLFM signal.
5. A method for generating a nonlinear frequency modulation signal based on ZYNQ in real time according to claim 4, characterized in that: The formula for converting the step frequency data and phase data into the frequency control word and the phase control word in step S4 is as follows: Among them, K1 represents the frequency control word, K2 represents the phase control word, fout and θout represent the frequency and phase data to be output respectively, N1 represents the number of bits of the phase accumulator, and N2 represents the number of bits of the waveform data table address.
Citation Information
Patent Citations
Real-time generation method and device for nonlinear frequency modulation signal
CN109765528A
Method for generating piecewise linear frequency modulation signal in real time
CN115220039A
Method for realizing nonlinear frequency scanning SAR (Synthetic Aperture Radar) based on nonlinear frequency modulation signal
CN116502477A
Low-phase noise X-band marine navigation solid-state pulse compression radar transmitting system based on nonlinear frequency modulation and Gaussian envelope amplitude control
CN117538828A
