EXPERIMENT-6
AIM: To design Half Subtractor and Full Subtractor circuits using
Logisim.
Theory:
Logisim is an educational tool for designing and simulating digital logic circuits. With its simple toolbar interface and simulation of circuits as they are built, it is simple enough to facilitate learning the most basic concepts related to logic circuits. With the capacity to build larger circuits from smaller sub circuits, and to draw bundles of wires with a single mouse drag, Logisim can be used (and is used) to design and simulate entire CPUs for educational purposes.
Half subtractors:
A half subtractor is an arithmetic circuit that subtracts one binary digit from another considering a borrow. It has two inputs and two outputs (Difference and borrow).
Full Subtractors: A Full Subtractor is an arithmetic circuit that subtracts
one binary digit from another considering a borrow. It has three inputs and two outputs (Difference and borrow).
Gates Used: AND, OR, NOT and XOR gates. AND GATE: It is one of the basic gates. It performs logical AND operation.
It is represented by the symbol .
OR GATE:
OR gate is also one of the basic gate. It performs logical OR
operation. It is represented by the symbol +
XOR GATE:XOR gate is one of the derived gates. It performs Logical XOR
operation. It is represented by the symbol +
NOT GATE: NOT gate is also one of the basic gates. It performs logical
NOT operation. It is represented by the symbol
OPERATION OF GATES: AND GATE: It has a property to provide High state (i.e. 1) output only when
all the inputs are at high state otherwise its output is low (i.e. 0)
OR GATE:
It has a property to provide Low state (i.e. 0) output only when A circuit that takes two inputs and outputs 0 if the inputs are
all the inputs are at Low state otherwise its output is High (i.e. 1)
XOR GATE:
the same and 1 if they are different
NOT GATE: It has a property to provide high state (i.e. 1) output when
input is at low state (i.e. 0) and vice-versa.
TRUTH TABLE : 1. For Half Subtractor circuit
Input A O O 1 1 B O 1 O 1
Output D =AB+AB B0ut =AB 0 0 1 1 1 0 0 0
2. For Full Subtractor circuit
INPUT
A B BIN D=A +B +BIN
Output
BOUT =AB+ABIN+BBIN
0 0 0 0 1 1 1 1
0 0 1 1 0 0 1 1
0 1 0 1 0 1 0 1
0 1 1 0 1 0 0 1
0 1 1 1 0 0 0 1
K-MAP
1. For Half Subtractor Circuit i. For Difference ( D)=AB+AB A 0 1 ii. For Borrow (Bin ) = AB A 0 1 B 0 0 0 1 1 0 B 0 0 1 1 1 0
2. For Full Subtractor i. For Difference(D) = A + B + Bin A 0 1 BBin 00 0 1 01 1 0 11 0 1 10 1 0
ii. For Borrow (BIN) = AB + BBIN + ABIN A BBin 0 1 00 0 0 01 1 0 11 1 1 10 1 0
Result: Hence Half Subtractor and Full Subtractor circuits are properly designed and simulated through Logisim