Left Shift Saturation Detection in Digital Signal Processors

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Standard hardware shifters using two's complement notation fail to properly saturate results after left shifting, leading to inaccuracies and overflow issues when handling large positive numbers, as they cannot detect and manage the loss of information effectively.

Innovation Solution

A left/right arithmetic shifter system that includes a left shift channel and an arithmetic right shift channel, where the right shift channel produces bits identical to those shifted out of the left shift channel, and a saturation checking unit determines if the left shift result requires saturation by examining the concatenated result with the MSB, setting the result to the maximum positive or negative value if necessary.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If a standard hardware shifter is used for left shifting data, then the shifting operation is fast and simple, but the result cannot be properly saturated when overflow occurs

Engineering Contradiction:
Improvesaturation accuracyVSAvoidshifter structure
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The shifter is divided into two independent channels: a left shift channel that performs the left shifting operation and a right arithmetic shift channel that performs saturation detection. This segmentation allows each channel to specialize in its function, with the right shift channel detecting overflow conditions by comparing the shifted-out bits with the original sign bit, thereby achieving proper saturation without significantly increasing overall complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The right arithmetic shift channel performs saturation detection in advance by examining the bits that are shifted out during the left shifting operation. By detecting potential overflow conditions before they affect the final result, the system can preemptively saturate the output to the appropriate maximum or minimum value, ensuring reliability without requiring complex post-processing.

Inventive Principle:
Principle #10Preliminary action

2Loss of information

If left shifting is performed without saturation detection, then the operation is simple and fast, but information loss cannot be detected leading to inaccurate results

Engineering Contradiction:
Improveoverflow detectionVSAvoidshifter structure
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The right arithmetic shift channel acts as an intermediary that monitors the left shifting operation. It receives the same input data and shift amount, performs a right arithmetic shift, and compares its result with the left shift output to detect information loss. This intermediary mechanism enables overflow detection without requiring the main left shift channel to become significantly more complex.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If saturation checking is added to detect overflow, then accuracy is improved, but the device complexity and processing time increase

Engineering Contradiction:
Improveshift result accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The left and right shift channels operate in parallel and simultaneously, maintaining continuous useful action throughout the processing. Both channels receive input data and perform their respective operations at the same time, with the right shift channel continuously monitoring for overflow conditions. This parallel operation ensures that saturation checking does not add significant processing time, as both operations complete concurrently rather than sequentially.

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS7539715B2Method and system for saturating a left shift result using a standard shifter
Publication Date: 2009.05.26 VIA TECH INC
  • US7539715B2 patent drawing
  • US7539715B2 patent drawing
  • US7539715B2 patent drawing

AI summary

A method for left shifting data includes left shifting the data to produce a left-shift result, right shifting the data to produce a right-shift result, and determining if the left-shift result requires saturation based on the right-shift result.