Bool
Bool
Bool
So first we determine ~Y
next, ~Y * Z
finally, X + ~Y*Z
Basic Boolean Identities
• As with algebra, there will be Boolean operations that
we will want to simplify
– We apply the following Boolean identities to help
• For instance, in algebra, x = y * (z + 0) + (z * 0) can be simplified to
just x = y * z
Some Examples
Example: use algebraic simplification rules to reduce ~xyz+~xy~z+xz
~xyz + ~xy~z + xz = ~xy(z+~z)+xz (distributive law) =
~xy(1)+xz (inverse law) = ~xy+xz (identity law)
What does
this circuit
compute?
(what is F?)
Using only NAND
• NAND (and NOR) have unique properties different
from the other boolean operations
– This allows us to use one or more NAND gates (or one or
more NOR gates) and create gates that can compute AND, OR
and NOT
• See the examples below
NAND Chip Early integrated circuits
were several gates on a
single chip, you would
connect this chip to other
chips by adding wires
between the pins
To do ~(A*B) + ~(C*D)
A related circuit is the demultiplexer (DEMUX) – it receives 1 input and a select and
passes the input onto one of several outputs
A Simple 2-bit ALU
Putting all these ideas together
Given 2 values,
A and B, each
of which are 2
bits (A0, A1,
B0, B1) and
a selection from
the control unit (f0, f1)
It should be
noted that
computer
memory uses
a different
technology
than flip-flops