Phase-shift code calculation method based on field programmable gate array chip and electronic equipment
By using a field-programmable gate array (FPGA) chip to process the phase-shift code calculation of the phased array radar in parallel, and by utilizing a pre-set lookup table and multiple timing operations, the problem of low efficiency in phase-shift code calculation in the prior art is solved, achieving more efficient calculation and reduced power consumption.
Patent Information
- Application Number
- CN202211108650.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-13
- Publication Date
- 2026-01-23
- Estimated Expiration
- 2042-09-13
AI Technical Summary
In existing technologies, the phase-shifting code calculation efficiency of phased array radar is relatively low, resulting in long calculation time and cumbersome steps, which is especially noticeable when there are many antenna elements.
The phase-shift code calculation is performed in parallel using a field-programmable gate array (FPGA) chip. The trigonometric function data between the receiving antenna and the transmitting antenna is calculated through a preset lookup table, and multiple timing operations and multi-segment interval processing are performed. Combined with the limited phase-shift accuracy, the phase-shift code of the receiving antenna is obtained.
It improves the efficiency of phase-shift code calculation, reduces data storage and algorithm power consumption, and enhances the overall calculation speed.
Smart Images

Figure CN115754908B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of beamforming technology, and in particular to a phase-shifting code calculation method and electronic device based on a field-programmable gate array (FPGA) chip. Background Technology
[0002] In the transmission signal processing of phased array radar (PAR), the calculation of phase shift codes for multiple antenna elements is an important component.
[0003] In related technologies, beam control quantization algorithms are typically used to calculate the phase shift code for each antenna element in real time, and then the calculated data is directly sent to the corresponding phase shifter. This method has a lot of parameter redundancy, the calculation time is long, and calculating the phase shift code for each antenna element separately makes the process cumbersome. When there are a large number of antenna elements, it will further reduce the overall calculation efficiency of the phase shift code.
[0004] Therefore, the related technologies still suffer from the problem of low computational efficiency of phase-shift codes. Summary of the Invention
[0005] This application provides a phase-shift code calculation method and electronic device based on a field-programmable gate array (FPGA) chip, which improves the calculation efficiency of phase-shift codes.
[0006] In a first aspect, embodiments of this application provide a phase-shift code calculation method based on a field-programmable gate array (FPGA) chip. The FPGA chip includes multiple switching units, which execute the following method in parallel. For one switching unit, the method includes:
[0007] In response to the ultra-wideband positioning information input to the receiving antenna, trigonometric function data between the receiving antenna and the transmitting antenna is calculated, wherein the trigonometric function data is obtained based on a preset lookup table;
[0008] Multiple time-series operations are performed between the trigonometric function data and preset parameters to obtain intermediate variables. The intermediate variables and the power of the ordinate corresponding to the receiving antenna are then input into the multiplier of the field-programmable gate array chip to obtain the data result output by the multiplier.
[0009] The data results are processed using multiple segments and a limited phase shift precision to obtain the phase shift code of the receiving antenna.
[0010] In one optional embodiment, calculating the trigonometric function data between the receiving antenna and the corresponding transmitting antenna includes:
[0011] Using a preset lookup table, the beam phase angle θ and elevation angle Φ between the receiving antenna and the transmitting antenna in the ultra-wideband positioning information are processed to obtain multiple trigonometric function values sinθ, cosθ, and sinΦ corresponding to the beam phase angle θ and the elevation angle Φ. The beam phase angle θ and the elevation angle Φ are obtained based on the positioning position of the receiving antenna.
[0012] The trigonometric function values sinθ, cosθ, and sinΦ are processed according to the induction formula to obtain the trigonometric function data between the receiving antenna and the corresponding transmitting antenna.
[0013] In one optional embodiment, the multi-time-series operation between the trigonometric function data and preset parameters includes:
[0014] Within the first time sequence, calculate the first sub-variable P1 = cosθsinΦ and the second sub-variable P2 = d1 / λsinθ, where d1 is the preset longitudinal antenna spacing and λ is the wavelength;
[0015] In the second time sequence, the third sub-variable P3 = d2 / λ*P2 is calculated, where d2 is the preset lateral antenna spacing;
[0016] In the third time sequence, the fourth sub-variable P4 = K * P3 and the fifth sub-variable P5 = i * P3 are calculated, and the intermediate values corresponding to the fourth sub-variable P4 and the fifth sub-variable P5 are calculated to obtain intermediate variables, where i and K are the horizontal and vertical coordinates of the position of the corresponding array element of the receiving antenna.
[0017] In one optional embodiment, processing the data result using multiple segments and a limited phase shift precision to obtain the phase shift code of the receiving antenna includes:
[0018] The data results are normalized using multiple intervals, wherein each interval contains a range of not less than 360°.
[0019] The data results are processed using multiple planning intervals with corresponding limited phase shift accuracy settings, and the phase shift code of the receiving antenna is obtained based on the planning interval to which the data results finally belong.
[0020] In one alternative embodiment, the ultra-wideband positioning information for the receiving antenna input is obtained by trial and error adjustment based on the known transmitting antenna angle.
[0021] Secondly, embodiments of this application provide a field-programmable gate array (FPGA) chip, which includes a switching matrix module. The switching matrix module comprises multiple switching units, each of which is connected to an input channel. Each input channel is used to transmit ultra-wideband positioning information to the switching unit. The multiple switching units perform the steps of the following method in parallel. For one switching unit, the steps of performing the method include:
[0022] In response to the ultra-wideband positioning information input to the receiving antenna, trigonometric function data between the receiving antenna and the transmitting antenna is calculated, wherein the trigonometric function data is obtained based on a preset lookup table;
[0023] Multiple time-series operations are performed between the trigonometric function data and preset parameters to obtain intermediate variables. The intermediate variables and the power of the ordinate corresponding to the receiving antenna are then input into the multiplier of the field-programmable gate array chip to obtain the data result output by the multiplier.
[0024] The data results are processed using multiple segments and a limited phase shift precision to obtain the phase shift code of the receiving antenna.
[0025] In an optional embodiment, the calculation of trigonometric function data between the receiving antenna and the corresponding transmitting antenna, wherein the switching unit is specifically used for:
[0026] Using a preset lookup table, the beam phase angle θ and elevation angle Φ between the receiving antenna and the transmitting antenna in the ultra-wideband positioning information are processed to obtain multiple trigonometric function values sinθ, cosθ, and sinΦ corresponding to the beam phase angle θ and the elevation angle Φ. The beam phase angle θ and the elevation angle Φ are obtained based on the positioning position of the receiving antenna.
[0027] The trigonometric function values sinθ, cosθ, and sinΦ are processed according to the induction formula to obtain the trigonometric function data between the receiving antenna and the corresponding transmitting antenna.
[0028] In one optional embodiment, the step of performing multi-time-series operations between the trigonometric function data and preset parameters, wherein the switching unit is specifically used for:
[0029] Within the first time sequence, calculate the first sub-variable P1 = cosθsinΦ and the second sub-variable P2 = d1 / λsinθ, where d1 is the preset longitudinal antenna spacing and λ is the wavelength;
[0030] In the second time sequence, the third sub-variable P3 = d2 / λ*P2 is calculated, where d2 is the preset lateral antenna spacing;
[0031] In the third time sequence, the fourth sub-variable P4 = K * P3 and the fifth sub-variable P5 = i * P3 are calculated, and the intermediate values corresponding to the fourth sub-variable P4 and the fifth sub-variable P5 are calculated to obtain intermediate variables, where i and K are the horizontal and vertical coordinates of the position of the corresponding array element of the receiving antenna.
[0032] In one optional embodiment, the data result is processed using multiple segments and a limited phase shift precision to obtain the phase shift code of the receiving antenna. Specifically, one switching unit is used for:
[0033] The data results are normalized using multiple intervals, wherein each interval contains a range of not less than 360°.
[0034] The data results are processed using multiple planning intervals with corresponding limited phase shift accuracy settings, and the phase shift code of the receiving antenna is obtained based on the planning interval to which the data results finally belong.
[0035] In one alternative embodiment, the ultra-wideband positioning information for the receiving antenna input is obtained by trial and error adjustment based on the known transmitting antenna angle.
[0036] Thirdly, embodiments of this application provide an electronic device that includes a field-programmable gate array chip as described in the second aspect.
[0037] The technical effects of the embodiments of this application are as follows:
[0038] In this embodiment, the field-programmable gate array (FPGA) chip includes multiple switching units. These switching units execute the following method in parallel: For each switching unit, in response to ultra-wideband positioning information input to the receiving antenna, trigonometric function data between the receiving and transmitting antennas is calculated, wherein the trigonometric function data is obtained based on a preset lookup table; multiple time-series operations are performed between the trigonometric function data and preset parameters to obtain intermediate variables, and the powers of the intermediate variables and the ordinate corresponding to the receiving antenna are input into the multiplier of the FPGA chip to obtain the data result output by the multiplier; the data result is processed using multiple intervals and a limited phase-shifting precision to obtain the phase-shifting code of the receiving antenna. Based on the above method, this embodiment performs parallel processing of the phase-shifting code calculation process, while reducing data storage, lowering algorithm power consumption, and improving overall computational efficiency. Attached Figure Description
[0039] Figure 1 This is a schematic diagram illustrating a possible application scenario provided by an embodiment of this application;
[0040] Figure 2A flowchart illustrating a phase-shift code calculation method provided in this application embodiment;
[0041] Figure 3 This application provides a schematic diagram of parallel execution as an embodiment of the present application;
[0042] Figure 4 A schematic diagram of a planning interval provided for an embodiment of this application;
[0043] Figure 5 A schematic flowchart illustrating the phase-shift code calculation method provided in this application embodiment;
[0044] Figure 6 This is a schematic diagram of the structure of a field-programmable gate array chip provided in an embodiment of this application;
[0045] Figure 7 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0046] The technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this invention.
[0047] It should be noted that in the description of this application, "multiple" is understood as "at least two". "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. A connected to B can represent: A and B directly connected, or A and B connected through C. Furthermore, in the description of this application, terms such as "first" and "second" are used only for descriptive purposes and should not be construed as indicating or implying relative importance or order.
[0048] See Figure 1 As shown, this is a schematic diagram of a possible application scenario provided by an embodiment of this application. The application scenario includes three positioning base stations R1, R2, and R3. In this embodiment, the positioning card is connected to the receiving antenna, and the distance between the positioning card and the transmitting antenna of each positioning base station is calculated according to ultra-wideband technology (UWB, such as TDOA, TOA, TOF, etc.). The specific position of the receiving antenna is then calculated using the least squares method. For example, the TOA positioning algorithm is used in this embodiment for subsequent explanation.
[0049] See Figure 2As shown, this application provides a phase-shift code calculation method based on a field-programmable gate array (FPGA) chip. This method can be executed in parallel by multiple switching units contained in the FPGA chip, and the parallel execution is as follows: Figure 3 As shown, for a single switching unit, the phase-shift code calculation method includes:
[0050] S201: In response to the ultra-wideband positioning information input to the receiving antenna, calculate the trigonometric function data between the receiving antenna and the transmitting antenna.
[0051] Optionally, the trigonometric function data between the receiving antenna and the transmitting antenna can be obtained by looking up a table.
[0052] Specifically, in one optional embodiment, a preset lookup table is used to process the beam phase angle θ and elevation angle Φ between the receiving antenna and the transmitting antenna in the ultra-wideband positioning information to obtain multiple trigonometric function values sinθ, cosθ, and sinΦ corresponding to the beam phase angle θ and the elevation angle Φ, wherein the beam phase angle θ and the elevation angle Φ are obtained based on the positioning position of the receiving antenna.
[0053] Furthermore, to save storage space in the algorithm, trigonometric function induction formulas, such as sine-cosine conversion formulas, are used to process the multiple trigonometric function values sinθ, cosθ, and sinΦ respectively, so as to induce them into their respective sine values on a quarter-cycle for storage.
[0054] For example, when the beam phase angle θ is in (0°, 90°), its trigonometric function value sinθ is retained as the corresponding sine value sinθ, and its trigonometric function value cosθ is retained as the corresponding sine value sin(90°-θ); when the beam phase angle θ is in (90°, 180°), its trigonometric function value sinθ is retained as the corresponding sine value sin(180°-θ), and its trigonometric function value cosθ is retained as the corresponding sine value. The result is sin(θ-90°).
[0055] Based on the above method, the trigonometric function data sinθ, cosθ, and sinΦ between the receiving antenna and the transmitting antenna are obtained.
[0056] S202: Performs multi-time operation between trigonometric function data and preset parameters to obtain intermediate variables, and inputs the intermediate variables and the power of the ordinate corresponding to the receiving antenna into the multiplier of the field programmable gate array chip to obtain the data result output by the multiplier.
[0057] Furthermore, the step of performing multi-time-series operations on the trigonometric function data and preset parameters to obtain intermediate variables specifically includes:
[0058] S2021: In the first time sequence, calculate the first sub-variable P1 = cosθsinΦ and the second sub-variable P2 = d1 / λsinθ, where d1 is the preset longitudinal antenna spacing and λ is the wavelength.
[0059] S2022: In the second time sequence, calculate the third sub-variable P3 = d2 / λ*P2, where d2 is the preset lateral antenna spacing.
[0060] Optionally, the calculation processes of P1 and P2 can be performed simultaneously in the field programmable gate array (FPGA) chip. The above-mentioned d1 / λ and d2 / λ can be calculated in real time during the steps, or they can be obtained in advance based on the fixed parameters of the radar array.
[0061] S2023: In the third time sequence, calculate the fourth sub-variable P4 = K * P3 and the fifth sub-variable P5 = i * P3, and calculate the intermediate values corresponding to the fourth sub-variable P4 and the fifth sub-variable P5 to obtain intermediate variables, where i and K are the horizontal and vertical coordinates of the position of the corresponding array element of the receiving antenna.
[0062] Based on the above method, the required intermediate variable middata is quickly obtained. Then, in S202, the intermediate variable middata needs to be raised to the power of 2 with the vertical coordinate corresponding to the receiving antenna. K Input the multiplier (i.e., the multiplication IP core) of the field-programmable gate array chip to obtain the corresponding data result output by the multiplier, where 2 K It can also be obtained through phase shifting.
[0063] S203: The data results are processed using multiple segments and a limited phase shift accuracy to obtain the phase shift code of the receiving antenna.
[0064] Furthermore, the data results are normalized using multiple intervals to obtain the required phase shift angle of the receiving antenna. In this embodiment, to improve the processing speed of the algorithm, multiple intervals that the data may fall into are set, wherein each interval contains a range of not less than 360°.
[0065] Preferably, the multiple intervals set in the embodiments of this application may include different intervals such as (-720°, -360°), (-360°, 0), and (360°, 720°). Each interval ranges 360°. The range of the data result is determined to fall into the interval, and the interval value (a multiple of 360°) of the interval is added or subtracted based on the interval. For example, if it falls into (-360°, 0), the corresponding interval value of 360° is added until the data falls into (0, 360°), at which point the data is considered to be normalized.
[0066] Furthermore, the data results are processed using multiple planning intervals corresponding to the limited phase shift accuracy settings, so as to determine the phase shift code of the receiving antenna based on the planning interval to which the data results finally belong.
[0067] For example, see Figure 4 As shown, the calculated data result is divided by the phase shift accuracy, and the result is the phase shift code of the phase shifter. Taking a phase shifter with a phase shift accuracy of 5.625° as an example, the corresponding planning interval is set as: (0, 2.8125°), (2.8125°, 8.4375°)... Based on the final interval result, the phase shift code of the receiving antenna is obtained.
[0068] In one optional embodiment, the ultra-wideband positioning information input to the receiving antenna is obtained by trial and error adjustment based on the known transmitting antenna angle. Specifically, the transmitting antenna is made to scan near a specified transmitting angle, and the transmitting angle is adjusted according to the feedback power of the receiving antenna, thereby eliminating a certain degree of environmental error.
[0069] See Figure 5 The diagram shown is a flowchart of the phase-shift code calculation method based on a field-programmable gate array chip provided in this application embodiment. The phase-shift code calculation process is parallelized through trigonometric function calculation, multiplication IP processing, and normalization processing, which reduces data storage occupation, thereby reducing the power consumption of the algorithm and improving the overall calculation efficiency.
[0070] See Figure 6 As shown in the figure, this application embodiment also provides a field-programmable gate array (FPGA) chip, which includes a switching matrix module 601, an input channel 602, and an output port 603, wherein:
[0071] The switching matrix module 601 includes multiple switching units, each of which is connected to an input channel 602 and corresponds to an output port 603. Each input channel 602 is used to transmit ultra-wideband positioning information to the switching unit. The multiple switching units execute the steps of the following method in parallel. For one switching unit, the steps of the method include:
[0072] In response to the ultra-wideband positioning information input to the receiving antenna, trigonometric function data between the receiving antenna and the transmitting antenna is calculated, wherein the trigonometric function data is obtained based on a preset lookup table;
[0073] Multiple time-series operations are performed between the trigonometric function data and preset parameters to obtain intermediate variables. The intermediate variables and the power of the ordinate corresponding to the receiving antenna are then input into the multiplier of the field-programmable gate array chip to obtain the data result output by the multiplier.
[0074] The data results are processed using multiple segments and a limited phase shift precision to obtain the phase shift code of the receiving antenna.
[0075] In an optional embodiment, the calculation of trigonometric function data between the receiving antenna and the corresponding transmitting antenna, wherein the switching unit is specifically used for:
[0076] Using a preset lookup table, the beam phase angle θ and elevation angle Φ between the receiving antenna and the transmitting antenna in the ultra-wideband positioning information are processed to obtain multiple trigonometric function values sinθ, cosθ, and sinΦ corresponding to the beam phase angle θ and the elevation angle Φ. The beam phase angle θ and the elevation angle Φ are obtained based on the positioning position of the receiving antenna.
[0077] The trigonometric function values sinθ, cosθ, and sinΦ are processed according to the induction formula to obtain the trigonometric function data between the receiving antenna and the corresponding transmitting antenna.
[0078] In one optional embodiment, the step of performing multi-time-series operations between the trigonometric function data and preset parameters, wherein the switching unit is specifically used for:
[0079] Within the first time sequence, calculate the first sub-variable P1 = cosθsinΦ and the second sub-variable P2 = d1 / λsinθ, where d1 is the preset longitudinal antenna spacing and λ is the wavelength;
[0080] In the second time sequence, the third sub-variable P3 = d2 / λ*P2 is calculated, where d2 is the preset lateral antenna spacing;
[0081] In the third time sequence, the fourth sub-variable P4 = K * P3 and the fifth sub-variable P5 = i * P3 are calculated, and the intermediate values corresponding to the fourth sub-variable P4 and the fifth sub-variable P5 are calculated to obtain intermediate variables, where i and K are the horizontal and vertical coordinates of the position of the corresponding array element of the receiving antenna.
[0082] In one optional embodiment, the data result is processed using multiple segments and a limited phase shift precision to obtain the phase shift code of the receiving antenna. Specifically, one switching unit is used for:
[0083] The data results are normalized using multiple intervals, wherein each interval contains a range of not less than 360°.
[0084] The data results are processed using multiple planning intervals with corresponding limited phase shift accuracy settings, and the phase shift code of the receiving antenna is obtained based on the planning interval to which the data results finally belong.
[0085] In one alternative embodiment, the ultra-wideband positioning information for the receiving antenna input is obtained by trial and error adjustment based on the known transmitting antenna angle.
[0086] See Figure 7 As shown in the figure, this application embodiment also provides an electronic device, which includes any of the field programmable gate array chips described above.
[0087] The field-programmable gate array chip and electronic device provided in this application embodiment adopt the same inventive concept as the phase-shift code calculation method described above, and can achieve the same beneficial effects, so they will not be described again here.
[0088] In one embodiment, the electronic device may be a server, a terminal device, or other electronic device. In this embodiment, the structure of the electronic device may include a memory 701, a communication interface 703, and one or more processors 702.
[0089] The memory 701 is used to store computer programs executed by the processor 702. The memory 701 may mainly include a program storage area and a data storage area. The program storage area may store the operating system and programs required to run instant messaging functions, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0090] Memory 701 may be volatile memory, such as random-access memory (RAM); memory 701 may also be non-volatile memory, such as read-only memory, flash memory, hard disk drive (HDD), or solid-state drive (SSD); or memory 701 may be any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. Memory 701 may be a combination of the above-described memories.
[0091] The processor 702 may include one or more central processing units (CPUs) or digital processing units, etc. The processor 702 is used to implement the aforementioned phase shifter calculation method when it calls the computer program stored in the memory 701.
[0092] Communication interface 703 is used to communicate with terminal devices and other servers.
[0093] This application embodiment does not limit the specific connection medium between the memory 701, the communication interface 703, and the processor 702 described above. This application embodiment... Figure 7 The memory 701 and the processor 702 are connected via a bus 704, and the bus 704 is in Figure 7 The connections between other components are shown in bold lines only and are not intended to be limiting. The 704 bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0094] It should be noted that although several units or sub-units of the device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.
[0095] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0096] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0097] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a server, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the process. Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.
[0098] Program code for performing the operations of this application can be written using any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0099] In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0100] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0101] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0102] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for calculating phase-shifted codes based on a field-programmable gate array (FPGA) chip, characterized in that, A field-programmable gate array (FPGA) chip includes multiple switching units that perform the following methods in parallel, wherein, for one switching unit, the methods include: In response to the ultra-wideband positioning information input to the receiving antenna, a preset lookup table is used to process the beam phase angle θ and elevation angle Φ between the receiving antenna and the transmitting antenna in the ultra-wideband positioning information to obtain multiple trigonometric function values sinθ, cosθ, and sinΦ corresponding to the beam phase angle θ and the elevation angle Φ. The ultra-wideband positioning information is obtained through trial and error adjustment based on the known transmitting antenna angle, and the beam phase angle θ and the elevation angle Φ are obtained based on the positioning position of the receiving antenna. The multiple trigonometric function values sinθ, cosθ, and sinΦ are processed according to induced formulas to obtain trigonometric function data between the receiving antenna and the corresponding transmitting antenna. In the first time sequence, the first sub-variable P1 = cosθsinΦ and the second sub-variable P2 = d1 / λsinθ are calculated, where d1 is the preset longitudinal antenna spacing and λ is the wavelength. In the second time sequence, the third sub-variable P3 = d2 / λ*P2 is calculated, where d2 is the preset transverse antenna spacing. In the third time sequence, the fourth sub-variable P4 = K*P3 and the fifth sub-variable P5 = i*P3 are calculated, and the intermediate values corresponding to the fourth sub-variable P4 and the fifth sub-variable P5 are calculated to obtain intermediate variables, where i and K are the horizontal and vertical coordinates of the array element corresponding to the receiving antenna. The intermediate variables are then fed into the multiplier of the field-programmable gate array chip by exponentiation of the vertical coordinates corresponding to the receiving antenna to obtain the data result output by the multiplier. The data results are normalized using multiple segments, each segment having a range of at least 360°. The data results are processed using multiple planned segments corresponding to the limited phase shift accuracy, and the phase shift code of the receiving antenna is obtained based on the planned segment to which the data results ultimately belong.
2. A field-programmable gate array (FPGA) chip, characterized in that, The system includes a switching matrix module comprising multiple switching units, each connected to an input channel and corresponding to an output port. Each input channel transmits ultra-wideband positioning information to the switching unit. The multiple switching units execute the steps of the following method in parallel. For a single switching unit, the steps of the method include: In response to the ultra-wideband positioning information input to the receiving antenna, a preset lookup table is used to process the beam phase angle θ and elevation angle Φ between the receiving antenna and the transmitting antenna in the ultra-wideband positioning information to obtain multiple trigonometric function values sinθ, cosθ, and sinΦ corresponding to the beam phase angle θ and the elevation angle Φ. The ultra-wideband positioning information is obtained through trial and error adjustment based on the known transmitting antenna angle, and the beam phase angle θ and the elevation angle Φ are obtained based on the positioning position of the receiving antenna. The multiple trigonometric function values sinθ, cosθ, and sinΦ are processed according to induced formulas to obtain trigonometric function data between the receiving antenna and the corresponding transmitting antenna. In the first time sequence, the first sub-variable P1 = cosθsinΦ and the second sub-variable P2 = d1 / λsinθ are calculated, where d1 is the preset longitudinal antenna spacing and λ is the wavelength. In the second time sequence, the third sub-variable P3 = d2 / λ*P2 is calculated, where d2 is the preset transverse antenna spacing. In the third time sequence, the fourth sub-variable P4 = K*P3 and the fifth sub-variable P5 = i*P3 are calculated, and the intermediate values corresponding to the fourth sub-variable P4 and the fifth sub-variable P5 are calculated to obtain intermediate variables, where i and K are the horizontal and vertical coordinates of the array element corresponding to the receiving antenna. The intermediate variables are then fed into the multiplier of the field-programmable gate array chip by exponentiation of the vertical coordinates corresponding to the receiving antenna to obtain the data result output by the multiplier. The data results are normalized using multiple segments, each segment having a range of at least 360°. The data results are processed using multiple planned segments corresponding to the limited phase shift accuracy, and the phase shift code of the receiving antenna is obtained based on the planned segment to which the data results ultimately belong.
3. An electronic device, characterized in that, It includes a field-programmable gate array chip as described in any one of claims 1-2.
Citation Information
Patent Citations
Phase position detection method and circuit used in Terahertz solid circuit imaging
CN104614081A
Calculation method based on CORDIC core for beam-control code in sinusoidal space
CN106125050A