Unlock instant, AI-driven research and patent intelligence for your innovation.

Square root function implementation method

An implementation method, square root technology, applied in multiplication/division calculation operations, analog computers, simulation and hybrid calculations, etc., can solve problems affecting processing efficiency and other issues

Inactive Publication Date: 2018-05-01
CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When using programmable devices for complex information processing, because the square root calculator is difficult to implement on programmable devices, it is often necessary to interrupt the parallel processing link and send the data back to the CPU for processing before subsequent processing, which seriously affects the processing efficiency.

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
  • Square root function implementation method
  • Square root function implementation method
  • Square root function implementation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] refer to figure 1 , a kind of square root function realization method of the present invention, comprises the following steps:

[0017] 1) After receiving data X, judge X, and return an error code when X is a negative number;

[0018] 2) Normalize the parameter X, calculate the significant figure and exponent, and obtain the significant figure X1 and exponent a of X, X=X1*2 a , where the range of X1 is required to be in the [1 / 4,1) interval, and a is required to be an even number;

[0019] 3) The square root calculation of X1 uses the method of combining table lookup and interpolation, by looking up the square root lookup table pre-stored in the memory module, and the high N bits of X1 are used to calculate the square root lookup table index lookup table entry and Adjacent values ​​are used as interpolation coefficients, and the lower M bits are used as mantissas, which are shifted to the [0,1) interval as interpolation variables for interpolation calculation, where ...

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 provides a square root function implementation method, which comprises the steps of 1) receiving data X, performing judgment on the data X, and returning an error code if the data X is anegative number; 2) performing normalization processing on the parameter X, calculating an effective number and an exponent, obtaining an effective number X1 and an exponent a of the parameter X, wherein X=X1*2, the effective number X1 is required to be within an interval of [1 / 4, 1), and the exponent a is required to be an even number; 3) calculating the square root of the effective number X1by using a method of combining table look-up and interpolation, and looking up a square root look-up table prestored in a memory module, wherein high N bits of the effective number X1 are used for calculating a square root look-up table index to look up a value adjacent to sqr(X1) in table items to serve as an interpolation coefficient, low M bits serve as mantissa and move to an interval of [0,1) to serve as interpolation variables for interpolation calculation, and (M+N) is the total bit width of the effective number X1.

Description

technical field [0001] The invention relates to a processing circuit in the field of information processing and microelectronics, in particular to a design and implementation method of a square root calculator. Background technique [0002] In information processing, square root or square root reciprocal operations are often involved, such as the calculation of parameters corresponding to circular areas in graphics processing. When using programmable devices for complex information processing, because the square root calculator is difficult to implement on programmable devices, it is often necessary to interrupt the parallel processing link and send the data back to the CPU for processing before subsequent processing, which seriously affects the processing efficiency. . If a square root calculator that consumes less logic resources and is suitable for the implementation of today's mainstream programmable devices is invented, the efficiency of related processing can be signi...

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): G06G7/16G06G7/20
CPCG06G7/16G06G7/20
Inventor 郭凡崔亮李少光周坚锋廖科胡尧
Owner CHINESE AERONAUTICAL RADIO ELECTRONICS RES INST