×

Squaring circuit for binary numbers

  • US 5,337,267 A
  • Filed: 11/02/1992
  • Issued: 08/09/1994
  • Est. Priority Date: 11/05/1991
  • Status: Expired
First Claim
Patent Images

1. A squaring circuit for raising to the second power a first binary number X of n bits, each bit having a weight assigned thereto, wherein the weights increase from 0 to n-1, the circuit comprising:

  • a circuit responsive to a second binary number P including bits of weight 1 to n-2 of the first number X, for generating the square P2 of the second binary number, the circuit arrangement includes a table stored in a memory having at least one bit of the P2 ;

    an adder, coupled to the circuit, receiving at a first multi-bit input thereof, a number including bits of the square P2 of the second binary number and a bit of weight n-1 of the first number X;

    a first switching element, coupled between the memory and the adder, receiving the second number P and providing the second number P to n-2 lines of low weight of a second input of the adder if the bit of weight 0 of the first number X is equal to b 1;

    a second switching element, coupled between the memory and the adder, receiving the second number P and providing P to n-2 high weight lines of the second input of the adder if the bit of weight n-1 of the first number X is equal to 1; and

    a third switching element, coupled between the memory and the adder, providing a 1 to a remaining line of the second input of the adder if bits of weight 0 and n-1 of the first number X are both equal to 1, wherein l represents a first predetermined logic level;

    wherein the square X2 of the first number X is provided by an output of the adder, and to the output of the adder are added at predetermined positions a bit 0 and the bit of weight 0 of the first number X.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×