Patent ID: 6504495
Filing Date: 2003-01-07
Classification: G06F

Abstract:
Apparatus for processing an unclipped data value in a range of âˆ’0.5N to (1.5Nâˆ’1) to generate a clipped data value clipped to a range of 0 to (Nâˆ’1), where N is 2m, said unclipped data value is represented by an overflow bit followed by an m-bit number extending from an (mâˆ’1)th bit to a 0th bit and said unclipped data value is part of an n-bit twos complement input data word, said apparatus comprising:left shifting logic for left shifting said unclipped data value to generate a left shifted data value in which said (mâˆ’1)th bit is a most significant bit in said left shifted data value and a carry flag is set in dependence upon said overflow bit; saturated value generating logic for generating said clipped data value in accordance with: said clipped data value is 0 if said carry flag indicates that said overflow bit was 1 and said most significant bit in said left shifted data value is 1; said clipped data value is (Nâˆ’1) if said carry flag indicates that said overflow bit was 1 and said most significant bit in said left shifted data value is 0; and said clipped data value is said m-bit number if said carry flag indicates that said overflow bit was 0.