Documente Academic
Documente Profesional
Documente Cultură
I S
1
0
1
0
S0
Objectives
Ashutosh Trivedi 2 of 29
Ashutosh Trivedi
Objectives
Boolean Algebra
Ashutosh Trivedi 3 of 29
Ashutosh Trivedi
Ashutosh Trivedi 4 of 29
Ashutosh Trivedi
Ashutosh Trivedi 4 of 29
Ashutosh Trivedi
Ashutosh Trivedi 4 of 29
Ashutosh Trivedi
Ashutosh Trivedi 4 of 29
Ashutosh Trivedi
Introducing AND nd OR
Logical AND operation (series connection)
We write the expression
L(x, y) = x y
to say L(x, y) = x AND y when
(
1 if x = 1 and y = 1.
L =
0 otherwise.
Ashutosh Trivedi 5 of 29
Ashutosh Trivedi
Introducing AND nd OR
Logical AND operation (series connection)
We write the expression
L(x, y) = x y
to say L(x, y) = x AND y when
(
1 if x = 1 and y = 1.
L =
0 otherwise.
Ashutosh Trivedi 5 of 29
Ashutosh Trivedi
Introducing AND nd OR
Logical AND operation (series connection)
We write the expression
L(x, y) = x y
to say L(x, y) = x AND y when
(
1 if x = 1 and y = 1.
L =
0 otherwise.
A series-parallel connection
Ashutosh Trivedi 5 of 29
Ashutosh Trivedi
Inversion
Can we use a switch to implement an inverted switch?
We would like to implement the following function:
L(x) = x
to say L(x) = NOT x or complement of x when
(
0 if x = 1.
L =
1 if x = 0
Ashutosh Trivedi 6 of 29
Ashutosh Trivedi
Inversion
Can we use a switch to implement an inverted switch?
We would like to implement the following function:
L(x) = x
to say L(x) = NOT x or complement of x when
(
0 if x = 1.
L =
1 if x = 0
The inverting circuit
Ashutosh Trivedi 6 of 29
Ashutosh Trivedi
Inversion
Can we use a switch to implement an inverted switch?
We would like to implement the following function:
L(x) = x
to say L(x) = NOT x or complement of x when
(
0 if x = 1.
L =
1 if x = 0
The inverting circuit
We can complement not only variables but also expressions, s.t.
f (x, y) = x + y.
Ashutosh Trivedi 6 of 29
Ashutosh Trivedi
Ashutosh Trivedi 7 of 29
Ashutosh Trivedi
Logic Gates
A switch can be implemented using a transistor.
Also other Boolean operations can be implemented using various
combinations of switches.
AND gate, OR gate, NOT gate represent encapsulation of transistor
circuits implementing Boolean function
x
y
xy
x
y
x+y
Ashutosh Trivedi 8 of 29
Logic Gates
A switch can be implemented using a transistor.
Also other Boolean operations can be implemented using various
combinations of switches.
AND gate, OR gate, NOT gate represent encapsulation of transistor
circuits implementing Boolean function
x
y
x
y
z
xy
x
y
x
xyz y
y
x+y
x+y
Ashutosh Trivedi 8 of 29
Ashutosh Trivedi
Ashutosh Trivedi 9 of 29
Ashutosh Trivedi
Ashutosh Trivedi 9 of 29
Ashutosh Trivedi
Ashutosh Trivedi 9 of 29
Ashutosh Trivedi
Ashutosh Trivedi 9 of 29
Ashutosh Trivedi
Ashutosh Trivedi 9 of 29
Ashutosh Trivedi
Ashutosh Trivedi 9 of 29
Ashutosh Trivedi
Objectives
Boolean Algebra
Ashutosh Trivedi 10 of 29
Ashutosh Trivedi
Boolean Algebra
= 0
(1)
1+1
= 1
(2)
11
= 1
(3)
0+0
= 0
(4)
01
= 10=0
(5)
0+1
= 1+0=1
(6)
2.
3.
4.
If x = 0
then
x=1
If x = 1
then
x=0
(7)
(8)
Ashutosh Trivedi 12 of 29
Ashutosh Trivedi
= 0
(9)
x+1
= 1
(10)
x1
= x
(11)
x+0
= x
(12)
xx
x+x
= x
= x
(13)
(14)
xx
= 0
(15)
x + x
= 1
(16)
2.
3.
4.
5.
x
= x
(17)
Ashutosh Trivedi 13 of 29
Ashutosh Trivedi
= yx
(18)
x+y
= y+x
(19)
2. Associativity:
x (y z)
(x y) z
(20)
x + (y + z)
(x + y) + z
(21)
x (y z)
(x y) z
(22)
x + (y + z)
(x + y) + z
(23)
x+xy
= x
(24)
x (x + y)
= x
(25)
3. Distributivity:
4. Absorption:
Ashutosh Trivedi 14 of 29
Ashutosh Trivedi
1. Combining:
xy+xy
= x
(26)
(x + y) (x + y)
= x
(27)
2. Consensus:
xy+yz+xz
xy+xz
(28)
(x + y) (y + z) (x + z)
(x + y) (x + z)
(29)
Ashutosh Trivedi 15 of 29
Ashutosh Trivedi
Ashutosh Trivedi 16 of 29
Ashutosh Trivedi
x+y
(30)
x+y
xy
(31)
Other Remarks
Venn diagram are quite useful proving theorems in Boolean algebra
Ashutosh Trivedi 17 of 29
Ashutosh Trivedi
Other Remarks
Venn diagram are quite useful proving theorems in Boolean algebra
Common symbols to represent OR: x y and x + y
Common symbols to represent AND: x y and x y
Common symbols to represent NOT: x and x
Ashutosh Trivedi 17 of 29
Ashutosh Trivedi
Other Remarks
Venn diagram are quite useful proving theorems in Boolean algebra
Common symbols to represent OR: x y and x + y
Common symbols to represent AND: x y and x y
Common symbols to represent NOT: x and x
Precedence of Operations:
NOT > AND > OR
Example
x1 x2 + x1 x2
(x1 x2 ) + ((x1 ) (x2 ))
x1 (x2 + x1 ) x2
Ashutosh Trivedi 17 of 29
Ashutosh Trivedi
Objectives
Boolean Algebra
Ashutosh Trivedi 18 of 29
Ashutosh Trivedi
Definition (Synthesis)
Given a description of the desired functional behavior, the synthesis is the
process to generate a circuit that realizes this behavior.
Commonly Used logic Gates:
x
y
xy
x
y
x+y
x
y
xy
x
y
x+y
x
y
xy
Ashutosh Trivedi 19 of 29
Ashutosh Trivedi
Ashutosh Trivedi 20 of 29
Ashutosh Trivedi
Theorem
Any Boolean function can be synthesized using only NAND gates.
x
xy
y
Ashutosh Trivedi 20 of 29
Ashutosh Trivedi
Theorem
Any Boolean function can be synthesized using only NAND gates.
x
xy
y
Theorem
Any Boolean function can be synthesized using only NOR gates.
x
x+y
y
Ashutosh Trivedi 20 of 29
Ashutosh Trivedi
Ashutosh Trivedi 21 of 29
Ashutosh Trivedi
x2
0
1
0
1
f (x1 , x2 )
0
1
0
1
f (x1 , x2 )
x1 x2 + x1 x2 = m1 + m3
f (x1 , x2 )
Ashutosh Trivedi 21 of 29
Ashutosh Trivedi
Questions
P
Give SOP form of the function f (x1 , x2 , x3 ) = m(2, 3, 4, 6, 7) and
simplify it.
Q
Give POS for of the function f (x1 , x2 , x3 ) = M(0, 1, 5) and simplify
it.
Ashutosh Trivedi 24 of 29
Ashutosh Trivedi
Ashutosh Trivedi 25 of 29
Ashutosh Trivedi
Examples
Ashutosh Trivedi 26 of 29
Ashutosh Trivedi
Objectives
Boolean Algebra
Ashutosh Trivedi 27 of 29
Ashutosh Trivedi
1. Design Entry
Schematic capture
Hardware description language
Ashutosh Trivedi 28 of 29
Ashutosh Trivedi
Introduction to VHDL
Ashutosh Trivedi 29 of 29
Ashutosh Trivedi