Adder-subtractor

nounStandard termElectronics

A digital logic circuit configured to perform both addition and subtraction on binary numbers.

An adder-subtractor is a combinational logic circuit built from full adders and XOR gates that can toggle between adding or subtracting two binary inputs based on a control signal. When subtracting, it typically uses two's complement arithmetic by inverting one of the operands and adding a one to the carry-in bit. It forms the fundamental building block of an arithmetic logic unit (ALU) in microprocessors.

Heard on the job

Tie the mode control pin of the adder-subtractor to the instruction decoder so it knows when to invert the B input.