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

Logarithm calculation method and logarithm calculation circuit

A calculation method and technology for calculating circuits, which can be applied in the fields of logarithmic/exponential functions, calculations, and electrical digital data processing, and can solve problems such as increasing the complexity and cost of circuit design.

Pending Publication Date: 2021-11-30
REALTEK SEMICON CORP
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In a general logarithmic calculation circuit, the logarithmic calculation is usually realized by means of Coordinate Rotation Digital Computer (CORDIC). However, the above method needs to store a large parameter table, and also needs to use multiple A multiplier with a more complex circuit design, therefore, will increase the complexity and cost of the circuit design

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
  • Logarithm calculation method and logarithm calculation circuit
  • Logarithm calculation method and logarithm calculation circuit

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0008] figure 1 It is a flowchart of a logarithm calculation method according to an embodiment of the present invention. Such as figure 1 As shown, in step 100, the process starts and prepares to perform logarithmic operation on the initial input value x to obtain the output value y, that is, y=ln(x). In step 102, the output value y is first set to 0, and the parameter i is set to 1 (that is, the first iterative operation is performed, and the initial input value x is converted into a floating-point number representation, that is, the initial input value x is converted to It is x=m*2^n, wherein n is a positive integer, and m is a value between 0.5 and 1. In one embodiment, m can be a 16-bit digital value, and n can be a 6-bit Numerical value.In step 104, select the i-th group of parameters, wherein the i-th group of parameters has included xa(i), xb(i), limit_up(i), limit_low(i), at this time, because i Equal to 1, xa(1), xb(1), limit_up(1), limit_low(1) included in the fir...

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 relates to a logarithm calculation method and a logarithm calculation circuit. The logarithm calculation method disclosed by the invention comprises the following steps: (a) selecting a first parameter, a second parameter, a third parameter and a fourth parameter corresponding to the i iterative operation; (b) judging whether an input value is larger than the third parameter or smaller than the fourth parameter; (c) if the input value is greater than the third parameter, updating the input value by multiplying the input value by the first parameter, and updating an output value by subtracting the logarithm value of the first parameter, or if the input value is smaller than the fourth parameter, updating the input value by multiplying the input value by the second parameter, and updating the output value by subtracting the logarithm value of the second parameter, or if the input value is between the third parameter and the fourth parameter, not changing the input value and the output value; (d) adding 1 to i, and returning to the step (a) until i is equal to a preset value; and (e) when i is equal to the preset value, taking a current output value as a calculation result.

Description

technical field [0001] The present invention relates to logarithmic calculation methods. Background technique [0002] In a general logarithmic calculation circuit, the logarithmic calculation is usually realized by means of Coordinate Rotation Digital Computer (CORDIC). However, the above method needs to store a large parameter table, and also needs to use multiple The circuit design of the multiplier is relatively complex, so the complexity and cost of the circuit design will be increased. Contents of the invention [0003] Therefore, one of the purposes of the present invention is to propose a logarithm calculation method and related circuits, which only need two additions and one shift in each iteration (iteration) operation, so the circuit design can be greatly simplified, To solve the problems in the prior art. [0004] In one embodiment of the present invention, a logarithmic calculation method is disclosed, which is used to perform a logarithmic operation on an i...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F7/556
CPCG06F7/556G06F7/4833G06F2101/10
Inventor 赵博雅邱栋唐明哲吴艳
Owner REALTEK SEMICON CORP
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