Arbitrary-length waveform construction method, system and device based on vector signal generator and storage medium
By calculating the repetition factor M to adaptively reconstruct new waveform data, the problem that vector signal generators cannot emit waveforms of arbitrary length is solved, simplifying the design and ensuring the shape and periodicity of the signal.
Patent Information
- Application Number
- CN202511343958.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-19
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-09-19
AI Technical Summary
In the existing technology, vector signal generators cannot effectively transmit raw waveform files of arbitrary length, and existing solutions are complex and difficult to implement.
By determining the original waveform file data length, the fixed burst operation length of the DDR chip, and the data bit width, the repetition factor M is calculated, and new waveform data is adaptively reconstructed to achieve the transmission of waveforms of arbitrary length, thus avoiding the complex logic judgment and data splicing operations inside the FPGA.
It enables vector signal generators to emit raw waveform files of arbitrary length, simplifying design complexity and ensuring the shape and periodicity of signals.
Smart Images

Figure CN120848685A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a method, system, device, and storage medium for constructing waveforms of arbitrary length based on a vector signal generator. Background Technology
[0002] With the rapid development of broadband wireless digital communication, vector signal generators play a crucial role in the research and testing of numerous industries, including communications and radar. Vector signal generators are primarily responsible for the high-speed transmission and emission of various types of vector signals. In practical applications, depending on the application scenario, the vector signal generator loads a given raw waveform data file of a specific type and length suitable for the current scenario for transmission. Since the industries and scenarios in which vector signal generators are used vary, the required length of the raw waveform data file to be transmitted also varies. Therefore, it is crucial that vector signal generators can transmit raw waveform data files of arbitrary length.
[0003] In existing technologies, such as Figure 1 As shown, waveform transmission is performed using a specially limited waveform length. Since the vector signal generator internally uses fixed burst lengths for writing and cyclic reading operations on the DDR, the amount of information contained in the original waveform file must be an integer multiple of the DDR burst operation bit width. The original waveform file data length is L, the original waveform file data bit width is W1, the fixed burst length is N, and the DDR data bit width is W2, meaning that L must be satisfied. W1 must be N W2 is an integer multiple of N, that is, L is N. Integer multiples of W2 / W1.
[0004] Waveform transmission employs a specially restricted waveform length, meaning the waveform length must be an integer multiple of N*W2 / W1. Only with a raw waveform file using this restricted length can the shape and periodicity of the original signal transmitted by the vector signal generator be preserved. This technique is not suitable for transmitting raw waveform files of arbitrary length. If an arbitrary waveform length is used without the restricted length, the shape and periodicity of the original signal from the vector signal generator will be destroyed; that is, the transmitted signal will not be the intended original periodic signal waveform.
[0005] To address the issue of being able to transmit raw waveform files of arbitrary length, such as... Figure 2As shown, complex functional modules such as logic judgment, data selection, and splicing are added inside the FPGA to complete waveform transmission. Since the vector signal generator uses fixed burst lengths for writing to and cyclically reading from the DDR, if an arbitrary length original waveform file is used, a small amount of invalid data will be introduced at the end of each cyclic transmission. To effectively remove this invalid data without disrupting the shape and periodicity of the original signal, a complex functional module needs to be added inside the FPGA. This removal method often requires adding a complex module after the FPGA reads data from the DDR with a fixed burst length to perform logic judgment, identify and remove the invalid data, and perfectly splice the preceding and following valid data without affecting the data transmission rate and throughput. Adding this functional module to the FPGA is often quite complex, and sometimes even difficult, to implement.
[0006] Existing technologies require the use of specially limited waveform lengths for waveform transmission; or complex operation modules such as logic judgment, data selection and splicing are added inside the FPGA to complete waveform transmission, which is a complicated method. Summary of the Invention
[0007] To address the technical problems existing in the prior art, this invention provides a method, system, device, and storage medium for constructing waveforms of arbitrary length based on a vector signal generator. This method and system can support the transmission of original file waveforms of arbitrary length while reducing design complexity and being easy to implement.
[0008] This invention provides a method for constructing waveforms of arbitrary length based on a vector signal generator, comprising the following steps: S1, determine the length L and bit width W1 of the input original waveform file data, where the original waveform file has an arbitrary waveform length; S2, determine the fixed burst operation length N of the read / write DDR chip used by the vector signal generator and the fixed data bit width W2 of the DDR chip; S3, determine the burst operation multiplier factor K, where the burst operation multiplier factor K is the ratio of the burst operation bit width to the original waveform file data bit width; S4. Determine the repetition factor M based on the original waveform file data length L and the burst operation multiplier factor K; S5 adaptively reconstructs new waveform data based on the repetition factor M and the original waveform file.
[0009] Preferably, the original waveform file is an original waveform file with an integer multiple of the signal period.
[0010] Preferably, the burst operation bit width is N. W2, K=N W2 / W1.
[0011] Preferably, step S4, which involves classifying and determining the repetition factor M based on the original waveform file data length L and the burst operation multiplier factor K, specifically includes the following steps: First type, finding L If the remainder of 1 / K is 0, then the repetition factor M = 1 and the classification judgment stops; if the remainder is not 0, the second classification judgment is performed. The second type is to find L. If the remainder of 2 / K is 0, then the repetition factor M = 2 and the classification judgment stops; if the remainder is not 0, the third category classification judgment is performed. Based on the above, the classification judgment continues in this manner until the classification judgment of the (K-1)th class is reached; For the (K-1)th class, find L If the remainder of (K-1) / K is 0, then the repetition factor M = K-1 is determined, and the classification judgment stops; if the remainder is not 0, then the repetition factor M = K is determined, and the classification judgment stops.
[0012] Preferably, in step S5, the adaptive reconstruction of new waveform data based on the repetition factor M and the original waveform file specifically involves: copying the original waveform file data M times based on the repetition factor M, using it as new waveform data, and determining the length of the new waveform data as LL=L*M, thereby completing the adaptive reconstruction of the new waveform data.
[0013] The present invention also provides an arbitrary length waveform transmission system based on a vector signal generator, comprising: an input raw waveform file, a host computer, a DDR, an FPGA, and a digital-to-analog converter (DAC); The original waveform file has an arbitrary waveform length; The host computer loads the original waveform file data, constructs new waveform data of arbitrary length using the arbitrary length waveform construction method based on vector signal generator as described in any one of claims 1-5, and sends the new waveform data to the FPGA; The FPGA writes new waveform data into the DDR for buffering with a fixed burst length. The FPGA also reads new waveform data from the DDR buffer in a loop with a fixed burst length. The FPGA then transmits the looped new waveform data to the digital-to-analog converter (DAC) for transmission.
[0014] The present invention provides an arbitrary length waveform transmitting device based on a vector signal generator, including a processor, the processor being capable of executing a computer program that can implement the above-described arbitrary length waveform construction method based on a vector signal generator.
[0015] The present invention provides a storage medium storing a computer program that can implement the above-described method for constructing waveforms of arbitrary length based on a vector signal generator.
[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention integrates fixed burst length, DDR data bit width, original waveform file data length, and original waveform file data bit width to determine the repetition factor through classification judgment. Then, new waveform data is reconstructed by the repetition factor and the original waveform file. It can load the original waveform file with arbitrary waveform length, avoid adding complex and difficult-to-implement logic judgment, invalid data removal and valid data splicing functional modules inside the FPGA. The method is simple and easy to implement. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the waveform transmission process in the prior art that utilizes specially limited waveform lengths; Figure 2 A flowchart illustrating the process of adding complex operation modules such as logic judgment, data selection and splicing to the FPGA to complete waveform transmission in the existing technology; Figure 3 This is a schematic diagram of the transmission process of an arbitrary length waveform transmission system based on a vector signal generator, according to an embodiment of the present invention. Detailed Implementation
[0019] The specific embodiments of the present invention will be described in detail below.
[0020] This invention provides a method for constructing waveforms of arbitrary length based on a vector signal generator, comprising the following steps: S1, determine the length L and bit width W1 of the input original waveform file data, where the original waveform file has an arbitrary waveform length; S2, determine the fixed burst operation length N of the read / write DDR chip used by the vector signal generator and the fixed data bit width W2 of the DDR chip; S3, determine the burst operation multiplier factor K, where the burst operation multiplier factor K is the ratio of the burst operation bit width to the original waveform file data bit width; S4. Determine the repetition factor M based on the original waveform file data length L and the burst operation multiplier factor K; S5 adaptively reconstructs new waveform data based on the repetition factor M and the original waveform file.
[0021] According to one specific embodiment of the present invention, the original waveform file is an original waveform file having an integer multiple of the signal period.
[0022] According to a specific embodiment of the present invention, the burst operation bit width is N. W2, K=N W2 / W1.
[0023] According to a specific embodiment of the present invention, step S4, classifying and determining the repetition factor M based on the original waveform file data length L and the burst operation multiplier factor K, specifically includes the following steps: First type, finding L If the remainder of 1 / K is 0, then the repetition factor M = 1 and the classification judgment stops; if the remainder is not 0, the second classification judgment is performed. The second type is to find L. If the remainder of 2 / K is 0, then the repetition factor M = 2 and the classification judgment stops; if the remainder is not 0, the third category classification judgment is performed. Based on the above, the classification judgment continues in this manner until the classification judgment of the (K-1)th class is reached; For the (K-1)th class, find L If the remainder of (K-1) / K is 0, then the repetition factor M = K-1 is determined, and the classification judgment stops; if the remainder is not 0, then the repetition factor M = K is determined, and the classification judgment stops.
[0024] According to a specific embodiment of the present invention, in step S5, the adaptive reconstruction of new waveform data based on the repetition factor M and the original waveform file specifically involves: copying the original waveform file data M times according to the repetition factor M, using these copies as new waveform data, and determining the length of the new waveform data as LL=L. M completes the adaptive reconstruction of the new waveform data.
[0025] like Figure 3 As shown, the present invention also provides an arbitrary length waveform transmission system based on a vector signal generator, comprising: an input raw waveform file, a host computer, a DDR, an FPGA, and a digital-to-analog converter (DAC); The original waveform file has an arbitrary waveform length; The host computer loads the original waveform file data, constructs new waveform data of arbitrary length using the arbitrary length waveform construction method based on vector signal generator as described in any one of claims 1-5, and sends the new waveform data to the FPGA; The FPGA writes new waveform data into the DDR for buffering with a fixed burst length. The FPGA also reads new waveform data from the DDR buffer in a loop with a fixed burst length. The FPGA then transmits the looped new waveform data to the digital-to-analog converter (DAC) for transmission.
[0026] The present invention provides an arbitrary length waveform transmitting device based on a vector signal generator, including a processor, the processor being capable of executing a computer program that can implement the above-described arbitrary length waveform construction method based on a vector signal generator.
[0027] The present invention provides a storage medium storing a computer program that can implement the above-described method for constructing waveforms of arbitrary length based on a vector signal generator.
[0028] Example 1 The method for constructing arbitrary length waveforms based on a vector signal generator according to a specific embodiment of the present invention will be described in detail below.
[0029] In this embodiment, the original waveform file has 20 data points as one signal cycle, and there are 10 signal cycles in total. That is, the original waveform file has a data length of 200, and each data point in the original waveform file has a bit width of 32 bits. The vector signal generator is designed to read and write DDR with a fixed burst operation length of 8, and the DDR used in the vector signal generator has a fixed data bit width of 64 bits.
[0030] This embodiment provides a method for constructing waveforms of arbitrary length based on a vector signal generator, including the following steps: 1. Determine the original waveform file data length L=200, the original waveform file data bit width W1=32, the fixed burst operation length N=8 for reading and writing DDR, and the fixed data bit width W2=64 for DDR; 2. Determine the burst operation multiplier K, where K is the ratio of the burst operation bit width to the original waveform file data bit width (W1=32), and the burst operation bit width is N. W2=8 64 = 512, further K = N W2 / W1=16; 3. Based on the original waveform file data length L=200 and burst operation multiplier factor K=16, classify and determine the repetition factor M; Since the burst operation multiplication factor K=16 has been determined, the following classification judgments will be performed sequentially to determine the repetition factor M: First type, finding L 1 / K=200 The remainder of 1 / 16 is 8. Since the remainder is not 0, we continue to the second category classification judgment. The second type is to find L. 2 / K=200 If the remainder of 2 / 16 is 0, then the repetition factor M = 2, and the classification judgment is stopped. 4. Based on the determined repetition factor M=2, adaptively reconstruct new waveform data and determine the length LL of the new waveform data.
[0031] Based on the repetition factor M=2, new waveform data is adaptively reconstructed, and the original waveform file data is copied twice and assigned to the new waveform data.
[0032] Based on the repetition factor M=2, the new waveform data length LL=L is determined. M=200 2 = 400.
[0033] Example 2 The arbitrary length waveform transmission system based on a vector signal generator of the present invention will be described in detail below according to a specific embodiment of the present invention. For any content not covered in detail, please refer to the method described above.
[0034] like Figure 3 As shown, in this embodiment, the same parameters as in Embodiment 1 are used, namely: the original waveform file has 20 data points as one signal cycle, and there are 10 signal cycles in total, that is, the original waveform file data length is 200, the bit width of each data point in the original waveform file is 32 bits, the fixed burst operation length of the vector signal generator for reading and writing DDR is 8, and the fixed data bit width of the DDR used in the vector signal generator is 64 bits.
[0035] This invention provides an arbitrary length waveform transmission system based on a vector signal generator, comprising: an input raw waveform file, a host computer, DDR, FPGA, and a digital-to-analog converter (DAC); 1. The length of the original waveform file of the input vector signal generator is known. The data length L of the original waveform file can be any value. In this embodiment, the data length L of the original waveform file is 200. The known original waveform file is an integer multiple of the signal period, that is, 20 data points constitute one signal period. There is a total of 10 signal periods in the original waveform file, that is, the data length of the original waveform file is 200 data points, and the bit width of each data point in the original waveform file is 32 bits.
[0036] 2. The host computer software loads the original waveform file data, classifies and determines the reconstruction factor according to the above method, adaptively reconstructs new waveform data, and sends the new waveform data to the FPGA: If, using existing technology, the original waveform file data is directly stored in DDR, and the FPGA performs data writing and cyclic reading operations on the 64-bit DDR with a fixed burst length of 8, a small amount of invalid data will appear at the end of each loop read, disrupting the original shape and periodicity of the output signal. This is because directly storing the original waveform file data in DDR requires storing 200... 32 = 6400 bits of information. However, when performing a burst write operation on a DDR memory with a fixed burst length of 8 bits and a data width of 64 bits, the data width for each burst operation is 8 bits. 64 = 512 bits of information. Since the 6400 bits of information to be stored is not an integer multiple of the 512-bit data width of a burst operation (6400 / 512 = 12.5), 13 burst operations are needed to store all 6400 bits of information in the DDR. The information stored in the DDR after 13 burst operations is 13... The data size is 512 = 6656 bits, while the original waveform file only contains 6400 bits. The data cached in DDR will contain 6656 - 6400 = 256 bits of invalid information. When the FPGA performs cyclic burst read operations on 64-bit DDR data with a fixed burst length of 8, each loop read will end with 256 bits of invalid data, thus disrupting the original shape and periodicity of the output signal.
[0037] In this invention, the host computer uses the above method to classify and determine the reconstruction factor M, and then adaptively reconstructs the new waveform data based on the reconstruction factor M. This ensures that the reconstructed waveform data maintains the original shape and periodicity of the signal. According to Example 1, the determined reconstruction factor M = 2, and the new waveform data is adaptively reconstructed by copying the original waveform file data twice as the new waveform data. The length of the new waveform data is determined to be LL = L. M=200 2 = 400.
[0038] The host computer sends new waveform data to the FPGA. The length of the new waveform data is 400 data points, and the bit width of the new waveform data is still 32 bits.
[0039] 3. The FPGA writes the new waveform data into a 64-bit DDR buffer with a fixed burst length of 8. Since the reconstructed new waveform data is reconstructed based on four factors: fixed burst length, DDR data width, original waveform file data length, and original waveform file data width, the shape and periodicity of the original signal are guaranteed in the reconstructed new waveform data. At the same time, the operation of writing the new waveform data into the DDR buffer with a fixed burst length by the FPGA will not destroy the shape and periodicity of the original signal.
[0040] According to Example 1, the reconstruction factor M=2 is determined, and the length of the reconstructed waveform data LL=L. M=200 2 = 400. Since the original waveform file has 20 data points per signal cycle, totaling 10 signal cycles, the reconstructed waveform data has 20 signal cycles, still an integer multiple of the original signal cycle. The new waveform data is stored in DDR, requiring 400 bytes to be stored. 32 = 12800 bits of information, while when the FPGA performs a burst write operation on a 64-bit DDR with a fixed burst length of 8, the data width of each burst operation is 8 bits. 64 = 512 bits of information. Since the 12800 bits of information that the new waveform data needs to be stored is an integer multiple of the 512-bit information of the burst operation data, that is, 12800 / 512 = 25, performing 25 burst write DDR operations can completely store the 12800 bits of information that the new waveform data needs to be stored into DDR, while not introducing any invalid information.
[0041] 4. Cache new waveform data in DDR.
[0042] 5. The FPGA continues to read new waveform data from the DDR memory cache with a fixed burst length of 8 in a loop. Since the reconstructed new waveform data takes into account the fixed burst length and the DDR data width, the FPGA reads new waveform data from the DDR cache in a loop with a fixed burst length. There is no invalid data at the end of the data read in each loop, which ensures the periodicity of the output signal.
[0043] 6. The FPGA sends the data read in a loop to the digital-to-analog converter (DAC) for transmission.
[0044] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.
Claims
1. A method for constructing waveforms of arbitrary length based on a vector signal generator, characterized in that, Includes the following steps: S1, determine the length L and bit width W1 of the input original waveform file data, where the original waveform file has an arbitrary waveform length; S2, determine the fixed burst operation length N of the read / write DDR chip used by the vector signal generator and the fixed data bit width W2 of the DDR chip; S3, determine the burst operation multiplier factor K, where the burst operation multiplier factor K is the ratio of the burst operation bit width to the original waveform file data bit width; S4. Determine the repetition factor M based on the original waveform file data length L and the burst operation multiplier factor K; S5 adaptively reconstructs new waveform data based on the repetition factor M and the original waveform file.
2. The method for constructing waveforms of arbitrary length based on a vector signal generator according to claim 1, characterized in that, The original waveform file is a waveform file with an integer multiple of the signal period.
3. The method for constructing waveforms of arbitrary length based on a vector signal generator according to claim 1, characterized in that, The burst operation has a bit width of N. W2, K=N W2 / W1.
4. The method for constructing waveforms of arbitrary length based on a vector signal generator according to claim 1, characterized in that, Step S4 involves classifying and determining the repetition factor M based on the original waveform file data length L and the burst operation multiplier factor K. This includes the following steps: First type, finding L If the remainder of 1 / K is 0, then the repetition factor M = 1 and the classification judgment stops; if the remainder is not 0, the second classification judgment is performed. The second type is to find L. If the remainder of 2 / K is 0, then the repetition factor M = 2 and the classification judgment stops; if the remainder is not 0, the third category classification judgment is performed. Based on the above, the classification judgment continues in this manner until the classification judgment of the (K-1)th class is reached; For the (K-1)th class, find L If the remainder of (K-1) / K is 0, then the repetition factor M = K-1 is determined, and the classification judgment stops; if the remainder is not 0, then the repetition factor M = K is determined, and the classification judgment stops.
5. The method for constructing waveforms of arbitrary length based on a vector signal generator according to claim 1, characterized in that, In step S5, the adaptive reconstruction of new waveform data based on the repetition factor M and the original waveform file is specifically as follows: based on the repetition factor M, the original waveform file data is copied M times as new waveform data, and the length of the new waveform data is determined to be LL=L*M, thus completing the adaptive reconstruction of the new waveform data.
6. A waveform transmission system of arbitrary length based on a vector signal generator, characterized in that, include: The input consists of the original waveform file, the host computer, DDR, FPGA, and digital-to-analog converter (DAC). The original waveform file has an arbitrary waveform length; The host computer loads the original waveform file data, constructs new waveform data of arbitrary length using the arbitrary length waveform construction method based on vector signal generator as described in any one of claims 1-5, and sends the new waveform data to the FPGA; The FPGA writes new waveform data into the DDR for buffering with a fixed burst length. The FPGA also reads new waveform data from the DDR buffer in a loop with a fixed burst length. The FPGA then transmits the looped new waveform data to the digital-to-analog converter (DAC) for transmission.
7. A waveform transmitting device of arbitrary length based on a vector signal generator, characterized in that, The device includes a processor capable of executing a computer program that implements the arbitrary length waveform construction method based on a vector signal generator as described in any one of claims 1-5.
8. A storage medium, characterized in that, The storage medium stores a computer program that can implement the arbitrary length waveform construction method based on a vector signal generator as described in any one of claims 1-5.
Citation Information
Patent Citations
Arbitrary waveform synthesis method based on sampling rate conversion technology
CN112953461A
DDR3 high-resolution granularity read-write method based on FPGA
CN115563035A
Bit error tester, code pattern generation method and device, electronic equipment and medium
CN116455530A
Waveform digital generation and radio frequency emission method and system based on RFSoC
CN117251021A
Method for cyclically generating high-rate waveform signal and signal generator
CN119759176A