High-precision two-step branch hybrid CORDIC computing system, method and device

Through the high-precision two-step branch hybrid CORDIC computing system, the two-step branch CORDIC algorithm and the new hybrid radix set division formula are used to solve the limitations of the traditional CORDIC algorithm in terms of the number of iterations and hardware overhead, and improve the calculation processing efficiency and accuracy.

CN118502713BActive Publication Date: 2024-10-01NAT UNIV OF DEFENSE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410909493.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-01
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The traditional CORDIC algorithm has limitations in the number of iterations and hardware overhead, resulting in insufficient computational processing efficiency, especially in terms of accuracy loss and hardware implementation complexity.

Method used

A high-precision two-step branch hybrid CORDIC computing system is adopted, including an input angle compression recovery module, a CORDIC iteration module and an scalable floating fixed point conversion module. Through the two-step branch CORDIC algorithm and the new hybrid radix set division formula, the number of iterations is reduced and Reduce the latency of the pipeline segment.

Benefits of technology

It effectively improves the calculation processing efficiency of the CORDIC algorithm within the computer, reduces the number of iterations and hardware overhead, improves the calculation accuracy, and reduces the pipeline delay.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118502713B_ABST
    Figure CN118502713B_ABST
Patent Text Reader

Abstract

The present invention relates to a high-precision two-step branch hybrid CORDIC computing system, method and device. The method provides a high-precision two-step branch hybrid CORDIC scheme, which reduces the number of iterations to N / 4+1, and a new partitioning formula for mixed cardinality sets is given, which also achieves the high precision required in practice and does not need to calculate the scaling factor. The scheme adopts an input angle compression recovery module, which complements the new partitioning formula, and also configures a floating point conversion module, which increases the scalability of the scheme and makes the input angle format not limited to fixed point numbers. The pipeline architecture adopted has only 1 pipeline stage level. N / 4+3, the iterative adjustment of the two processor sub-modules significantly reduces the pipeline delay, and ultimately effectively improves the computational processing efficiency of the CORDIC algorithm when it is actually running inside the computer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of coordinate rotation digital computers and relates to a high-precision two-step branch hybrid CORDIC calculation system, method and equipment. Background Art

[0002] The CORDIC (Coordinate Rotation Digital Computer) algorithm is an algorithm used to calculate trigonometric functions, logarithms, exponentials, and other mathematical operations. The main advantage of the CORDIC algorithm is that it only relies on addition, subtraction, and shift operations, which makes it very suitable for hardware implementation, especially in embedded systems with limited resources. With the development of digital signal processing and computer graphics, the CORDIC algorithm has become increasingly important in various applications. For example, it has been widely used in FFT (Fast Fourier Transform), DCT (Discrete Cosine Transform) and various rotation transforms.

[0003] Although the traditional CORDIC algorithm has significant advantages in hardware implementation, it has certain limitations in terms of the number of iterations and hardware overhead. In order to improve the calculation accuracy and reduce the number of iterations, researchers have proposed a variety of improvement schemes, such as the Hybrid CORDIC algorithm and the two-step branch CORDIC algorithm. These improvement schemes improve the performance of the CORDIC algorithm by optimizing the algorithm's infrastructure and iterative process. However, these improvement schemes still have some shortcomings in practical applications, such as serious precision loss, complexity of hardware implementation, and long critical path delay, which leads to insufficient calculation and processing efficiency when the algorithm is actually running inside the computer. Summary of the invention

[0004] In response to the problems existing in the above-mentioned traditional methods, the present invention proposes a high-precision two-step branch hybrid CORDIC calculation system, a high-precision two-step branch hybrid CORDIC calculation method and a computer device, which can effectively improve the computing and processing efficiency of the CORDIC algorithm when it is actually running inside a computer.

[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0006] On the one hand, a high-precision two-step branch hybrid CORDIC calculation system is provided, comprising an input angle compression recovery module, a CORDIC iteration module, and an expandable floating point number conversion module;

[0007] The input angle compression recovery module includes an input angle compression submodule and a recovery submodule. The input angle compression submodule is used to The input angle of the interval is compressed to The recovery submodule is used to restore the calculated sine function value and cosine function value to the interval code of the input angle. Sine and cosine function values ​​of an interval;

[0008] The CORDIC iteration module includes a first processor submodule and a second processor submodule. The first processor submodule is used to process a total of Before the iteration The rotation iteration under the subcircular system uses a two-step branch CORDIC algorithm and compresses the input angle to The interval reduces the number of iterations to The second processor submodule is used to process the Rotation iteration under sublinear system;

[0009] The floating-point conversion module includes a floating-point to fixed-point submodule and a fixed-point to floating-point submodule. The floating-point to fixed-point submodule is used to convert the input angle in the IEEE754 floating-point format into a fixed-point number, and the fixed-point to floating-point submodule is used to convert the trigonometric function results in the fixed-point format into the IEEE754 floating-point format output.

[0010] On the other hand, a high-precision two-step branch hybrid CORDIC calculation method is also provided, which is applied to the above-mentioned high-precision two-step branch hybrid CORDIC calculation system. The high-precision two-step branch hybrid CORDIC calculation method comprises the steps of:

[0011] The input angle in IEEE754 floating point format is converted into fixed point number through the floating point to fixed point submodule;

[0012] By inputting the angle compression submodule The input angle of the interval is compressed to Interval, and get the interval code where the input angle is located;

[0013] The first processor submodule processes a total of Before the iteration The rotation iteration under the subcircular system uses a two-step branch CORDIC algorithm and compresses the input angle to The interval reduces the number of iterations to ;

[0014] After being processed by the second processor submodule Rotation iteration under sublinear system;

[0015] By inputting the interval code of the angle, the calculated sine function value and cosine function value are restored to Sine and cosine function values ​​of an interval;

[0016] The fixed-point to floating-point submodule is used to convert trigonometric function results in fixed-point format into IEEE754 floating-point format for output.

[0017] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the above-mentioned high-precision two-step branch hybrid CORDIC calculation methods are implemented.

[0018] One of the above technical solutions has the following advantages and beneficial effects:

[0019] The high-precision two-step branch hybrid CORDIC computing system, method and device provide a CORDIC optimization scheme, namely a high-precision two-step branch hybrid CORDIC (HD CORDIC) scheme, which reduces the number of iterations to N / 4+1, and a new partitioning formula for mixed cardinality sets is given to achieve High precision, compared with the basic CORDIC algorithm Similar, and no scaling factor needs to be calculated The scheme adopts the input angle compression recovery module, which complements the new partitioning formula, and also configures the floating point conversion module, which increases the scalability of the scheme and makes the input angle format not limited to fixed point numbers. In addition, the scheme adopts a pipeline architecture with only (The basic CORDIC algorithm is ), the iterative adjustment of the first processor submodule and the second processor submodule significantly reduced the pipeline delay, and ultimately effectively improved the computational processing efficiency of the CORDIC algorithm when it is actually running inside the computer. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0021] Figure 1 A schematic diagram of the module structure of a high-precision two-step branch hybrid CORDIC computing system in one embodiment;

[0022] Figure 2A schematic diagram of a high-precision two-step branch hybrid CORDIC solution framework in one embodiment;

[0023] Figure 3 1 is a hardware schematic diagram of a single iteration unit of a first processor submodule in one embodiment, wherein (a) is an X and Y iteration module portion, and (b) is a Z iteration module portion;

[0024] Figure 4 A high-precision two-step branched hybrid CORDIC scheme is shown in one embodiment ( N =16) Schematic diagram of flow section structure;

[0025] Figure 5 Schematic diagram of a flow chart of a high-precision two-step branched hybrid CORDIC calculation method in one embodiment. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0027] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0028] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0029] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0030] In one embodiment, Figure 1 As shown, a high-precision two-step branch hybrid CORDIC computing system 100 is provided, including an input angle compression recovery module 11, a CORDIC iteration module 13, and an expandable floating point conversion module 15. The input angle compression recovery module 11 includes an input angle compression submodule and a recovery submodule. The input angle compression submodule is used to convert The input angle of the interval is compressed to The recovery submodule is used to restore the calculated sine function value and cosine function value to the interval code of the input angle. The CORDIC iteration module 13 includes a first processor submodule and a second processor submodule. The first processor submodule is used to process a total of Before the iteration The rotation iteration under the subcircular system uses a two-step branch CORDIC algorithm and compresses the input angle to The interval reduces the number of iterations to The second processor submodule is used to process the Rotation iteration under sublinear system. The floating-fixed-point conversion module 15 includes a floating-point to fixed-point submodule and a fixed-point to floating-point submodule. The floating-point to fixed-point submodule is used to convert the input angle in IEEE754 floating-point format into a fixed-point number. The fixed-point to floating-point submodule is used to convert the trigonometric function result in fixed-point format into IEEE754 floating-point format output. is a positive integer not less than 2.

[0031] The high-precision two-step branch hybrid CORDIC computing system 100 provides a CORDIC optimization scheme, namely a high-precision two-step branch hybrid CORDIC (HD CORDIC) scheme, which reduces the number of iterations to , and a new partitioning formula for mixed cardinality sets is given to achieve High precision, compared with the basic CORDIC algorithm Similar, and no scaling factor needs to be calculated The scheme adopts an input angle compression recovery module 11, which complements the new partitioning formula, and is also equipped with a floating point conversion module 15, which increases the scalability of the scheme and makes the input angle format not limited to fixed point numbers. In addition, the scheme adopts a pipeline architecture with only (The basic CORDIC algorithm is ), the iterative adjustment of the first processor submodule and the second processor submodule significantly reduced the pipeline delay, and ultimately effectively improved the computational processing efficiency of the CORDIC algorithm when it is actually running inside the computer.

[0032] It should be noted that, first of all, Figure 2As shown, the innovations of the high-precision two-step branch hybrid CORDIC computing system 100 include: applying the two-step branch CORDIC algorithm to the first processor submodule of the Hybrid CORDIC algorithm, which greatly reduces the number of iterations and avoids introducing a scaling factor. Perform multiplication.

[0033] The Hybrid CORDIC algorithm used in this embodiment has two sub-processors, a first processor sub-module and a second processor sub-module. The first processor sub-module has pipeline stages, each of which is a single iteration unit of the first processor submodule (e.g. Figure 3 As shown in (a), its critical path is 2 shift plus 2 selection addition, which is the X and Y iteration module part, and (b) is the Z iteration module part. If the second processor submodule is placed in a pipeline segment, its critical path is the largest, and the largest path of the entire pipeline segment is the pipeline segment where the second processor submodule is located, so some operations of the second processor submodule (such as the last selection adder) are placed in the next pipeline segment (such as the recovery submodule). This can be referred to in the following Figure 4 To understand, the maximum path of the entire pipeline stage is the single iteration unit of the first processor submodule.

[0034] Will The input angle of the interval is calculated by the sine function With the cosine function The corresponding relationship between them is compressed to interval, rather than the original interval, which not only makes the iteration of the CORDIC algorithm more stable and the error accumulation smaller, but more importantly, it is equivalent to the first time (i.e. ) Rotation iteration under the circular system, that is For this angle, the two-step branch CORDIC algorithm performs two micro-rotations in one iteration. When the number of rotation iterations under the circular system required by the first processor submodule is 16, 24 and 32 respectively, They are 8, 12 and 16 respectively, which are all even numbers and fit the double-step branch CORDIC algorithm very well. For the interval judgment of the input angle, the upper 3 or 4 bits of the interval endpoints can be used to quickly judge the two adjacent intervals where the input angle is located, and then compare them with the endpoint angles of the corresponding interval to get the interval where the input angle is located.

[0035] The first processor submodule reduces latency in hardware structure, and the critical path of the pipeline section of its single iteration unit is only 2 shifts (such as Figure 3 >>>i in the above example) plus 2 select adders (such as Figure 3In the embodiment, the second rotation direction is required in the X and Y iteration modules in the first processor submodule and the second processor submodule. The calculation is post-placed, and the Z iteration module inside the first processor submodule and the second processor submodule calculates the second rotation direction The critical path is reduced, so the total critical path is reduced.

[0036] A part of the second processor submodule is merged with the recovery submodule so that the maximum path of the pipeline section is in the first processor submodule, thereby reducing latency. A floating point conversion module is configured so that the input and output are not limited to fixed point numbers, but can also be floating point numbers (IEEE754 floating point format) to meet general and scalable application requirements.

[0037] Specifically, when the high-precision two-step branch hybrid CORDIC computing system 100 is actually applied, the overall framework diagram of its operation can be specifically as follows: Figure 2 As shown:

[0038] (1) The high-precision two-step branch hybrid CORDIC solution adopts a pipeline architecture. The input angle compression submodule and the recovery submodule each occupy a pipeline stage. The first processor submodule uses a two-step branch CORDIC algorithm to process the previous The rotation iteration under the subcircular system requires The second processor submodule processes in parallel The rotation iteration under the sublinear system requires a pipeline stage. Therefore, the number of pipeline stages in the high-precision two-step branch hybrid CORDIC computing system 100 is .

[0039] Compress the input angle in fixed-point format (if the input angle is in floating-point format, it is converted to fixed-point format through the floating-point to fixed-point submodule). The input angle (in radians) of the interval is calculated by the sine function With the cosine function The corresponding relationship between them is compressed to The interval, input angle compression and interval folding are shown in Table 1:

[0040] Table 1

[0041]

[0042] The coding of the interval endpoint angle and the interval where the angle is located is shown in Table 2 below:

[0043] Table 2

[0044]

[0045] It can be seen from Table 2 that the upper 3 or 4 bits of the endpoints of these intervals can be used to quickly determine the two adjacent intervals where the input angle is located. By comparing them with the endpoint angles of the corresponding intervals again, the interval where the input angle is located can be obtained, thereby obtaining the interval code where the input angle is located.

[0046] (2) The input angle of the interval is used as the rotation angle The result is input to the CORDIC iteration module 13. The CORDIC iteration module 13 adopts the Hybrid CORDIC algorithm, and its hybrid base set is as follows:

[0047] ;

[0048] The new mixed cardinality set partitioning formula is as follows:

[0049] ;

[0050] in, is the number of cardinality sets, is the number of angles that the first processor submodule needs to process, and the remaining is the number of angles that the second processor submodule needs to process. The new formula can ensure that the high-precision two-step branch hybrid CORDIC computing system 100 has the same computing accuracy as the basic CORDIC algorithm. Similar high precision: .

[0051] (3) Before the first processor submodule processes The rotation iterations for the subcircular system (the first iteration is performed by compressing the input angle to interval solution), and a two-step branch CORDIC algorithm is used to further reduce the number of iterations to .for When 1 is 16, 24, and 32, the number of iterations required by the first processor submodule of the high-precision two-step branch hybrid CORDIC computing system 100 is 4, 6, and 8, respectively. In the high-precision two-step branch hybrid CORDIC computing system 100, the iteration formula of the first processor submodule is as follows:

[0052] ;

[0053] in, and Indicates The iterative data obtained by the iteration, if expressed in the coordinate axis, is The vector coordinates after micro-rotation are: Indicates that the first processor submodule The rotation direction of the iteration, its value is +1 or -1, depending on the current rotation direction. If the current rotation angle is greater than 0, then it can take the value +1, otherwise it takes the value -1.

[0054] The remaining angle is calculated using two different module descriptions:

[0055] Modules : ;

[0056] Modules : ;

[0057] The first rotation direction Depend on The positive or negative value determines the second rotation direction Depend on and Determined by comparison of absolute values. Modules and The modules will perform calculations in parallel to obtain the remaining angles. and , and then compare, if If the distance is closer to 0, the module is used Otherwise, use module .

[0058] In one embodiment, the critical path of the pipeline section of the first processor submodule includes two parallel computing branches, each computing branch is composed of a shifter, an adder, a shifter and an adder connected in series in sequence, and the output of each level of the shifter of the two computing branches is cross-output to the lower level adder of the other computing branch.

[0059] It can be understood that the single iteration hardware unit of the first processor submodule is as follows Figure 3 As shown, the critical path of this module or pipeline section is 2 shifts plus 2 selection adders (addition and subtraction operations are performed on two input data in parallel, and then the output addition or subtraction result is determined based on the input signal). In the Z iteration module of the remaining angle, there are two memories ROM1 and ROM2. The first one stores The bit width is Quantitative perspective ;

[0060] The second storage and

[0061] ;

[0062] common The bit width is of data, among which, and They respectively represent the remaining angle data from the second ROM2.

[0063] For the X and Y iteration modules, the critical path of the hardware module designed by the double-step branch CORDIC algorithm to transform the formula is 2 shifts, 1 select adder and 2 additions. However, this is ignoring the Z iteration module to calculate the second rotation direction. The Z iteration module given by the two-step branch CORDIC algorithm needs to go through one addition and one absolute value comparison module to obtain , and the first thing that the X module in the X and Y iteration modules of the two-step branch CORDIC algorithm needs to do is The selection of adders greatly affects the overall delay and increases the overall critical path.

[0064] The high-precision two-step branch hybrid CORDIC solution uses two single micro-rotation nesting methods for the X and Y iteration modules, and the rotation direction required by the Z iteration module and , especially , appears at the end of the critical path, so the critical path is not affected. For the Z iteration module, calculate the second rotation direction Only one absolute value (abs) comparison module is needed to obtain the result, which helps to provide the required signal to the X and Y iteration modules earlier. This does not affect its critical path and also reduces the critical path of the Z iteration module.

[0065] like Figure 2 The structure shown in the figure, the first processor submodule receives the input angle as the initial residual angle , and the initial value , the output is Rotation angle And the remaining angle to the second processor submodule.

[0066] (4) After processing by the second processor submodule of the high-precision two-step branch hybrid CORDIC solution The rotation iteration under the sublinear system can use a series of parallel addition and shift calculations. The second processor submodule calculates and The iterative formulas are shown in the following two equations:

[0067] in .

[0068] ;

[0069] ;

[0070] in, and Indicates The iteration data (or vector coordinates) obtained by the iteration, and Indicates The iterative data obtained by the iteration is Indicates that the second processor submodule k The rotation direction of the iteration, k from arrive .

[0071] Since the pipeline segment critical path of the second processor submodule is the longest, a part of it is merged with the subsequent pipeline segment (recovery submodule) so that the maximum path of the pipeline segment is in the iteration unit of the first processor submodule, thereby reducing the delay.

[0072] like Figure 2 The structure shown in the figure, the second processor submodule receives the first processor submodule calculated , And the remaining angle , the output passes through the remaining Rotation angle , As calculated and .

[0073] (5) If Figure 1 The structure shown in the figure, the recovery submodule receives the second processor submodule , As calculated and , restore it to The trigonometric function value of the interval is output. If the output is required to be a floating point number, it is converted to IEEE754 floating point format through the fixed point to floating point module.

[0074] The high-precision two-step branch hybrid CORDIC computing system 100 does not require scaling factors K The multiplication operation is performed, and the initial value is . With the basic CORDIC algorithm Similar high precision: The hardware overhead also performs well. Compared with the basic CORDIC algorithm, the high-precision two-step branch hybrid CORDIC solution has a reduced number of LUTs (Look-Up-Tables), a greatly reduced number of registers, and a greatly reduced power consumption.

[0075] In some embodiments, for example, in a high-precision two-step branch hybrid CORDIC solution using a pipeline architecture, the first processor submodule uses a two-step branch CORDIC algorithm to process the previous The rotation iteration under the subcircular system requires pipeline stages, the second processor submodule processes in parallel The rotation iteration under the sublinear system requires a pipeline stage. Therefore, the number of pipeline stages of the high-precision two-step branch hybrid CORDIC solution is (The basic CORDIC algorithm is ).

[0076] The first processor submodule processes the The rotation iterations for the subcircular system (the first iteration is performed by compressing the input angle to interval method),

[0077] The double-step branch CORDIC algorithm is used to further reduce the number of iterations to .

[0078] The remaining angle In the iteration module, there are two memories ROM1 and ROM2. The first one stores The bit width is Quantitative perspective

[0079] ;

[0080] The second storage and

[0081] ;

[0082] common The bit width is data.

[0083] High-precision two-step branch hybrid CORDIC solution after the second processor submodule processing The rotation iteration under the sublinear system can use a series of parallel addition and shift calculations. In this implementation example, , so the flow section structure is as follows Figure 4As shown in the figure, the pipeline stage number of the high-precision two-step branch hybrid CORDIC solution is 7, the input angle compression submodule (AN) and the recovery submodule (R) each occupy 1 pipeline stage, the first processor submodule (P1) occupies 4 pipeline stages, and the second processor submodule (P2) occupies 1 pipeline stage. Among them, the second processor submodule requires the longest delay, and the processing of the last selection adder of the second processor submodule is placed on the next pipeline stage (on the recovery submodule), so that the pipeline stage delay is determined by the single iteration unit of the first processor submodule, thereby reducing the delay. Figure 4 D in the figure represents the output data of the current first-level pipeline stage.

[0084] like Figure 2 The structure shown in the figure, the second processor submodule receives the first processor submodule calculated And the remaining angle , the output passes through the remaining Rotation angle , As calculated and .

[0085] The recovery submodule receives the second processor submodule's , As calculated and , restore it to The trigonometric function value of the interval is output. If the output is required to be a floating point number, it is converted to IEEE754 floating point format through the fixed point to floating point submodule.

[0086] Each module in the high-precision two-step branch hybrid CORDIC computing system 100 can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a device with data processing functions in the form of hardware, or can be stored in the memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to each module. The aforementioned device can be, but is not limited to, various types of computer devices available in the art.

[0087] In one embodiment, Figure 5 As shown, a high-precision two-step branch hybrid CORDIC calculation method is also provided, which is applied to the above-mentioned high-precision two-step branch hybrid CORDIC calculation system 100. The high-precision two-step branch hybrid CORDIC calculation method includes steps S10 to S20:

[0088] S10, converting the input angle in IEEE754 floating point format into a fixed point number through a floating point number to fixed point number submodule;

[0089] S12, through the input angle compression submodule The input angle of the interval is compressed to Interval, and get the interval code where the input angle is located;

[0090] S14, the first processor submodule processes the total Before the iteration The rotation iteration under the subcircular system uses a two-step branch CORDIC algorithm and compresses the input angle to The interval reduces the number of iterations to ;

[0091] S16, after being processed by the second processor submodule Rotation iteration under sublinear system;

[0092] S18, restore the calculated sine function value and cosine function value to Sine and cosine function values ​​of an interval;

[0093] S20, converting the trigonometric function result in the fixed-point format into the IEEE754 floating-point format for output through the fixed-point to floating-point submodule.

[0094] It can be understood that in some implementations, steps S10 and S20 may also be optional steps, which may be added or deleted according to the needs of the actual application scenario.

[0095] The above high-precision two-step branch hybrid CORDIC calculation method provides a CORDIC optimization scheme, namely the high-precision two-step branch hybrid CORDIC (HD CORDIC) scheme, which reduces the number of iterations to , and a new partitioning formula for mixed cardinality sets is given to achieve High precision, compared with the basic CORDIC algorithm Similar, and no scaling factor needs to be calculated The scheme adopts the input angle compression recovery module, which complements the new partitioning formula, and also configures the floating point conversion module, which increases the scalability of the scheme and makes the input angle format not limited to fixed point numbers. In addition, the scheme adopts a pipeline architecture with only (The basic CORDIC algorithm is ), the iterative adjustment of the first processor submodule and the second processor submodule significantly reduced the pipeline delay, and ultimately effectively improved the computational processing efficiency of the CORDIC algorithm when it is actually running inside the computer.

[0096] It should be understood that although the above process Figure 5The steps in the flowchart are shown in the order indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 5 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0097] It can be understood that for the specific explanation of the high-precision two-step branch hybrid CORDIC calculation method, please refer to the corresponding explanation of each embodiment of the high-precision two-step branch hybrid CORDIC calculation system 100 in the above text, which will not be repeated here.

[0098] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following processing steps are implemented: The input angle of the interval is compressed to interval, and obtain the interval code where the input angle is located; the first processor submodule processes the total Before the iteration The rotation iteration under the subcircular system uses a two-step branch CORDIC algorithm and compresses the input angle to The interval reduces the number of iterations to ; After being processed by the second processor submodule Rotation iteration under sublinear system; restore the calculated sine function value and cosine function value to The sine function value and cosine function value of the interval; the input angle in IEEE754 floating-point format is converted into a fixed-point number through the floating-point to fixed-point submodule; the trigonometric function results in fixed-point format are converted into IEEE754 floating-point format output through the fixed-point to floating-point submodule.

[0099] It can be understood that in addition to the memory and processor mentioned above, the above-mentioned computer device also includes other software and hardware components not listed in this specification, which can be determined according to the specific computer model in different application scenarios, and this specification will not list them one by one in detail.

[0100] In one embodiment, when the processor executes the computer program, the added steps or sub-steps in each embodiment of the above-mentioned high-precision two-step branch hybrid CORDIC calculation method can also be implemented.

[0101] In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored. When the computer program is executed by a processor, the following processing steps are implemented: The input angle of the interval is compressed to interval, and obtain the interval code where the input angle is located; the first processor submodule processes the total Before the iteration The rotation iteration under the subcircular system uses a two-step branch CORDIC algorithm and compresses the input angle to The interval reduces the number of iterations to ; After being processed by the second processor submodule Rotation iteration under sublinear system; restore the calculated sine function value and cosine function value to The sine function value and cosine function value of the interval; the input angle in IEEE754 floating-point format is converted into a fixed-point number through the floating-point to fixed-point submodule; the trigonometric function results in fixed-point format are converted into IEEE754 floating-point format output through the fixed-point to floating-point submodule.

[0102] In one embodiment, when the computer program is executed by a processor, it can also implement the steps or sub-steps added in each embodiment of the above-mentioned high-precision two-step branch hybrid CORDIC calculation method.

[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer 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 by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can 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 dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0104] 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.

[0105] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A high-precision two-step branch hybrid CORDIC computing system, characterized in that: Includes input angle compression recovery module, CORDIC iteration module and scalable floating point conversion module; The input angle compression and recovery module includes an input angle compression submodule and a recovery submodule. The input angle compression submodule is used to convert [0, 2 ) The input angle of the interval is compressed to [0, / 4) interval, and obtain the interval code of the input angle, and the recovery submodule is used to restore the calculated sine function value and cosine function value to [0, 2 ) Sine and cosine function values ​​of the interval; The CORDIC iteration module includes a first processor submodule and a second processor submodule. The first processor submodule is used to process a total of N Before the iteration n The rotation iteration under the subcircular system is performed by the two-step branch CORDIC algorithm and the input angle is compressed to [0, / 4) interval reduces the number of iterations to ( n -1) / 2, the second processor submodule is used to process the N - n Rotation iteration under sublinear system; ( n -1) / 2 is an integer rounded up; The floating-fixed point conversion module includes a floating-point to fixed-point submodule and a fixed-point to floating-point submodule. The floating-point to fixed-point submodule is used to convert the input angle in the IEEE754 floating-point format into a fixed-point number, and the fixed-point to floating-point submodule is used to convert the trigonometric function result in the fixed-point format into the IEEE754 floating-point format output.

2. The high-precision two-step branch hybrid CORDIC computing system according to claim 1, characterized in that: The iteration formula of the first processor submodule is: in, x i and y i Indicates i The iterative data obtained by the iteration is Indicates that the first processor submodule i The rotation direction for this iteration.

3. The high-precision two-step branch hybrid CORDIC computing system according to claim 2, characterized in that: The critical path of the pipeline section of the first processor submodule includes two parallel computing branches, each of which is composed of a shifter, an adder, a shifter and an adder connected in series in sequence, and the output of each level of the shifter of the two computing branches is cross-output to the lower level adder of the other computing branch.

4. The high-precision two-step branch hybrid CORDIC computing system according to claim 1, characterized in that: The iteration formula of the second processor submodule is: in, x N and y N Indicates N The iterative data obtained by the iteration is x n and y n Indicates n The iterative data obtained by the iteration is Indicates that the second processor submodule k The rotation direction of the iteration, k from n arrive N - n .

5. A high-precision two-step branch hybrid CORDIC calculation method, characterized in that: Applied to the high-precision two-step branch hybrid CORDIC computing system according to any one of claims 1 to 4, the high-precision two-step branch hybrid CORDIC computing method comprises the steps of: The input angle in IEEE754 floating point format is converted into fixed point number through the floating point to fixed point submodule; The input angle compression submodule converts [0, 2 π ) The input angle of the interval is compressed to [0, π / 4) interval, and obtain the interval code of the input angle; The first processor submodule processes a total of N Before the iteration n The rotation iteration under the subcircular system is performed by the two-step branch CORDIC algorithm and the input angle is compressed to [0, π / 4) interval reduces the number of iterations to ( n -1) / 2; ( n -1) / 2 is an integer rounded up; After being processed by the second processor submodule N - n Rotation iteration under sublinear system; By encoding the interval where the input angle is located, the calculated sine function value and cosine function value are restored to [0, 2 π ) Sine and cosine function values ​​of the interval; The fixed-point to floating-point submodule is used to convert trigonometric function results in fixed-point format into IEEE754 floating-point format for output.

6. A computer device comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the processor executes the computer program, the steps of the high-precision two-step branch hybrid CORDIC calculation method according to claim 5 are implemented.