Logic Families
Logic Families
Presenter:
2. Full Adder:
• A full adder adds three single-bit numbers: A, B, and a
carry-in (C-in) from a previous addition.
• It produces a sum (S) and a carry-out (C-out).
• For example, if 𝐴=1A=1, 𝐵=1B=1, and 𝐶-in=1C-in=1:
• Sum 𝑆=1S=1
• Carry-out 𝐶-out=1C-out=1
Binary Arithmetic Circuits
Data-Select and Multiplexing
+-------------------+
S1 --->| |
S0 --->| 4-to-1 MUX |---> Output (Y)
| |
I0 ---->| |
I1 ---->| |
I2 ---->| |
I3 ---->| |
+-------------------+
Data-Select and Multiplexing
1-Bit Comparator:
• A 1-bit comparator compares two single-bit binary
values (A and B) and has three possible outputs:
• A > B: Output is 1 if A is greater than B.
• A < B: Output is 1 if A is less than B.
• A = B: Output is 1 if A and B are equal.
Multi-Bit Comparator:
• Multi-bit comparators compare binary numbers with multiple
bits (e.g., 4-bit numbers) by evaluating each bit position from
the most significant bit to the least significant.
• A 4-bit comparator with inputs A and B (each 4 bits) has
outputs for A > B, A < B, and A = B.
For example, comparing A = 1011 and B = 1001:
• The comparator checks each bit and determines that A >
B because the most significant bit difference shows A is
larger.
Multi-bit comparators are widely used in digital systems for
magnitude comparisons, sorting, and control logic in CPUs and
memory units.
Encoders
Encoding Example:
Encoders
39
Thank You!