Patent ID: 7685215

Claim:
Circuitry adapted to selectively operate in a look-up table (LUT) mode or an arithmetic mode, the circuitry comprising: a LUT circuit having a plurality of memory cells and a decoder connected to receive signals based on data stored in the memory cells and having a plurality of multiplexers (muxes) controlled by LUT address signals A, B, C, and D and configured in three decoder stages, the first stage having four muxes controlled by address signals A and B in either mode, the second stage having two muxes controlled by address signal C in the LUT mode, and the third stage having one mux controlled by address signal D in the LUT mode; and a control circuit connected to the LUT circuit and adapted to control whether the circuitry operates in the LUT mode as a LUT or the arithmetic mode as an adder, wherein the control circuit includes: a memory cell adapted to store a control signal for the control circuit; a first mux connected to receive the control signal at its selection input, address signal C at one signal input, and a carry-in signal CIN at another signal input, and having an output connected to the selection inputs of the two multiplexers in the second decoder stage; and a second mux connected to receive the control signal at its selection input, address signal D at one signal input, and a constant value signal at another signal input, and having an output connected to the selection input of the multiplexer in the third decoder stage, wherein in the arithmetic mode, the two muxes of the second decoder stage are controlled by carry-in signal CIN and the one mux of the third decoder stage is controlled by the constant value signal such that the sum of address signals A and B and carry-in signal CIN appears at the output of the one mux of the third decoder stage.