Patent ID: 7284028

Claim:
A comparator circuit operable to compare values of a first number and a second number, the first and second numbers being either unsigned numbers or signed numbers, the comparator circuit comprising: a comparator operable to receive a first number and a second number and operable to output a first result indicating whether or not the first number is equal to the second number, and a second result indicating whether or not a magnitude of the first number is less than a magnitude of the second number; a sign selector operable to receive a sign of the first number when present, a sign of the second number when present and the second result output by the comparator, the sign selector operable to output a modified result, the modified result indicating which of the first number and the second number has lesser value, considering the signs of the first and second number; and a result flag generator, the result flag generator operable to receive the modified result and the first result and to output a final result indicating whether the first number is a) equal to the second number, b) less than the second number, c) or not equal to and not less than the second number.