Professional Documents
Culture Documents
Boolean
Algebra, Logic
2x Gates
•These are the rules that underlie electronic circuits, and the
methods we will discuss are fundamental to VLSI design.
• Boolean complementation,
• Boolean product
4–2
Boolean Operations
•The complement is denoted by a bar (on the slides, we will
use a minus sign). It is defined by
•-0 = 1 and -1 = 0.
4–3
Boolean Functions and Expressions
4–4
Boolean Functions and Expressions
4–5
Boolean Functions and Expressions
•… and so on…
4–6
Boolean Functions and Expressions
x y F(x, y)
0 0 0
0 1 1
1 0 0
1 1 0
4–7
Boolean Functions and Expressions
•Another Example: •Possible solution I:
•x •y •z •F(x, y, z) •F(x, y, z) = -(xz + y)
•0 •0 •0 •1
•0 •0 •1 •1
•Possible solution II:
•0 •1 •0 •0
•F(x, y, z) = (-(xz))(-y)
•0 •1 •1 •0
•1 •0 •0 •1
•1 •0 •1 •0
•1 •1 •0 •0
•1 •1 •1 •0
4–8
Boolean Functions and Expressions
•There is a simple method for deriving a Boolean expression
for a function that is defined by a table. This method is based
on minterms.
4–9
Boolean Functions and Expressions
•Consider F(x,y,z) again: •F(x, y, z) = 1 if and only if:
•x •y •z •F(x, y, z) •x = y = z = 0 or
•0 •0 •0 •1
•x = y = 0, z = 1 or
•0 •0 •1 •1
•x = 1, y = z = 0
•0 •1 •0 •0
•0 •1 •1 •0 •Therefore,
•1 •0 •0 •1 •F(x, y, z) =
(-x)(-y)(-z) +
•1 •0 •1 •0
(-x)(-y)z +
•1 •1 •0 •0 x(-y)(-z)
•1 •1 •1 •0
4–10
4–11
4–12
Computers
4–13
Boolean algebra
4–14
4–15
Truth Table
4–16
Gates
4–17
4–18
4–19
NOT Gate
4–20
NOT Gate
4–21
AND Gate
•Solution: There are four of them, F1, F2, F3, and F4:
x F1 F2 F3 F4
0 0 0 1 1
1 0 1 0 1
4–23
Boolean Functions and Expressions
•0 •0 •0 •0 •0 •0 •0 •0 •0 •0 •1 •1 •1 •1 •1 •1 •1 •1
•0 •1 •0 •0 •0 •0 •1 •1 •1 •1 •0 •0 •0 •0 •1 •1 •1 •1
•1 •0 •0 •0 •1 •1 •0 •0 •1 •1 •0 •0 •1 •1 •0 •0 •1 •1
•1 •1 •0 •1 •0 •1 •0 •1 •0 •1 •0 •1 •0 •1 •0 •1 •0 •1
4–24
Boolean Functions and Expressions
•Solution:
4–25
Duality
•There are useful identities of Boolean expressions that can
help us to transform an expression A into an equivalent
expression B
•We can derive additional identities with the help of the dual of
a Boolean expression.
4–26
Duality
•Examples:
4–27
Duality
•Therefore, an identity between functions represented by
Boolean expressions remains valid when the duals of both
sides of the identity are taken.
•We can use this fact, called the duality principle, to derive
new identities.
•For example, consider the absorption law
x(x + y) = x.
•By taking the duals of both sides of this identity, we obtain the
equation x + xy = x, which is also an identity (and also called
an absorption law).
4–28
4–29
4–30
OR Gate
x xy
y
xy + (-x)y
x -x
(-x)y
y
4–33
4–34
4–35
XOR Gate
4–36
XOR Gate
4–37
NAND and NOR Gates
4–43
Constructing Gates
4–44
Circuits
AND
OR
AND
Page 99 4–46
Combinational Circuits
Page 100
Page 100
Page 101
4–49
Now let’s go the other way; let’s take a
Boolean expression and draw
4–50
Adders
4–51
Adders
4–52
Adders
• Circuit diagram
representing
a half adder
• Two Boolean
expressions:
sum = A B
carry = AB
Page 103
4–53
Adders
4–55
4–56
NAND and NOR
as Universal Logic Gates
4–57
NAND and NOR as Universal Logic Gates
(cont)
4–61
Boolean Functions and Expressions
4–62
Boolean Functions and Expressions
•(F + G)(b1, b2, …, bn) = F(b1, b2, …, bn) + G(b1, b2, …, bn)
4–63