









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Using the theorems of Boolean Algebra, the algebraic forms of functions can often be simplified, which leads to simpler (and cheaper) implementations.
Example 1
= A. (B + B) + B.C How many gates do you save = A.1 + B.C from this simplification? = A + B.C
Example 2
F = A.B.C + A.B.C + A.B.C + A.B.C
= A.B.C + A.B.C + A.B.C + A.B.C + A.B.C + A.B.C = (A.B.C + A.B.C) + (A.B.C + A.B.C) + (A.B.C + A.B.C) = (A + A). B.C + (B + B). C.A + (C + C). A.B = B.C + C.A + A.B
Example 3 Show that A + A.B = A
A + AB = A.1 + A.B = A. (1 + B) = A. 1 = A
NAND gate NOR gate
Be familiar with the truth tables of these gates.
Exclusive OR (XOR) gate
Any function can be implemented using only NAND or only NOR gates. How can we prove this?
(Proof for NAND gates) Any boolean function can be implemented using AND, OR and NOT gates. So if AND, OR and NOT gates can be implemented using NAND gates only, then we prove our point.
Example (to be worked out in class) How to convert any circuit that uses AND, OR and NOT gates to a version that uses NAND (or NOR gates only)?
Additional properties of XOR XOR is also called modulo-2 addition. Why?
0 0 0 0 A B = 1 only when there are an 0 0 1 1 odd number of 1’s in (A,B). The 0 1 0 1 same is true for A B C also. 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1
1 A = A Why? 0 A = A
Logic Design Exercise
Half Adder
A Sum (S) 0 0 0 0 B Carry (C) 0 1 1 0 1 0 1 0 S = A B 1 1 0 1 C = A.B
Half Adder
Combinational circuits. The output depends only on the current values of the inputs and not on the past values. Examples are adders, subtractors, and all the circuits that we have studied so far
Sequential circuits. The output depends not only on the current values of the inputs, but also on their past values. These hold the secret of how to memorize information. We will study sequential circuits later.
A typical decoder has n inputs and 2n^ outputs.
Enable A B D3 D2 D1 D D0 0 0 0 0 0 1 A D1 0 1 0 0 1 0 B D2 1 0 0 1 0 0 D3 1 1 1 0 0 0
A 2-to-4 decoder and its truth table.
D3 = A.B Draw the circuit of this decoder. D2 = A.B D1 = A.B The decoder works per specs D0 = A.B when ( Enable = 1 ). When Enable = 0 , all the outputs are 0.
Exercise. Design a 3-to-8 decoder.
It is a many-to-one switch , also called a selector.
Control S Specifications of the mux
A 2-to-1 mux
Exercise. Design a 4-to-1 mux.
Exercise 1. Design a 2-to-4 decoder using 1-to-2 decoders only. Exercise 2. Design a 4-to-1 multiplexor using 2-1 multiplexors only.
To be discussed in the class.
D0 D1 D2 D 2-to-4 decoder