Logarithm Computation Using FMAD and Two-Table Lookup

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing logarithm processing systems require complex architectures and numerous instructions, often implemented in dedicated hardware, which is inefficient for frequent usage and not optimized for standard programmable processing units.

Innovation Solution

Implementing a reduced instruction set that utilizes two function tables and standard FMAD hardware to normalize and format inputs, allowing for efficient computation of logarithms using existing programmable processing units, such as CPUs or GPUs, by performing two table lookups and combining operations into fewer instructions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a Taylor series approximation is implemented using dedicated hardware with multiple specialized tables, then logarithm computation precision is improved, but device complexity increases

Engineering Contradiction:
Improvelogarithm computation precisionVSAvoidprocessing mechanism complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts only the essential components needed for logarithm computation - specifically reducing from multiple specialized tables to just two tables (one for base values and one for derivative values), and removing the square function block. This extraction maintains sufficient precision while significantly reducing device complexity.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent segments the logarithm computation into distinct phases: table lookup for base values, table lookup for derivative values, and sequential multiply-add operations. This segmentation allows each component to be simpler while collectively achieving the desired precision.

Inventive Principle:
Principle #1Segmentation

2Ease of operation

If a reduced instruction set is used with standard FMAD hardware, then ease of operation is improved, but manufacturing precision may worsen

Engineering Contradiction:
Improveinstruction set simplicityVSAvoidlogarithm computation precision
Core Design Contradiction:
Ease of operationVSManufacturing precision

Solution Approach 1:

The patent changes the parameters of the computation by using compressed formats for storing table values and applying scaling factors during the multiply-add operations. This allows standard FMAD hardware to achieve high precision results despite using a reduced instruction set.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent performs preliminary normalization of the input operand and preliminary lookup of base and derivative values from tables before the actual computation. This preliminary action ensures that the subsequent simplified FMAD operations can achieve high precision without requiring complex instructions.

Inventive Principle:
Principle #10Preliminary action

3Productivity

If dedicated hardware is used for Taylor series approximation, then productivity is improved, but device complexity increases

Engineering Contradiction:
Improvelogarithm computation speedVSAvoidspecialized hardware requirements
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent makes standard FMAD hardware perform logarithm computation by combining it with simple table lookup operations. This universal approach allows the same hardware to perform both standard floating-point operations and logarithm computations, improving productivity without requiring dedicated specialized hardware.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS7539717B2Logarithm processing systems and methods
Publication Date: 2009.05.26 VIA TECH INC
  • US7539717B2 patent drawing
  • US7539717B2 patent drawing
  • US7539717B2 patent drawing

AI summary

Embodiments of logarithm processing systems and methods are disclosed. The system embodiments described herein include two tables corresponding to various base and derivative functions of a logarithm, with logic configured to access the tables and format and normalize the accessed values to evaluate the logarithm using a standard floating point, fused multiply-add (FMAD)unit.