Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for implementing floating-point angle compression

A technology of realization method and angle, applied in the direction of instrument, calculation, electrical digital data processing, etc., can solve the problems of inconvenience of practical use, high cost, low cost of iterative structure, etc.

Active Publication Date: 2019-12-17
NAT UNIV OF DEFENSE TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] (1) Pure software implementation, such as multi-precision algorithm, can improve the compression angle accuracy, but the calculation speed is slow;
[0006] (2) Combining with the implementation of hardware pipeline structure, the accuracy of compression angle can be improved, and the compression speed is faster; but in this type of method, it needs to rely on the implementation of the specified hardware structure, such as the need to rely on the existing fma on the processor Fusion unit, not convenient for practical use; or improved hardware implementation based on DRMRR (Double-residue modular range reduction), such as CER (Constant Elementary Residues), ORC (On-the-fly Elementary Residues Computation), DTR (Drmrr with Table Replication) The equal angle compression method can make the overhead of the iterative structure very small, but usually uses a full multiplier. As mentioned above, when the input angle Z is closer to When the integer multiple of , the use of a complete multiplier requires a large number of use of the remaining angle lookup table, there is a problem of too much overhead

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for implementing floating-point angle compression
  • Method and device for implementing floating-point angle compression
  • Method and device for implementing floating-point angle compression

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The present invention will be further described below in conjunction with the accompanying drawings and specific preferred embodiments, but the protection scope of the present invention is not limited thereby.

[0048] Such as figure 1 As shown, the implementation method of floating-point angle compression in this embodiment, the steps include:

[0049] 1) Preprocessing: input the angle Z to be compressed, according to the index E of the angle Z to be compressed Z Obtain the interval C that needs to participate in the 2 / π multiplication operation;

[0050] 2) 2 / π truncated multiplication operation: the mantissa M of the angle Z to be compressed Z Use the truncated multiplier to perform 2 / π multiplication with the obtained interval C, and output the multiplication result M 0 ;

[0051] 3) Leading zero and shift: get the multiplication result M 0 The integer part Q and the decimal place R, according to the integer part to determine the compressed angle Z R Quadrant ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a floating point angular compression implementation method and device. The method includes the steps that firstly, an interval needing to participate in 2 / pi multiplication is obtained according to indexes of a to-be-compressed angle; secondly, the mantissa of the to-be-compressed angle and the obtained interval execute 2 / pi multiplication by means of a truncated multiplier, and a multiplication result is output; thirdly, an integer part and a decimal place in the multiplication result are obtained, the quadrant of the compressed angle is determined according to the integer part, and the indexes and a first mantissa are obtained by the decimal place through leading zero and shifting; fourthly, the first mantissa and the multiplier execute pi / 2 multiplication by means of the truncated multiplier, and a second mantissa is obtained and output; fifthly, the compressed angle is determined according to the indexes and the second mantissa. The device comprises a preprocessing module, a 2 / pi truncated multiplication module, a leading zero and shifting module, a pi / 2 truncated multiplication module and a post-processing module. By means of the method and the device, angle compression of any floating point can be achieved, and the advantages that the implementation method is simple, the compression efficiency and precision are high and the cost is low are achieved.

Description

technical field [0001] The invention relates to the technical field of function calculation, in particular to a method and device for realizing floating-point angle compression. Background technique [0002] Basic function calculation is an important part of scientific calculation and engineering applications. The first step in function calculation usually needs to perform angle compression. In basic function calculation processing such as trigonometric functions, the input angle is required to be within a certain range. For Any input angle needs to compress the input angle to the specified range while ensuring the accuracy of the compressed angle. [0003] When the angle compression is defined by the mod function, the input angle Z is where Z and is a real number, and K is an integer, When the input angle Z is closer to Integer multiples of , limited number of digits The less effective digits will become, that is, the more leading zero digits will become, the le...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F7/575G06F7/544G06F7/548
CPCG06F7/544G06F7/548G06F7/575
Inventor 彭元喜朱保周雷元武郭阳李勇孙永节吴虎成陈小文孙书为田甜彭浩徐恩王建之张榜
Owner NAT UNIV OF DEFENSE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products