Self-calibration method and storage medium based on phased array chip state RMS error calculation

By using the self-calibration method of the CORDIC calculation unit and the normalization processing circuit in the phased array chip to calculate the RMS error, the problems of long calibration time and poor beamforming quality in the existing technology are solved, and high-precision phase detection is achieved. Improvement of array chip calibration and beamforming capabilities.

CN114814692BActive Publication Date: 2024-10-15UNIV OF SCI & TECH OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210243167.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2024-10-15
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

Existing phased array chip calibration methods have problems such as dependence on external circuits, long calibration time, and poor beamforming quality. In particular, the demand for high-precision beamforming in the fields of autonomous driving and 5G communications has not been met.

Method used

Using a self-calibration method based on scanning phased array status information, the RMS error of the phased array chip is calculated through the CORDIC calculation unit and normalization processing circuit to achieve self-calibration of phase and gain, simplifying the calibration process and improving accuracy.

Benefits of technology

It significantly reduces the calibration time and state switching time, improves the beamforming capability and beam steering accuracy of the phased array chip, and saves lookup table generation time and storage resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114814692B_ABST
    Figure CN114814692B_ABST
Patent Text Reader

Abstract

The present invention discloses a self-calibration method and storage medium based on the calculation of the RMS error of the phased array chip state, including a phase and amplitude self-calibration algorithm circuit for the phased array chip, which includes a state scanning unit, a state screening unit, a CORDIC calculation unit, a storage unit, a control unit, an SPI unit and a lookup table unit; the storage unit is used to store the phase information, gain information, target state control word and target state error information of all states of the phased array chip. The present invention adopts the CORDIC algorithm to calculate the RMS error of all target states of the phased array chip, ensuring that the phased array chip has a more accurate phase resolution and gain resolution after the amplitude and phase calibration of the phased array chip, so that the calibrated phased array chip has better beamforming capability and higher beam steering accuracy. The present invention greatly saves the generation time of the LUT, adopts the form of a full pipeline, can remove the state information storage in the storage unit, realizes the simultaneous calibration of all target states, and saves storage resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of phased array beamforming, and in particular to a self-calibration method and a storage medium based on phased array chip state RMS error calculation. Background Art

[0002] Phased array technology plays an important role in commercial fields due to beamforming, such as autonomous driving and fifth-generation communication technology (5G). However, the gain and phase errors of phased array chips caused by topological structure and process deviations affect the quality of beamforming. In order to achieve better beamforming capabilities and higher beam steering accuracy, the phase and gain accuracy of phased array chips must be improved, which makes it necessary to calibrate the phased array chips.

[0003] At present, one approach is to use the internal integrated test circuit of the phased array chip and use the off-chip calibration logic (FPGA, etc.) to calibrate the phase and gain. This approach generates a lookup table of the phased array state control word (A Phase-Calibration Method for Vector-Sum Phase Shifters Using a Self-Generated LUT, IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS–I: REGULAR PAPERS, VOL. 66, NO. 4, APRIL 2019). Another solution is to integrate digital calibration logic and test circuits on the chip (A 39-GHz 64-Element Phased-Array Transceiver With Built-In Phase and Amplitude Calibrations for Large-Array 5G NR in 65-nm CMOS, IEEE JOURNAL OF SOLID-STATE CIRCUITS, VOL. 55, NO. 5, MAY 2020). The solution of using off-chip calibration logic to generate a lookup table requires the use of external circuits such as FPGA when performing state calibration. Such a system is not simple enough, and the off-chip logic adopts the idea of ​​state-by-state calibration, which takes a long time to calibrate and generate the lookup table, restricting the speed of phased array electronic scanning. In addition, this type of external calibration algorithm only pursues the optimal phase / gain, sacrificing the quality of beamforming. The solution of internal integrated calibration logic adopts the idea of ​​state-by-state approximation, which prolongs the state switching time and also restricts the speed of phased array electronic scanning. Summary of the invention

[0004] The present invention proposes a self-calibration method based on phased array chip state RMS error calculation, which can solve the above technical problems.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A self-calibration method based on RMS error calculation of phased array chip state, used in phase and amplitude self-calibration system of phased array chip, including a self-calibration algorithm circuit for simultaneously screening target state and calculating RMS error of all target states of phased array system chip based on scanning phased array state information;

[0007] The self-calibration algorithm circuit includes a scanning unit, a CORDIC calculation unit, a storage unit, a normalization processing unit, an error calculation unit, a state screening unit, a control unit, an SPI interface and a LUT;

[0008] The scanning unit sets different VGA control words to scan the phase / gain states of all phased array chips according to different calibration modes, and controls the ADC to collect the I / Q signals quantized by the self-test receiver;

[0009] The CORDIC calculation unit calculates the phase and gain of each state according to the amplitude of the I and Q signals, and stores the phase and gain of each state in the storage unit in a fixed-point manner; the scanning phase ends here, and the self-calibration algorithm chip enters the screening phase; the states that meet the error requirements are screened out, and a lookup table is generated; the control of the phased array chip is realized through SPI;

[0010] The self-calibration method comprises the following steps:

[0011] S100, according to different calibration modes, scanning all phase / gain states of the phased array chip, collecting IQ signal vector amplitudes, and calculating phases and gains of all states, and storing them in a storage unit;

[0012] S200, select a state as a reference state, input the phase and amplitude information of all states into the normalization processing circuit, and then enter the error calculation unit, the error calculation unit calculates the target state address and error, the screening circuit selects the calibrated target state according to the calculation result, and calculates the RMS error through CORDIC;

[0013] S300, if the error requirement is met, the calibration is successful, otherwise the reference state is reselected and step S200 is repeated; after the calibration is successful, the VGA control word of the calibrated target state is stored in the LUT, and the calibration completion signal and the calibration state are output;

[0014] S400, the external device receives the calibration completion signal, reads the calibration status, sends the calibration status address through SPI, and the self-calibration chip outputs the corresponding status control word.

[0015] Further, the normalization processing circuit processing steps include phase rotation and gain shift;

[0016] P new =P old -(P ref -P diff )

[0017] G new =G old -(G ref -G diff ) (2)

[0018] P old and G old is the phase and gain information of all states, P ref and G ref is the phase and gain of the reference state; G diff is the length of half the gain standard state interval, P diff It is half the length of the phase standard state interval;

[0019] The phase and gain information of all states are normalized by phase rotation and gain shift.

[0020] Furthermore, the state error calculation unit calculates the state address, parasitic error and state error of each state and enters the screening circuit. The screening circuit does not directly read the target state error of the current state according to the state address, but determines whether to update the target state before updating.

[0021] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0022] It can be seen from the above technical solutions that the self-calibration method based on the calculation of the RMS error of the phased array chip state of the present invention relates to a phased array chip calibration solution, which can be applied to fields such as phased array radars and phased array communication systems (such as 5G). In order to speed up the scanning speed of the phased array, reduce the switching time between states, and reduce the generation time of the lookup table, different from the state screening / approximation method one by one, the present invention proposes and implements a self-calibration algorithm for calibrating all target states of phased array chips through a hardware circuit. In order to solve the problem of only pursuing the optimal result of a single state when calibrating the state, but sacrificing the quality of beamforming, the present invention proposes and implements a self-calibration algorithm based on calculating the RMS error of the phased array chip state.

[0023] Specifically, the present invention proposes and implements a phase and amplitude self-calibration algorithm circuit for a phased array chip in a phased array system, including a state scanning unit, a state screening unit, a CORDIC calculation unit, a storage unit, a control unit, an SPI unit, and a lookup table unit, etc. Among them, the storage unit is used to store the phase information, gain information, target state control word, and target state error information of all states of the phased array chip.

[0024] As a further optimization scheme based on the circuit for calculating the RMS error of the phased array system state described in the present invention, the CODIC algorithm is used to calculate the RMS error of all target states of the phased array chip, ensuring that the phased array chip has higher phase resolution and gain resolution after amplitude and phase calibration. Thus, the calibrated phased array chip has better beamforming capability and higher beam steering accuracy.

[0025] As a further optimization scheme of the self-calibration method based on the RMS error calculation of the phased array chip state described in the present invention, the screening unit adopts a phase rotation and gain shift circuit, and the phase rotation and gain shift circuit normalizes all states of the phased array chip to facilitate the calculation of the state error calculation circuit.

[0026] As a further optimization scheme of the self-calibration method based on the phased array chip state RMS error calculation described in the present invention, the state error calculation circuit used by the screening unit calculates the parasitic error, state error and target state address corresponding to each state through a binary search method, and each target state can be calibrated at the same time according to the calculation result of the state error calculation circuit, thereby saving the generation time of the lookup table.

[0027] In general, in the present invention, the RMS error of the CORDIC calculation target state error is added to the amplitude and phase self-calibration algorithm of the phased array chip. The self-calibration chip can control the phase and gain resolution of the calibrated phased array calibration chip according to the RMS error calculation result of the target state information, which helps the phased array chip have better beamforming capability.

[0028] The present invention adopts a normalization processing method of phase rotation and gain shift, which effectively solves the problem of reference interval calculation under different reference states. The error calculation circuit implemented by the six-stage pipeline adopts a binary search method to achieve the same result achieved by the division operation in the software, but saves hardware resources. According to the calculation results (state error, parasitic error and target state address) of the state error calculation circuit, each target state can be calibrated at the same time. Thereby saving the generation time of the lookup table.

[0029] The self-calibration algorithm of the present invention greatly saves the generation time of the LUT, and adopts the form of a full pipeline, which can remove the state information storage in the storage unit, and can still realize the simultaneous calibration of all target states, which can further save storage resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A diagram of a phase and amplitude self-calibration system for a phased array chip according to an example of the present invention;

[0031] Figure 2a A phase state distribution diagram of a phased array chip according to an example of the present invention;

[0032] Figure 2b A phase calibration distribution diagram of a phased array chip according to an embodiment of the present invention;

[0033] Figure 3 The overall framework diagram of the self-calibration algorithm chip of the present invention example;

[0034] Figure 4a 64 target state interval distribution diagram of the normalized processing effect diagram of the embodiment of the present invention;

[0035] Figure 4b It is a 64 target state standard interval distribution diagram of the normalized processing effect diagram of an embodiment of the present invention;

[0036] Figure 5 A state error calculation circuit diagram provided by an embodiment of the present invention;

[0037] Figure 6 A flow chart of a self-calibration algorithm provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0039] A self-calibration method based on RMS error calculation of phased array chip state, used in phase and amplitude self-calibration system of phased array chip, including a self-calibration algorithm circuit for simultaneously screening target state and calculating RMS error of all target states of phased array system chip based on scanning phased array state information;

[0040] The self-calibration algorithm circuit includes a scanning unit, a CORDIC calculation unit, a storage unit, a normalization processing unit, an error calculation unit, a state screening unit, a control unit, an SPI interface and a LUT;

[0041] The scanning unit sets different VGA control words to scan the phase / gain states of all phased array chips according to different calibration modes, and controls the ADC to collect the I / Q signals quantized by the self-test receiver;

[0042] The CORDIC calculation unit calculates the phase and gain of each state according to the amplitude of the I and Q signals, and stores the phase and gain of each state in the storage unit in a fixed-point manner; the scanning phase ends here, and the self-calibration algorithm chip enters the screening phase; the states that meet the error requirements are screened out, and a lookup table is generated; the control of the phased array chip is realized through SPI;

[0043] The self-calibration method comprises the following steps:

[0044] S100, according to different calibration modes, scanning all phase / gain states of the phased array chip, collecting IQ signal vector amplitudes, and calculating phases and gains of all states, and storing them in a storage unit;

[0045] S200, select a state as a reference state, input the phase and amplitude information of all states into the normalization processing circuit, and then enter the error calculation unit, the error calculation unit calculates the target state address and error, the screening circuit selects the calibrated target state according to the calculation result, and calculates the RMS error through CORDIC;

[0046] S300, if the error requirement is met, the calibration is successful, otherwise the reference state is reselected and step S200 is repeated; after the calibration is successful, the VGA control word of the calibrated target state is stored in the LUT, and the calibration signal completion number and calibration status are output;

[0047] S400, the external device receives the calibration completion signal, reads the calibration status, sends the calibration status address through SPI, and the self-calibration chip outputs the corresponding status control word.

[0048] The following are examples:

[0049] Figure 1As shown, it is a phase and amplitude self-calibration system for a phased array chip. The gain state of the phased array chip is controlled by VGA1 (6-Bit) and VGA2 (6-Bit), and the phase state of the phased array chip is controlled by VGAI (6-Bit) and VGAQ (6-Bit). The phased array chip has 4096 phase states and 4096 gain states. The self-calibration algorithm chip sets the VGA control word of the phased array chip, the self-test receiver measures the output signal of the phased array chip, and decomposes the output signal into two orthogonal signals of I / Q. The self-calibration algorithm chip controls the ADC to collect the I and Q signals, and calculates the phase and gain of the phased array chip according to the amplitude of the I and Q signals. Based on this self-calibration system, the present invention proposes and implements a self-calibration algorithm for a phased array chip. The calibration process includes scanning, screening, mapping and control. For phase / gain calibration, after setting the basic state of gain / phase, 4096 phase / gain states are scanned. According to the gain and phase of 4096 states, 64 states are selected and the corresponding VGA control word (12 bits) is stored in LUT. Through the state control word (6 bits) received by SPI, the calibration system outputs the VGA control word stored in LUT to put the phased array chip in the corresponding state. During phase calibration, 64 states with a phase shift of 5.625° are screened out, the phase shift error (RMS) is less than 2°, and the parasitic amplitude modulation is 1db; during gain calibration, 64 states with an attenuation of 0.5dB are screened out, the attenuation error (RMS) is less than 0.3dB, and the parasitic phase modulation is 10°.

[0050] Figure 2aThe figure shows the phase distribution diagram of the phased array state, with a total of 4096 phase states. Each state has not only phase information but also gain information. According to the method of screening the target states one by one, when performing phase calibration, the gain state of the phased array chip is set to the maximum, the phase of a reference state (VGAQ:0, VGAI:63) is selected as the reference phase, and its gain is selected as the reference gain; then within the range of ±2.8125° of the reference phase, the state with the smallest gain error state is selected as the first target state; then the reference phase is shifted by 5.625° to start screening the next state until 64 target states are screened; and the RMS phase error of the 64 target states is calculated. If the RMS error requirement is met, the calibration is successful, otherwise the reference state is selected again for screening. According to the method of screening the target states one by one, when performing gain calibration, the phase state of the phased array chip is set to the base state, the phase of a reference state (VGA1:63, VGA2:63) is selected as the reference phase, and its gain is selected as the reference gain. In the reference gain ±0.5dB range, select the state with the smallest phase error as the first target state; then, the reference gain is attenuated by 0.5db to start screening the next state until 64 states are screened; and the RMS phase error of the 64 target states is calculated. If it meets the RMS error requirement, the calibration is successful. Otherwise, select the reference state again to screen again. This screening method will traverse 4096 phase states or gain state information once, so the number of states that need to be traversed to complete a calibration is 4096×64=2 18 .

[0051] The present invention proposes and implements a self-calibration algorithm circuit based on scanning phased array state information to simultaneously screen target states and calculate the RMS errors of all target states of the phased array system chip. Figure 3 As shown, it mainly includes a scanning unit, a CORDIC calculation unit, a storage unit, a normalization processing unit, an error calculation unit, a state screening unit, a control unit, an SPI interface and a LUT. The scanning circuit sets different VGA control words to scan the phase / gain state of the 4096 phased array chip according to different calibration modes, and controls the ADC to collect the I / Q signals quantized by the self-test receiver; the CORDIC calculation unit calculates the phase and gain of each state according to the amplitude of the I and Q signals, and stores the phase and gain of each state in the storage unit in a fixed-point manner. At this point, the scanning stage ends, and the self-calibration algorithm chip enters the screening stage.

[0052] By analyzing the screening method one by one, it can be seen that the 64 screened states are all distributed in the corresponding state interval. For example, during phase calibration, the first phase state is between 1 and 2 of the dotted arrow, as shown in Figure 4(a). According to the reference state, 64 state intervals can be calculated, and then the 64 states can be directly screened according to the gain information and phase information of each state. However, judging one by one in which interval a certain state is located based on the 64 state intervals will increase the screening time. It is worth noting that during phase calibration, when the phase of the reference state is 2.8125°, the 64 state intervals are standard state intervals, as shown in Figure 4(b). By dividing the phase of each state by 5.625°, it is possible to determine in which calibration state interval (target state address) a certain state is located. It is hoped that in any calibration mode, there can be a standard state interval for different reference states. To this end, the present invention proposes a method: phase rotation and gain shift, the principle is as (1).

[0053] P new =P old -(P ref -2.8125)

[0054] G new =G old -(G ref -0.5) (1)

[0055] The phase and gain information of 4096 states are normalized by phase rotation and gain shift. Obviously, the state interval after phase rotation / gain shift is a standard state interval, so the target state address can be calculated by division and the state error can be calculated by subtraction. However, the implementation of circuit division in hardware circuits is quite complex and resource-consuming. In order to achieve the same purpose, the calculation of the target state address and state error is realized by binary search.

[0056] like Figure 6 As shown, it is a flowchart of the screening stage in the self-calibration algorithm proposed by the present invention. State processing, including normalization processing and state error calculation, is used to calculate the parasitic error, error information and target state address of each state. 64 states are screened, and the parasitic error information in the corresponding address is read according to the target state address of each state. When the stored parasitic error is greater than the calculated parasitic error, the error information and state information of the target state address are updated. After completing 64 states, the RMS error is calculated. If it meets the error requirements, it means that the screening is successful.

[0057] Systematically speaking, the steps of the self-calibration method based on phased array chip state RMS error calculation in the embodiment of the present invention are as follows:

[0058] 1. The method proposed in the present invention first scans all phase / gain states of the phased array chip according to different calibration modes, collects the IQ signal vector amplitude, and calculates the phase and gain of 4096 states and stores them in a storage unit.

[0059] 2. Select a state as the reference state, input the phase and amplitude information of 4096 states into the normalization processing circuit, and then enter the error calculation unit. The error calculation unit calculates the target state address and error, and the screening circuit selects 64 target states based on the calculation results, and calculates the RMS error through CORDIC.

[0060] 3. If the error requirement is met, the calibration is successful. Otherwise, reselect the reference state and repeat step 2. After the calibration is successful, the VGA control words of the 64 target states are stored in the LUT, and the calibration completion signal and calibration status are output.

[0061] 4. The external device receives the calibration completion signal, reads the calibration status, sends the calibration status address via SPI, and the self-calibration circuit outputs the corresponding status control word.

[0062] The above self-calibration method steps can be interpreted as the specific process of self-calibration chip as follows:

[0063] The self-calibration chip first sets different reference states according to different calibration modes, scans all phase / gain states of the phased array chip by changing the VGA control word of the phased array chip, controls the ADC to collect the vector amplitude of the tested IQ signal, and calculates the phase and gain of 4096 states through the CORDIC unit and stores them in the storage unit.

[0064] At the beginning of the screening, a state is selected as the reference state, and the phase and amplitude information of the 4096 states are input into the normalization processing circuit. The normalization circuit calculates the phase and gain of the 4096 states according to the phase and gain of the reference state according to formula (2), P old and G old is the phase and gain information of 4096 states, P ref and G ref is the phase and gain of the reference state. P in different calibration modes diff and G diff is different, P in phase calibration mode diff and G diff is 2.8125° and 0.5dB; P in gain calibration mode diff and G diff The parasitic information and state information output by the normalization circuit are different in different calibration modes. new and G newis state information and parasitic information; P in gain calibration mode new and G new It is parasitic information and status information. diff and P diff It is half the length of the gain and phase standard state interval.

[0065] P new =P old -(P ref -P diff )

[0066] G new =G old -(G ref -G diff ) (2)

[0067] The specific circuit implementation of the error calculation circuit is as follows Figure 5 As shown, p_i and s_i are parasitic information and state information after normalization, respectively. The gain and phase of a state during phase calibration are parasitic information and state information, and the phase and gain of a state during gain calibration are parasitic information and state information. According to the state information of 4096 states, the target state address corresponding to each state can be calculated, and then according to the parasitic information, it can be judged whether the state is within the parasitic error range of the reference state, and whether the state is valid. If the state is valid, v_i inputs a high level. a_i represents the initial value of the target state address, and the default is 0. s_h represents half of the maximum value of the state information, which is a fixed value, and n_i defaults to 32. vo indicates whether the output state is a valid state, ao indicates the target state address of the output state, and po and so indicate the parasitic error and state error of the output state.

[0068] The state error calculation unit calculates the state address, parasitic error and state error of a certain state and enters the screening circuit. The screening circuit does not directly read the target state error of the current state based on the state address to determine whether to update the target state before updating. Due to the limitation of the memory read and write cycle, this will consume 3-4 clock cycles in the screening of a state. After the error calculation unit calculates the state address, parasitic error and state error of the current state, it delays one beat through the first-level pipeline, reads the error information of this state, and updates the information of the previous state. The time consumed in each state is still 4 cycles, but the information of two states is updated in these four cycles, which improves the screening speed of the target state. After traversing the information of 4096 states, the screening of 64 target states can be completed. Using this method of simultaneously screening 64 target states, the number of traversed states is 4096=2 12,Compared with the state-by-state screening / approximation method, this algorithm greatly reduces the number of access data and saves the generation time of LUT. After completing 64 target states, the state RMS error can be calculated through the CORDIC calculation unit. When the screened RMS state error does not meet the requirements, it means that the beamforming capability needs to be improved, which means that the calibration has failed. At this time, the self-calibration chip will reselect the reference state, input the phase and gain of the 4096 states into the normalization circuit, error calculation circuit and screening circuit, and start a new round of screening. After the screening is successful, the phased array chip will enter the control mode, write the VGA control words of the 64 screened states into the lookup table, and output the calibration completion signal and calibration status.

[0069] The external device receives the calibration completion signal, reads the calibration status, sends the calibration status address via SPI, and the self-calibration circuit outputs the corresponding status control word to control the phased array chip to be in the corresponding state.

[0070] In summary, the present invention proposes and implements a self-calibration algorithm for a phased array chip, and the calibration process includes scanning, screening, mapping and control. After thoroughly scanning all states of the phased array, CORDIC is used to calculate the phase and gain, and all states are normalized and error calculated to achieve the screening of 64 target states. After the screening of 64 target states is completed, the RMS error is calculated by CORDIC to further improve the phase / gain accuracy. After the error meets the requirements, a lookup table of the state control word is generated. The method adopted by the present invention greatly saves the generation time of the LUT, and improves the accuracy by calculating the RMS error during calibration.

[0071] The self-calibration algorithm proposed in the present invention, which simultaneously screens the target state and calculates the RMS error of all target states of the phased array system chip based on scanning the phased array state information, can also adopt a full pipeline architecture to save storage area, which will save production costs.

[0072] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0073] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any of the above methods.

[0074] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the steps of any method in the above embodiments.

[0075] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above method.

[0076] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0077] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0078] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A self-calibration method based on phased array chip state RMS error calculation for phase and amplitude self-calibration system of phased array chip, It is characterized in that It includes a self-calibration algorithm circuit for simultaneously screening target states and calculating RMS errors of all target states of the phased array system chip based on scanning phased array state information; The self-calibration algorithm circuit includes a scanning unit, a CORDIC calculation unit, a storage unit, a normalization processing unit, an error calculation unit, a state screening unit, a control unit, an SPI interface and a LUT; The scanning unit sets different VGA control words to scan the phase / gain states of all phased array chips according to different calibration modes, and controls the ADC to collect the I / Q signals quantized by the self-test receiver; The CORDIC calculation unit calculates the phase and gain of each state according to the amplitude of the I and Q signals, and stores the phase and gain of each state in a fixed-point manner in the storage unit; At this point, the scanning phase ends, and the self-calibration algorithm circuit enters the screening phase; the states that meet the error requirements are screened out, and a lookup table is generated; The phased array chip is controlled through SPI; Among them, the self-calibration method The following steps are included: S100, according to different calibration modes, scanning all phase / gain states of the phased array chip, collecting IQ signal vector amplitudes, and calculating phases and gains of all states, and storing them in a storage unit; S200, select a state as a reference state, input the phase and amplitude information of all states into the normalization processing circuit, and then enter the error calculation unit, the error calculation unit calculates the target state address and error, the screening circuit screens out the calibrated target state according to the calculation result, and calculates the RMS error through CORDIC; S300, if the error requirement is met, the calibration is successful, otherwise the reference state is reselected and step S200 is repeated; after the calibration is successful, the VGA control word of the calibrated target state is stored in the LUT, and the calibration completion signal and the calibration state are output; S400, the external device receives the calibration completion signal, reads the calibration status, sends the calibration status address via SPI, and the self-calibration circuit outputs the corresponding status control word.

2. The self-calibration method based on phased array chip state RMS error calculation according to claim 1, Features: The normalization processing circuit processing steps include phase rotation and gain shift; P new =P old -(P ref -P diff ) G new =G old -(G ref -G diff ) (2) P old and G old is the phase and gain information of all states, P ref and G ref is the phase and gain of the reference state; G diff is the length of half the gain standard state interval, P diff It is half the length of the phase standard state interval; The phase and gain information of all states are normalized by phase rotation and gain shift.

3. The self-calibration method based on phased array chip state RMS error calculation according to claim 1, Features: The error calculation unit calculates the state address, parasitic error and state error of each state and enters the screening circuit. The screening circuit does not directly read the target state error of the current state according to the state address, but determines whether to update the target state before updating.

4. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 3.