Skip to content
Sahithyan's S2
Sahithyan's S2 — Computer Organization and Digital Design

Subtractors

A digital circuit that does the operation ABA-B. The operation can be done by negating BB and then adding it to AA.

The circuit consists of an inverter and a full adder with C_0 set to 1.

Adder-Subtractor

A digital circuit that can do both addition and subtraction. A control signal is used to switch between the operations.

4-bit Adder-Subtractor

In the above example, MM is the control. When M=0M=0, it works as an adder. Otherwise it works as a subtractor.