Patent ID: 7541857

Claim:
A programmable device comprising: a first input node having a first voltage value responsive to at least a first input voltage, wherein the first input node is connected with an input device; a second input node having a second voltage value responsive to at least a second input voltage, wherein the second input node is connected with the input device; a first programmable voltage module connected with the first input node, wherein the first programmable voltage module is adapted to provide a first compensating voltage to the first input node, wherein the first programmable voltage module includes a plurality of resistors, wherein each resistor is connected in parallel with a resistor bypass switch adapted to selectively short-circuit its associated resistor in response to a portion of a first signal; a second programmable voltage module connected with the second input node, wherein the second programmable voltage module is adapted to provide a second compensating voltage to the second input node; and a plurality of programmable logic resources adapted to implement functions of a logic circuit and to evaluate the first and second voltage values, wherein the functions include providing the first signal to the first programmable voltage module and providing a second signal to the second programmable voltage module, wherein the first and second signals specify values for the first and second compensating voltages.