Bit-Serial Input and Output Multipliers and Squarers