Chapter 1-1
Chapter 1-1
Architecture
COMP 241
– Buffer P = A
– The buffer does not A P
A P
produce any particular 0 0
logic function since the 1 1
binary value of the output
is the same as the binary
value of the input
A P
0 1 A P
1 0
– Not P=A
Basic AND / OR
• Circuits with two Inputs
A B P
0 0 0
– AND P = A.B 0 1 0 A P
1 0 0 B
1 1 1
A B P
0 0 0 A
– OR P=A+B 0 1 1 P
B
1 0 1
1 1 1
Basic NAND / NOR
– NAND P = A.B
A B P
0 0 1 A P
0
1
1
0
1
1
B
– NOR P=A+B 1 1 0
A B P
0 0 1
0 1 0
A
P
1 0 0
B
1 1 0
Basic XOR (Exclusive OR) / XNOR
(Exclusive NOR)
• Circuits with two Inputs:
A B P
– XOR P = A B 0
0
0
1
0
1
A
1 0 1 P
B
1 1 0
A B P
0 0 1 A
0 1 0 P
– XNOR P = A B 1 0 0
B
1 1 1
• You should be aware that
are different.
• Gates can have multiple inputs and more than one output.
– A second output can be provided for the complement of the
operation.
21
• Digital computers contain circuits that implement Boolean
functions. 3.2 Boolean Algebra
• Hence the simpler that we can make a Boolean function, the
smaller the circuit that will result.
– Simpler circuits are cheaper to build, consume less power, and run faster than
complex circuits.
• With this in mind, we always want to reduce our Boolean
functions to their simplest form.
• Generally- the purpose of Boolean algebra is to facilitate the
analysis and design of digital circuits. It provides a convenient
tool to:
– Express in algebraic form a truth table relationship between binary
variables.
– Express in algebraic from the input –output relationship of logic
diagrams.
– Find simple circuit for the same function.
• There are a number of Boolean identities\rules that help us to
do this. 22
The most basic identities of the Boolean
Algebra
1) X.0 =0 null law
2) X. 1 =X identity law
3) X.X=X idempotent law
4) X.X’=0 inverse law
5) x+0=x identity law
6) x+1=1 null law
7) x+x=x idempotent law
8) x+x’=1 inverse law
9) (X’)’ = X double
complement law
Boolean Theorems (Multivariable)
1) x+y = y+x
2) X.Y = Y.X
3) x+(y+z) = (x+y)+z=x+y+z
4) x(yz)=(xy)z=xyz
5) x(y+z)=xy+xz
6) (w+x)(y+z)=wy+xy+wz+xz
DeMorgan’s Theorems
• (x+y)’=x’y’
• Implications and alternative symbol for NOR
function. Figure (b) is the alternative of the NOR
gate.
(xy)’=x’+y’
Implications and alternative symbol for NAND
function. Figure (b) is the alternative of the NAND
gate.
• Simplify
3.2 Boolean Algebra
27
Another example
• F= ABC + ABC’ +A’C
=AB(C + C’) + A’C
= AB + A’C
Complement of a function
• Sometimes it is more economical to build a circuit using
the complement of a function (and complementing its
result) than it is to implement the function directly.
• DeMorgan’s law provides an easy way of finding the
complement of a Boolean function.
• Recall DeMorgan’s law states:
29
• DeMorgan’s law can be extended to any number of
variables.
• Replace each variable by its complement and change all
ANDs to ORs and all ORs to ANDs.
• Thus, the complement of:
can be:
30
• Through our exercises in simplifying Boolean expressions, we
see that there are numerous ways of stating the same Boolean
expression.
– These “synonymous” forms are logically equivalent.
– Logically equivalent expressions have identical truth tables.
• In order to eliminate as much confusion as possible, designers
express Boolean functions in standardized or canonical form.
• There are two canonical forms for Boolean expressions:
• sum-of-products and product-of-sums.
• In the sum-of-products form, ANDed variables are ORed
together.
– For example:
• In the product-of-sums form, ORed variables are ANDed
together:
– For example: 31
• It is easy to convert a function to sum-
of-products form using its truth table.
• From the truth table locate the values
of the variables that make the function
true (=1).
• Then list the values of the variables
that result in a true function value
• Each group of variables is then ORed
together.
• Hence, the sum-of-products form for our
function is: