Cheat Sheet 3 Just Cheat Sheet For Logic Design
Cheat Sheet 3 Just Cheat Sheet For Logic Design
AND-OR-INVERT LOGIC
EXCLUSIVE-OR
Although this circuit is considered a
type of logic gate with its own unique
symbol, it is actually a combination of
two AND gates, one OR gate, and two
EXCLUSIVE-NOR LOGIC
Notice that the output X is HIGH only
when the two inputs, A and B, are at the
same level.
EVEN-PARITY GENERATOR
A parity bit is added to a binary code in
order to provide error detection. For even
parity, a parity bit is added to the
original code to make the total number
of 1s in the code even. The circuit in Figure
5–7 produces a 1 output when there is an
odd number of 1s on the inputs in order to
make the total number of 1s in the output
code even. A 0 output is produced when
there is an even number of 1s on the inputs.
EVEN-PARITY CHECKER
Produces a 1 output when there
is an error in the five-bit code
and a 0 when there is no error.
NAND LOGIC DIAGRAMS USING DUAL SYMBOLS THE HALF-ADDER
All logic diagrams using NAND gates should be drawn with each gate represented by
either a NAND symbol or the equivalent negative-OR symbol to reflect the operation of the
gate within the logic circuit. The NAND symbol and the negative-OR symbol are called
dual symbols. When drawing a NAND logic diagram, always use the gate symbols in such
a way that every connection between a gate output and a gate input is either bubble-tobubble
or nonbubble-to-nonbubble. In general, a bubble output should not be connected to
a nonbubble input or vice versa in a logic diagram. Notice that the output carry (Cout) is a 1 only when both A and
B are 1s; therefore, Cout can be expressed as the AND of the
input variables. Cout = AB
Now observe that the sum output (©) is a 1 only if the input
variables, A and B, are not equal. The sum can therefore be
expressed as the exclusive-OR of the input variables.
THE FULL-ADDER
Redraw the logic diagram with the use of equivalent negative-OR symbols as shown.
Writing the expression for X directly from the indicated logic operation of each gate gives: