CENG 241 Digital Design 1: Amirali Baniasadi Amirali@ece - Uvic.ca
CENG 241 Digital Design 1: Amirali Baniasadi Amirali@ece - Uvic.ca
Digital Design 1
Lecture 1
Amirali Baniasadi
[email protected]
CENG 241: Digital Design 1
Instructor:
Amirali Baniasadi (Amir)
Office hours: EOW 441, Only by appt.
Email: [email protected] Office Tel: 721-8613
Web Page for this class will be at
http://www.ece.uvic.ca/~amirali/courses/CENG241/ceng241.html
2
Course Structure
Homework: Some from the book some will be posted on the web
site.
3
Course Problems
Late homework 10% penalty per day up to maximum of 5 days (after that
Homework will not be accepted)
4
Course Philosophy
Book to be used as supplement for lectures (If a topic is not covered in the
class, or a detail not presented in the class, that means I expect you to read
on your own to learn those details)
Final Exam(30%)
To pass the course you should also pass the lab and the final exam.
5
What are my expectations?
6
This Lecture
Digital Design?
Binary Systems
7
Binary storage & registers
8
Binary storage & registers
9
Binary information processing
10
Binary logic
Binary logic deals with variables that take on two discrete values and
operations that assume logical meaning.
Logic gates: electronic circuits that operate on one or more input signals to
produce an output signal.
Example
x y x AND y
0 0 0
0 1 0
1 0 0
1 1 1
11
Electrical signals
Two values: 0 or 1
12
Symbols for digital logic circuits
13
Input-Output signals for gates
14
Gates with multiple inputs
15
Boolean Algebra
Basic definitions:
x+0=0+x=x
x.1=1.x=x
x.(y+z)=(x.y)+(x.z)
x+(y.z)=(x+y).(x+z)
x+x’=1
x.x’=0
16
Boolean Algebra Theorems
x+x=x
x.x=x
x+1=1
x.0=0
x+x.y=x
x.(x+y)=x
17
Boolean Algebra Functions
examples:
F1=x+y’.z
F2=x’.y’.z+x’.y.z+x.y’
=x’.z(y’+y)+x.y’
F2=x’.z+x.y’
18
Boolean Function: Example
Truth table
x y z F1 F2
0 0 0 0 0
0 0 1 1 1
0 1 0 0 0
0 1 1 0 1
1 0 0 1 1
1 0 1 1 1
1 1 0 1 0
1 1 1 1 0
19
Boolean Function Implementation
y’
Y’.z
20
Boolean Function Implementation
X’.y’.z
X’.y.z
X.y’
X.y’
X’.z
21
Complement of a function
DeMorgan’s theorem:
(x+y)’=x’.y’
(x.y)’=x’+y’
(x+y+z)’=?
Let A=x+y (A+z)’=A’.z’=(x+y)’.z’=x’.y’.z’
(x.y.z)’=x’+y’+z’
22
Canonical & Standard Forms
Canonical Forms:
Boolean functions expressed as a sum of minterms or product of
maxterms.
23
Minterms
x y z Terms Designation
0 0 0 x’.y’.z’ m0
0 0 1 x’.y’.z m1
0 1 0 x’.y.z’ m2
0 1 1 x’.y.z m3
1 0 0 x.y’.z’ m4
1 0 1 x.y’.z m5
1 1 0 x.y.z’ m6
1 1 1 x.y.z m7
24
Maxterms
x y z Designation Terms
0 0 0 M0 x+y+z
0 0 1 M1 x+y+z’
0 1 0 M2 x+y’+z
0 1 1 M3 x+y’+z’
1 0 0 M4 x’+y+z
1 0 1 M5 x’+y+z’
1 1 0 M6 x’+y’+z
1 1 1 M7 x’+y’+z’
25
How to express algebraically
26
How to express algebraically
F1=m1+m4+m7=x’.y’.z+x.y’.z’+x.y.z=Σ(1,4,7)
27
How to express algebraically
F2=m3+m5+m6+m7=x’.y.z+x.y’.z+x.y.z’+x.y.z=Σ(3,5,6,7)
28
How to express algebraically
F1=M0.M2.M3.M5.M6 = л(0,2,3,5,6)
29
How to express algebraically
F=M0.M1.M2.M4=л(0,1,2,4)=(x+y+z).(x+y+z’).(x+y’+z).(x’+y+z)
30
Maxterms & Minterms: Intuitions
Minterms:
If a function is expressed as SUM of PRODUCTS, then if a single product is
1 the function would be 1.
Maxterms:
If a function is expressed as PRODUCT of SUMS, then if a single product is
0 the function would be 0.
Canonical Forms:
Boolean functions expressed as a sum of minterms or product of
maxterms.
31
Standard Forms
32
Nonstandard Forms
33
Implementations
34
Digital Logic Gates
35
Summary?
36