An arbitrary amplitude modulation component
By designing an arbitrary amplitude modulation component including a shift register array and an adder, the problem of poor amplitude modulation capability of the waveform generator is solved, arbitrary amplitude modulation within the output voltage range is achieved, the generalization level of the waveform generator is improved and the hardware cost is reduced cost.
Patent Information
- Application Number
- CN202111592008.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-12-23
AI Technical Summary
Existing waveform generators have problems with fixed or poor amplitude modulation capabilities, resulting in high hardware costs and low level of generalization, especially in scalable waveform generators based on programmable logic devices.
An arbitrary amplitude modulation component is designed, including a shift register array and an adder. The enable signal of the shift register is controlled by the amplitude modulation code value CC to realize the right shift of the corresponding bit of the digital code value AC, and the superposition of the results is completed through the adder. , to achieve α-fold amplitude modulation of AC, and the amplitude modulation coefficient α ranges from [0,1].
It realizes arbitrary amplitude modulation of the waveform generator within the output voltage range, significantly improves the generalization level of the waveform generator, has a simple structure, and is suitable for waveform generators based on programmable logic devices and hardware accelerators for analog acquisition, reducing the cost of hardware cost.
Smart Images

Figure CN114253343B
Abstract
Description
Technical Field
[0001] The present invention provides an arbitrary amplitude modulation component, which is implemented based on a programmable logic device, belongs to the field of digital circuit technology, is particularly suitable for the amplitude modulation process of a waveform generator, can realize arbitrary amplitude modulation within the output voltage range of the waveform generator, significantly improves the universality level of the waveform generator, and can be widely used in the industrial field. Background Art
[0002] As a universal component, waveform generators are widely used in airborne electronic equipment. The traditional waveform generation solution is to configure a dedicated waveform generator in the equipment, such as AD9837 and AD9833. This solution is simple in design and easy to implement, but has the problem of poor scalability. At present, with the further development of domestic electronic components, more and more people choose to design waveform generators based on programmable logic devices and digital-to-analog converters. This method can output multiple waveforms at the same time when configured with a multi-channel digital-to-analog converter, which significantly improves scalability and reduces the design hardware cost. However, at present, whether it is a dedicated waveform generator or an expandable waveform generator based on programmable logic devices, they all have the disadvantages of fixed output amplitude or poor amplitude modulation capability. It is usually necessary to design hardware circuits for fixed amplitude adjustment, which has high hardware costs and low generalization level.
[0003] Therefore, in order to solve the problem of poor amplitude modulation capability of scalable waveform generators based on programmable logic devices, it is of great significance to design an arbitrary amplitude modulation component to realize arbitrary amplitude modulation of the waveform generator within the output voltage range. Summary of the invention
[0004] The purpose of the present invention is to provide an amplitude modulation component to achieve arbitrary amplitude modulation of digital code values.
[0005] The technical solution of the present invention is: an arbitrary amplitude modulation component, the arbitrary amplitude modulation component comprises a shift register array and an adder, wherein: the shift register array comprises n shift registers SR(i), 1≤i≤n, each shift register is provided with an enable pin EN, and the input SRD of each shift register IN are connected to the digital code value AC; the enable EN of the i-th shift register SR(i) is connected to CC[ni]; the output SRD of the i-th shift register SR(i) OUT The corresponding adder input pin AUD in (i) Connect the adder output AUD out Connected to the conversion code value DC.
[0006] Specifically, the adder has n input pins AUD with a bit width of n bits. in (i), 1≤i≤n, its output AUDout With AUD in The relationship between (i) is
[0007] Specifically, the code value range of the amplitude modulation factor CC is [00…0] n ~[10…0] n , the range of the amplitude modulation coefficient α is [0,1], where the code value is [00…0] n Corresponding to the amplitude modulation coefficient α being 0, the code value is [10…0] n This corresponds to an amplitude modulation coefficient α of 1.
[0008] Specifically, the conversion relationship between α and CC is Where CC[ni] represents the (ni)th bit of CC.
[0009] Specifically, when the enable pin EN of the shift register SR(i) is at a high level, the output SRD of SR(i) OUT (i) With input SRD IN (i) The relationship between OUT (i) = SRD IN (i)×2 -(i-1) .
[0010] Specifically, when the enable pin EN of the shift register SR(i) is at a low level, the output SRD of SR(i) out is equal to 0.
[0011] Specifically, the CLK of each shift register is connected to the system clock CLOCK.
[0012] Specifically, the amplitude modulation resolution is 2 -(n-1) .
[0013] The advantages and effects of the present invention are as follows: the present invention designs an arbitrary amplitude modulation component, takes a digital code value AC as an amplitude modulation object, converts an amplitude modulation coefficient α (0≤α≤1) into an amplitude modulation code value CC, configures a shift register array and an adder, takes a designated bit of the amplitude modulation code value CC as an enable signal of the corresponding shift register, completes a right shift operation on the corresponding bit of the digital code value AC, and finally completes the superposition of n right shift results through the adder to achieve α times amplitude modulation of AC. The component is particularly suitable for a waveform generator based on a programmable logic device, and is also suitable for a hardware accelerator for analog quantity acquisition. It has a simple structure and strong versatility and can be widely used in the industrial field. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 It is a schematic diagram of an arbitrary amplitude modulation waveform generator based on FPGA and DAC;
[0015] Figure 2 A schematic diagram of the structure of an arbitrary amplitude modulation component provided in an embodiment of the present application.
[0016] Figure 3 Generate a flow chart for the modulation factor CC. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings and specific implementations.
[0018] Embodiment 1
[0019] like Figure 1-2 As shown, the embodiment of the present application provides an arbitrary amplitude modulation component, which includes a shift register array and an adder. The shift register array includes n shift registers SR(i), 1≤i≤n, each shift register is provided with an enable pin EN, and the input SRD of each shift register IN are connected to the digital code value AC; the enable EN of the i-th shift register SR(i) is connected to CC[ni]; the CLK of each shift register is connected to the system clock CLOCK; the output SRD of the i-th shift register SR(i) out The corresponding adder input pin AUD in (i) Connect the adder output AUD out Connected to the conversion code value DC.
[0020] Among them, CC[ni] is the (ni)th bit of the amplitude modulation factor CC.
[0021] It should be noted that the value of n can be determined according to the actual requirements of the amplitude modulation resolution. -(n-1) .
[0022] Preferably, the adder has n input pins AUD with a bit width of n bits. in (i), 1≤i≤n, its output AUD out With AUD in The relationship between (i) is
[0023] Preferably, the code value range of the amplitude modulation factor CC is [00…0] n ~[10…0] n , the range of the amplitude modulation coefficient α is [0,1], where the code value is [00…0] n Corresponding to the amplitude modulation coefficient α being 0, the code value is [10…0] n This corresponds to the case where the amplitude modulation coefficient α is 1. The conversion relationship between the amplitude modulation coefficient α and CC is: Where CC[ni] represents the (ni)th bit of CC.
[0024] Preferably, when the enable pin EN of the shift register SR(i) is at a high level, the output SRD of SR(i) OUT (i) With input SRD IN (i) The relationship between out (i) = SRD in (i)×2 -(i-1) ; When the enable pin EN of the shift register SR(i) is at a low level, the output SRD of SR(i) out is equal to 0.
[0025] It should be noted that each shift register uses the corresponding bit of the amplitude modulation factor CC as an enable signal to complete the corresponding right shift operation on the digital code value AC; the adder completes the superposition of the code values after all right shift operations on AC to generate a conversion code value DC.
[0026] The input of any amplitude modulation component includes a digital code value (AC, Amplitude code) and an amplitude modulation factor (CC, Coefficient code), and the output of any amplitude modulation component includes a conversion code value (DC, DAC code).
[0027] Among them, the bit widths of AC, CC and DC are all n bits.
[0028] In practical applications, the arbitrary amplitude modulation component is implemented based on a programmable logic device, which includes CPLD, FPGA, SoC, etc.
[0029] Embodiment 2
[0030] The present invention is particularly suitable for the amplitude modulation process of a waveform generator based on a programmable logic device and digital-to-analog conversion. The working principle is described below by taking the waveform generator as an example.
[0031] First, the CPU uses the amplitude modulation coefficient α (0≤α≤1) as follows Figure 3 The process shown generates the amplitude modulation factor CC, the bit width of CC is equal to the bit width of the digital-to-analog converter, which is n bits and ranges from [00…0] n ~[10…0] n , where [00…0] n Corresponding to the amplitude modulation factor 0, [10…0] n Corresponding to the amplitude modulation factor 1, the conversion relationship between α and CC is After completing the conversion, the CPU writes CC to the specified address register of the FPGA for use by the amplitude modulation component.
[0032] Secondly, the amplitude modulation component is internally configured with a shift register array. The amplitude modulation component uses the digital code value AC output by the DDS as the amplitude modulation object and connects AC to the input pin SRD of the shift register SR(i). IN , and connect the (ni)th bit CC[ni] of CC to the enable pin EN of the shift register SR(i). For the shift register SR(i), when EN is high, its output SRD OUT (i) = SRD IN (i)×2 -(i-1) ; When EN is low, it outputs SRD OUT (i) is equal to 0, that is, SRD OUT (i) = EN × SRD IN (i)×2 -(i-1) ,EN∈{0,1}.
[0033] Again, the amplitude modulation component is configured with an n-input adder, the input of the adder AUD in (i) and the output SRD of the corresponding shift register SR(i) OUT (i) connection, 1≤i≤n, adder output AUD out Connected with the conversion code value DC, the relationship between its output and input is
[0034] Finally, the digital-to-analog converter is controlled to convert DC into a voltage signal. SRD IN (i)=AC; EN(i)=CC[ni]; SRD OUT (i)=EN(i)×SRD IN (i)×2 -(i-1) ,EN∈{0,1}; And AUD out =DC. After derivation, it is easy to get Then we get DC = α × AC, which realizes arbitrary AC amplitude modulation. When the reference voltage of the digital-to-analog converter is V out When the amplitude modulation component can achieve the output waveform amplitude in [-V out , V out ] can be adjusted arbitrarily, and the amplitude modulation resolution is 2 -(n-1) .
Claims
1. An arbitrary amplitude modulation component, characterized in that: The arbitrary amplitude modulation component includes a shift register array and an adder, wherein: the shift register array includes n shift registers SR(i), 1≤i≤n, each shift register is provided with an enable pin EN; the input SRD of each shift register IN are connected to the digital code value AC, where the input of the i-th shift register SR(i) is SRD IN (i); the enable pin EN of the i-th shift register SR(i) is connected to CC[ni]; the output SRD of the i-th shift register SR(i) OUT (i) The corresponding adder input pin AUD in (i) Connection, adder output AUD out Connected to the conversion code value DC; The code value range of the amplitude modulation factor CC is [00…0] n ~[10…0] n , the range of the amplitude modulation coefficient α is [0,1], where the code value is [00…0] n Corresponding to the amplitude modulation coefficient α being 0, the code value is [10…0] n This corresponds to the case where the amplitude modulation coefficient α is 1; The conversion relationship between α and CC is Where CC[ni] represents the (ni) bits of the amplitude modulation factor CC; The arbitrary amplitude modulation component takes the digital code value AC as the amplitude modulation object, converts the amplitude modulation coefficient α into the amplitude modulation factor CC, configures the shift register array and the adder, takes the designated bit of the amplitude modulation factor CC as the enable signal of the corresponding shift register, completes the right shift operation of the corresponding bit of the digital code value AC, and finally completes the superposition of n right shift results through the adder to generate the conversion code value DC, thereby realizing α times amplitude modulation of the digital code value AC.
2. The arbitrary amplitude modulation component according to claim 1, characterized in that: The adder has n input pins AUD with a bit width of n bits. in (i), 1≤i≤n, its output AUD out With AUD in The relationship between (i) is 3. The arbitrary amplitude modulation component according to claim 1, characterized in that: When the enable pin EN of the shift register SR(i) is at a high level, the output SRD of SR(i) OUT (i) With input SRD IN (i) The relationship between OUT (i) = SRD IN (i)×2 -(i-1) .
4. The arbitrary amplitude modulation component according to claim 1, characterized in that: When the enable pin EN of the shift register SR(i) is at a low level, the output SRD of SR(i) OUT (i) is equal to 0.
5. The arbitrary amplitude modulation component according to claim 1, characterized in that: The CLK of each shift register is connected to the system clock CLOCK.
6. The arbitrary amplitude modulation component according to claim 1, characterized in that: AM resolution is 2 -(n-1) .
