SlideShare a Scribd company logo
1 of 23
Digital System Design
(EEE-344)
Week 1
Instructor:
Umair Shafiq Khan
Lecturer
umairkhan@cuilahore.edu.pk
Electrical and Computer Engineering Department, CUI
Lahore Campus
Office:
Block-B, Room No. B12A
Timings:
1
About the Course
Topics to Be Covered:
1. Introduction to Digital Systems
2. Combinational Logic Design
3. Sequential Logic Design – Controllers
4. Datapath Components
5. Register-Transfer Level (RTL) Design
6. Optimizations and Trandsoff
7. Programmable Logic Arrays (PAL), Programmable Arrays
Logic (PLA)
8. Physical Implementation
2
Course learning Outcomes:
• CLO 1: Analyze and Design the working of advanced combinational
and sequential logic based systems using the classical principals of
digital logic design.
• CLO 2: Design of digital systems in a hierarchical and top-down
manner using register-transfer logic (RTL) approach.
3
About the Course
• Rules of Engagement
• Attendance does matter, be aware!
• Protection of your copy is YOUR responsibility! All matching
Assignments/quiz/lab work will lose marks EQUALLY.
• ONLY email or meeting in office hours
• Slides will be given after the lecture via CU-Online tool or via CR
ONLY
• NO EMAILS for personal requests before/during/after exams.
• Its all interactive.
4
Digital System Design
Chapter 1: Introduction
5
Slides to accompany the textbook Digital Design, First Edition,
by Frank Vahid, John Wiley and Sons Publishers, 2007.
http://www.ddvahid.com
Copyright © 2007 Frank Vahid
Instructors of courses requiring Vahid's Digital Design textbook (published by John Wiley and Sons) have permission to modify and use these slides for customary course-related activities,
subject to keeping this copyright notice in place and unmodified. These slides may be posted as unanimated pdf versions on publicly-accessible course websites.. PowerPoint source (or pdf
with animations) may not be posted to publicly-accessible websites, but may be posted for students on internal protected sites or distributed directly to students by other electronic means.
Instructors may make printouts of the slides available to students for a reasonable photocopying charge, without incurring royalties. Any other use requires explicit permission. Instructors
may obtain PowerPoint source or obtain special use permissions from Wiley – see http://www.ddvahid.com for information.
Why Study Digital Design?
• Look “under the hood” of computers
• Solid understanding --> confidence, insight, even
better programmer when aware of hardware
resource issues
• Electronic devices becoming digital
• Enabled by shrinking and more capable chips
• Enables:
• Better devices: Better sound recorders, cameras, cars,
cell phones, medical devices,...
• New devices: Video games, ...
• Known as “embedded systems”
• Thousands of new devices every year
• Designers needed: Potential career direction
6
1995
Portable
music players
1997
Satellites
1999
Cell phones
2001
DVD
players
Video
recorders
Musical
instruments
2003
Cameras TVs ???
2005 2007
• Years shown above indicate when digital version began to dominate
– (Not the first year that a digital version appeared)
1.1
Note: Slides with animation are denoted with a small red "a" near the animated items
What Does “Digital” Mean?
• Analog signal
• Infinite possible values
• Ex: voltage on a wire created by
microphone
7
value
time
value
time
analog
signal
3 4
2
1
2
digital
signal
• Digital signal
– Finite possible values
• Ex: button pressed on a
keypad
0
1
2
3
4
Possible values:
1.00, 1.01, 2.0000009,
... infinite possibilities
Possible values:
0, 1, 2, 3, or 4.
That’s it.
1.2
Digital Signals with Only Two Values: Binary
• Binary digital signal -- only two possible values
• Typically represented as 0 and 1
• One binary digit is a bit
• We’ll only consider binary digital signals
• Binary is popular because
• Transistors, the basic digital electric component, operate
using two voltages (more in Ch. 2)
• Storing/transmitting one of two values is easier than three
or more (e.g., loud beep or quiet beep, reflection or no
reflection)
8
value
time
1
0
Example of Digitization Benefit
• Analog signal (e.g., audio) may
lose quality
• Voltage levels not
saved/copied/transmitted
perfectly
• Digitized version enables near-
perfect save/cpy/trn.
• “Sample” voltage at particular
rate, save sample using bit
encoding
• Voltage levels still not kept
perfectly
• But we can distinguish 0s from
1s
9
time
Volts
0
1
2
3
original signal
lengthy
transmission
(e.g,
cell
phone)
time
0
1
2
3
received signal
How fix -- higher, lower, ?
lengthy
transmission
(e.g,
cell
phone)
01 10 11 10 11
time
01 10 11 10 11
Volts digitized signal
time
0
1
a2d
Volts
0
1
2
3
d2a
Let bit encoding be:
1 V: “01”
2 V: “10”
3 V: “11”
time
Can fix -- easily distinguish 0s
and 1s, restore
0
1
Digitized signal not
perfect re-creation,
but higher sampling
rate and more bits per
encoding brings closer.
a
Digitized Audio: Compression Benefit
• Digitized audio can be
compressed
• e.g., MP3s
• A CD can hold about 20 songs
uncompressed, but about 200
compressed
• Compression also done on
digitized pictures (jpeg),
movies (mpeg), and more
• Digitization has many other
benefits too
10
0000000000 0000000000 0000001111
1111111111
00 00 10000001111
01
Example compression scheme:
00 --> 0000000000
01 --> 1111111111
1X --> X
How Do We Encode Data as Binary for Our Digital
System?
• Some inputs inherently binary
• Button: not pressed (0), pressed
(1)
• Some inputs inherently digital
• Just need encoding in binary
• e.g., multi-button input: encode
red=001, blue=010, ...
• Some inputs analog
• Need analog-to-digital
conversion
• As done in earlier slide -- sample
and encode with bits
11
0
button
1
gree
n
blac
k
blu
e
re
d
0 0
0
re
d
0 1
0
gree
n
blac
k
blu
e
1 0
0
gree
n
blac
k
blu
e
re
d
temperature
sensor
air
0 0 1 1
0 0 0 0
33
degrees
a
sensors and
other inputs
Digital System
actuators and
other outputs
A2D
D2A
analog
phenomena
electric
signal
digital
data
digital
data
electric
signal
digital
data
digital
data
How to Encode Text: ASCII, Unicode
• ASCII: 7- (or 8-) bit encoding of each
letter, number, or symbol
• Unicode: Increasingly popular 16-
bit bit encoding
• Encodes characters from various
world languages
12
101001
0
101001
1
101010
0
100110
0
100111
0
100010
1
011000
0
010111
0
000100
1
R
S
T
L
N
E
0
.
<tab
>
Symbo
l
E
n
codin
g
111001
0
111001
1
111010
0
110110
0
110111
0
110010
1
011100
1
010000
1
010000
0
r
s
t
l
n
e
9
!
<sp
a
ce
>
Symbo
l
E
n
codin
g
Question:
What does this ASCII bit sequence represent?
1010010 1000101 1010011 1010100
R E S T
How to Encode Numbers: Binary Numbers
• Each position represents a quantity;
symbol in position means how many of
that quantity
• Base ten (decimal)
• Ten symbols: 0, 1, 2, ..., 8, and 9
• More than 9 -- next position
• So each position power of 10
• Nothing special about base 10 -- used because
we have 10 fingers
• Base two (binary)
• Two symbols: 0 and 1
• More than 1 -- next position
• So each position power of 2
13
24 23 22
1 0 1
21 20
1
0
4 1
0
3 1
0
2
5 2 3
1
0
1 1
0
0
Q: How much?
+ =
4 1 5
+ =
a
How to Encode Numbers: Binary Numbers
• Working with binary numbers
• In base ten, helps to know powers of 10
• one, ten, hundred, thousand, ten thousand, ...
• In base two, helps to know powers of 2
• one, two, four, eight, sixteen, thirty two, sixty
four, one hundred twenty eight
• (Note: unlike base ten, we don’t have common
names, like “thousand,” for each position in
base ten -- so we use the base ten name)
• Q: count up by powers of two
14
24 23 22 21 20
29 28 27 26 25
1
6
8 4 2 1
51
2
25
6
12
8
6
4
3
2
1
6
8 4 2 1
51
2
25
6
12
8
6
4
3
2
a
Converting from Decimal to Binary Numbers:
Subtraction Method (Easy for Humans)
• Goal
• Get the binary weights to add up to the
decimal quantity
• Work from left to right
• (Right to left – may fill in 1s that shouldn’t have
been there – try it).
15
Desired decimal number: 12
1
2
4
8
16
32
1 =32
too much
1
2
4
8
16
32
0 =16
too much
1
a
1
2
4
8
16
32
0 =8
ok, keep going
0 1
1
2
4
8
16
32
0 =8+4=12
DONE
0 1 1
1
2
4
8
16
32
0 answer
0 1 1 0 0
1
2
4
8
16
32
Converting from Decimal to Binary Numbers:
Subtraction Method (Easy for Humans)
• Subtraction method
• To make the job easier (especially for big
numbers), we can just subtract a selected
binary weight from the (remaining)
quantity
• Then, we have a new remaining quantity, and
we start again (from the present binary
position)
• Stop when remaining quantity is 0
16
Remaining quantity: 12
1
2
4
8
16
32
1 32 is
too much
1
2
4
8
16
32
0 16 is
too much
1
a
1
2
4
8
16
32
0 12 – 8 =
4
0 1
1
2
4
8
16
32
0 4-4=0
DONE
0 1 1
1
2
4
8
16
32
0 answer
0 1 1 0 0
1
2
4
8
16
32
Converting from Decimal to Binary Numbers:
Subtraction Method Example
17
• Q: Convert the number “23” from decimal to binary
23
-16
7
A: Remaining quantity Binary Number
23
32 16 8 4 2 1
0 0 0 0 0 0
32
0
16
1
8
0
4
0
2
0
1
0
7
-4
3
4
-2
1
32
0
16
1
8
0
4
1
2
1
1
0
32
0
16
1
8
0
4
1
2
1
1
1
a
1
-1
0
Done! 23 in decimal is 10111 in binary.
32
0
16
1
8
0
4
1
2
0
1
0
8 is more than 7, can’t use
Converting from Decimal to Binary Numbers:
Division Method (Good for Computers)
• Divide decimal number by 2 and insert remainder into new binary number.
• Continue dividing quotient by 2 until the quotient is 0.
• Example: Convert decimal number 12 to binary
18
12 divide by 2
2
6
-12
0
0
1
Decimal Number Binary Number
insert remainder
Continue dividing since quotient (6) is greater than 0
6 divide by 2
2
-6
0
0
1
insert remainder
0
2
3
Continue dividing since quotient (3) is greater than 0
Converting from Decimal to Binary Numbers:
Division Method (Good for Computers)
• Example: Convert decimal number 12 to binary (continued)
19
3 divide by 2
2
1
Decimal Number Binary Number
insert remainder
Continue dividing since quotient (1) is greater than 0
0
1
0
2
1
-2
1
4
1 divide by 2
2
1
insert remainder
0
1
0
2
1
4
0
-0
1
8
Since quotient is 0, we can conclude that 12 is 1100 in binary
Base Sixteen: Another Base Sometimes
Used by Digital Designers
• Nice because each position represents
four base two positions
• Used as compact means to write binary
numbers
• Known as hexadecimal, or just hex
20
1
6
4 1
6
3 1
6
2
8 A F
8
100
0
101
0
111
1
A F
1
6
1 1
6
0
000
0
000
1
001
0
001
1
010
0
010
1
011
0
011
1
0
1
2
3
4
5
6
7
hex bin
a
ry
100
0
100
1
101
0
101
1
110
0
110
1
111
0
111
1
8
9
A
B
C
D
E
F
hex bin
a
ry
Q: Write 11110000 in hex
F 0 a
Implementing Digital Systems: Programming
Microprocessors Vs. Designing Digital Circuits
• Microprocessors a
common choice to
implement a digital
system
• Easy to program
• Cheap (as low as $1)
• Available now
21
I3
I4
I5
I6
I7
I2
I1
I0
P3
P4
P5
P6
P7
P2
P1
P0
M
r
o
p
r
o
c
void main()
{
while (1) {
P0 = I0 && !I1;
// F = a and !b,
}
}
0
F
b
a
1
0
1
0
1
6:00 7:057:06 9:009:01 time
Desired motion-at-night detector
Programmed
microprocessor
Custom designed
digital circuit
1.3
Digital Design: When Microprocessors Aren’t Good
Enough
• With microprocessors so easy,
cheap, and available, why design a
digital circuit?
• Microprocessor may be too slow
• Or too big, power hungry, or costly
Task Microprocessor Custom
Digital Circuit
Read 5 0.1
Compress 8 0.5
Store 1 0.8
22
(a)
Micro-
processor
(Read,
Compress,
and Store)
Memory
Image Sensor
(b)
(c)
Sample digital camera task execution times (in
seconds) on a microprocessor versus a digital
circuit:
Q: How long for each
implementation option?
a
5+8+1
=14 sec
.1+.5+.8
=1.4 sec
.1+.5+1
=1.6 sec
Good
compromise
Read
circuit
Compress
circuit
Memory
Store
circuit
Image Sensor
Compress
circuit
Microprocessor
(Store)
Memory
Image Sensor Read
circuit
Chapter Summary
• Digital systems surround us
• Inside computers
• Inside huge variety of other electronic devices (embedded systems)
• Digital systems use 0s and 1s
• Encoding analog signals to digital can provide many benefits
• e.g., audio -- higher-quality storage/transmission, compression, etc.
• Encoding integers as 0s and 1s: Binary numbers
• Microprocessors (themselves digital) can implement many digital
systems easily and inexpensively
• But often not good enough -- need custom digital circuits
23

More Related Content

Similar to Digital System Design Week 1 Introduction

Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionMubashir Ali
 
Digitaltechnology 090926105236-phpapp02
Digitaltechnology 090926105236-phpapp02Digitaltechnology 090926105236-phpapp02
Digitaltechnology 090926105236-phpapp02Msbiswa
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptxLibanMohamed26
 
IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1wajanga
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number systemNallapati Anindra
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.pptAshishChandrakar12
 
IS 151 Lecture 1 (2015)
IS 151 Lecture 1 (2015)IS 151 Lecture 1 (2015)
IS 151 Lecture 1 (2015)Aron Kondoro
 
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Asif Iqbal
 
Part#1_Logic_Design.pptx LOGIC Circuit Course
Part#1_Logic_Design.pptx  LOGIC Circuit CoursePart#1_Logic_Design.pptx  LOGIC Circuit Course
Part#1_Logic_Design.pptx LOGIC Circuit CourseEhabRushdy1
 
Conclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.pptConclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.pptKelvinSerimwe
 
Number system
Number systemNumber system
Number systemSajib
 
Lec0.ppt
Lec0.pptLec0.ppt
Lec0.pptputmy
 

Similar to Digital System Design Week 1 Introduction (20)

Digital Logic
Digital LogicDigital Logic
Digital Logic
 
Lecture-2(2): Number System & Conversion
Lecture-2(2): Number System & ConversionLecture-2(2): Number System & Conversion
Lecture-2(2): Number System & Conversion
 
microprocessor
microprocessormicroprocessor
microprocessor
 
Digitaltechnology 090926105236-phpapp02
Digitaltechnology 090926105236-phpapp02Digitaltechnology 090926105236-phpapp02
Digitaltechnology 090926105236-phpapp02
 
1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx1.Digital Electronics overview & Number Systems.pptx
1.Digital Electronics overview & Number Systems.pptx
 
IS 151 Lecture 1
IS 151 Lecture 1IS 151 Lecture 1
IS 151 Lecture 1
 
digital logic design number system
digital logic design number systemdigital logic design number system
digital logic design number system
 
Boolean Algebra Arithmetic SIG UNSIGN.ppt
Boolean Algebra  Arithmetic SIG UNSIGN.pptBoolean Algebra  Arithmetic SIG UNSIGN.ppt
Boolean Algebra Arithmetic SIG UNSIGN.ppt
 
IS 151 Lecture 1 (2015)
IS 151 Lecture 1 (2015)IS 151 Lecture 1 (2015)
IS 151 Lecture 1 (2015)
 
DLD-unit-1(2022).pdf
DLD-unit-1(2022).pdfDLD-unit-1(2022).pdf
DLD-unit-1(2022).pdf
 
DSD.pptx
DSD.pptxDSD.pptx
DSD.pptx
 
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:
 
1. basic theories of information
1. basic theories of information1. basic theories of information
1. basic theories of information
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Part#1_Logic_Design.pptx LOGIC Circuit Course
Part#1_Logic_Design.pptx  LOGIC Circuit CoursePart#1_Logic_Design.pptx  LOGIC Circuit Course
Part#1_Logic_Design.pptx LOGIC Circuit Course
 
Conclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.pptConclusion in this titty tittle 106_1.ppt
Conclusion in this titty tittle 106_1.ppt
 
Number system
Number systemNumber system
Number system
 
DLD_Lecture_notes2.ppt
DLD_Lecture_notes2.pptDLD_Lecture_notes2.ppt
DLD_Lecture_notes2.ppt
 
LEC 1.pptx
LEC 1.pptxLEC 1.pptx
LEC 1.pptx
 
Lec0.ppt
Lec0.pptLec0.ppt
Lec0.ppt
 

Recently uploaded

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...Call girls in Ahmedabad High profile
 

Recently uploaded (20)

UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
High Profile Call Girls Dahisar Arpita 9907093804 Independent Escort Service ...
 

Digital System Design Week 1 Introduction

  • 1. Digital System Design (EEE-344) Week 1 Instructor: Umair Shafiq Khan Lecturer umairkhan@cuilahore.edu.pk Electrical and Computer Engineering Department, CUI Lahore Campus Office: Block-B, Room No. B12A Timings: 1
  • 2. About the Course Topics to Be Covered: 1. Introduction to Digital Systems 2. Combinational Logic Design 3. Sequential Logic Design – Controllers 4. Datapath Components 5. Register-Transfer Level (RTL) Design 6. Optimizations and Trandsoff 7. Programmable Logic Arrays (PAL), Programmable Arrays Logic (PLA) 8. Physical Implementation 2
  • 3. Course learning Outcomes: • CLO 1: Analyze and Design the working of advanced combinational and sequential logic based systems using the classical principals of digital logic design. • CLO 2: Design of digital systems in a hierarchical and top-down manner using register-transfer logic (RTL) approach. 3
  • 4. About the Course • Rules of Engagement • Attendance does matter, be aware! • Protection of your copy is YOUR responsibility! All matching Assignments/quiz/lab work will lose marks EQUALLY. • ONLY email or meeting in office hours • Slides will be given after the lecture via CU-Online tool or via CR ONLY • NO EMAILS for personal requests before/during/after exams. • Its all interactive. 4
  • 5. Digital System Design Chapter 1: Introduction 5 Slides to accompany the textbook Digital Design, First Edition, by Frank Vahid, John Wiley and Sons Publishers, 2007. http://www.ddvahid.com Copyright © 2007 Frank Vahid Instructors of courses requiring Vahid's Digital Design textbook (published by John Wiley and Sons) have permission to modify and use these slides for customary course-related activities, subject to keeping this copyright notice in place and unmodified. These slides may be posted as unanimated pdf versions on publicly-accessible course websites.. PowerPoint source (or pdf with animations) may not be posted to publicly-accessible websites, but may be posted for students on internal protected sites or distributed directly to students by other electronic means. Instructors may make printouts of the slides available to students for a reasonable photocopying charge, without incurring royalties. Any other use requires explicit permission. Instructors may obtain PowerPoint source or obtain special use permissions from Wiley – see http://www.ddvahid.com for information.
  • 6. Why Study Digital Design? • Look “under the hood” of computers • Solid understanding --> confidence, insight, even better programmer when aware of hardware resource issues • Electronic devices becoming digital • Enabled by shrinking and more capable chips • Enables: • Better devices: Better sound recorders, cameras, cars, cell phones, medical devices,... • New devices: Video games, ... • Known as “embedded systems” • Thousands of new devices every year • Designers needed: Potential career direction 6 1995 Portable music players 1997 Satellites 1999 Cell phones 2001 DVD players Video recorders Musical instruments 2003 Cameras TVs ??? 2005 2007 • Years shown above indicate when digital version began to dominate – (Not the first year that a digital version appeared) 1.1 Note: Slides with animation are denoted with a small red "a" near the animated items
  • 7. What Does “Digital” Mean? • Analog signal • Infinite possible values • Ex: voltage on a wire created by microphone 7 value time value time analog signal 3 4 2 1 2 digital signal • Digital signal – Finite possible values • Ex: button pressed on a keypad 0 1 2 3 4 Possible values: 1.00, 1.01, 2.0000009, ... infinite possibilities Possible values: 0, 1, 2, 3, or 4. That’s it. 1.2
  • 8. Digital Signals with Only Two Values: Binary • Binary digital signal -- only two possible values • Typically represented as 0 and 1 • One binary digit is a bit • We’ll only consider binary digital signals • Binary is popular because • Transistors, the basic digital electric component, operate using two voltages (more in Ch. 2) • Storing/transmitting one of two values is easier than three or more (e.g., loud beep or quiet beep, reflection or no reflection) 8 value time 1 0
  • 9. Example of Digitization Benefit • Analog signal (e.g., audio) may lose quality • Voltage levels not saved/copied/transmitted perfectly • Digitized version enables near- perfect save/cpy/trn. • “Sample” voltage at particular rate, save sample using bit encoding • Voltage levels still not kept perfectly • But we can distinguish 0s from 1s 9 time Volts 0 1 2 3 original signal lengthy transmission (e.g, cell phone) time 0 1 2 3 received signal How fix -- higher, lower, ? lengthy transmission (e.g, cell phone) 01 10 11 10 11 time 01 10 11 10 11 Volts digitized signal time 0 1 a2d Volts 0 1 2 3 d2a Let bit encoding be: 1 V: “01” 2 V: “10” 3 V: “11” time Can fix -- easily distinguish 0s and 1s, restore 0 1 Digitized signal not perfect re-creation, but higher sampling rate and more bits per encoding brings closer. a
  • 10. Digitized Audio: Compression Benefit • Digitized audio can be compressed • e.g., MP3s • A CD can hold about 20 songs uncompressed, but about 200 compressed • Compression also done on digitized pictures (jpeg), movies (mpeg), and more • Digitization has many other benefits too 10 0000000000 0000000000 0000001111 1111111111 00 00 10000001111 01 Example compression scheme: 00 --> 0000000000 01 --> 1111111111 1X --> X
  • 11. How Do We Encode Data as Binary for Our Digital System? • Some inputs inherently binary • Button: not pressed (0), pressed (1) • Some inputs inherently digital • Just need encoding in binary • e.g., multi-button input: encode red=001, blue=010, ... • Some inputs analog • Need analog-to-digital conversion • As done in earlier slide -- sample and encode with bits 11 0 button 1 gree n blac k blu e re d 0 0 0 re d 0 1 0 gree n blac k blu e 1 0 0 gree n blac k blu e re d temperature sensor air 0 0 1 1 0 0 0 0 33 degrees a sensors and other inputs Digital System actuators and other outputs A2D D2A analog phenomena electric signal digital data digital data electric signal digital data digital data
  • 12. How to Encode Text: ASCII, Unicode • ASCII: 7- (or 8-) bit encoding of each letter, number, or symbol • Unicode: Increasingly popular 16- bit bit encoding • Encodes characters from various world languages 12 101001 0 101001 1 101010 0 100110 0 100111 0 100010 1 011000 0 010111 0 000100 1 R S T L N E 0 . <tab > Symbo l E n codin g 111001 0 111001 1 111010 0 110110 0 110111 0 110010 1 011100 1 010000 1 010000 0 r s t l n e 9 ! <sp a ce > Symbo l E n codin g Question: What does this ASCII bit sequence represent? 1010010 1000101 1010011 1010100 R E S T
  • 13. How to Encode Numbers: Binary Numbers • Each position represents a quantity; symbol in position means how many of that quantity • Base ten (decimal) • Ten symbols: 0, 1, 2, ..., 8, and 9 • More than 9 -- next position • So each position power of 10 • Nothing special about base 10 -- used because we have 10 fingers • Base two (binary) • Two symbols: 0 and 1 • More than 1 -- next position • So each position power of 2 13 24 23 22 1 0 1 21 20 1 0 4 1 0 3 1 0 2 5 2 3 1 0 1 1 0 0 Q: How much? + = 4 1 5 + = a
  • 14. How to Encode Numbers: Binary Numbers • Working with binary numbers • In base ten, helps to know powers of 10 • one, ten, hundred, thousand, ten thousand, ... • In base two, helps to know powers of 2 • one, two, four, eight, sixteen, thirty two, sixty four, one hundred twenty eight • (Note: unlike base ten, we don’t have common names, like “thousand,” for each position in base ten -- so we use the base ten name) • Q: count up by powers of two 14 24 23 22 21 20 29 28 27 26 25 1 6 8 4 2 1 51 2 25 6 12 8 6 4 3 2 1 6 8 4 2 1 51 2 25 6 12 8 6 4 3 2 a
  • 15. Converting from Decimal to Binary Numbers: Subtraction Method (Easy for Humans) • Goal • Get the binary weights to add up to the decimal quantity • Work from left to right • (Right to left – may fill in 1s that shouldn’t have been there – try it). 15 Desired decimal number: 12 1 2 4 8 16 32 1 =32 too much 1 2 4 8 16 32 0 =16 too much 1 a 1 2 4 8 16 32 0 =8 ok, keep going 0 1 1 2 4 8 16 32 0 =8+4=12 DONE 0 1 1 1 2 4 8 16 32 0 answer 0 1 1 0 0 1 2 4 8 16 32
  • 16. Converting from Decimal to Binary Numbers: Subtraction Method (Easy for Humans) • Subtraction method • To make the job easier (especially for big numbers), we can just subtract a selected binary weight from the (remaining) quantity • Then, we have a new remaining quantity, and we start again (from the present binary position) • Stop when remaining quantity is 0 16 Remaining quantity: 12 1 2 4 8 16 32 1 32 is too much 1 2 4 8 16 32 0 16 is too much 1 a 1 2 4 8 16 32 0 12 – 8 = 4 0 1 1 2 4 8 16 32 0 4-4=0 DONE 0 1 1 1 2 4 8 16 32 0 answer 0 1 1 0 0 1 2 4 8 16 32
  • 17. Converting from Decimal to Binary Numbers: Subtraction Method Example 17 • Q: Convert the number “23” from decimal to binary 23 -16 7 A: Remaining quantity Binary Number 23 32 16 8 4 2 1 0 0 0 0 0 0 32 0 16 1 8 0 4 0 2 0 1 0 7 -4 3 4 -2 1 32 0 16 1 8 0 4 1 2 1 1 0 32 0 16 1 8 0 4 1 2 1 1 1 a 1 -1 0 Done! 23 in decimal is 10111 in binary. 32 0 16 1 8 0 4 1 2 0 1 0 8 is more than 7, can’t use
  • 18. Converting from Decimal to Binary Numbers: Division Method (Good for Computers) • Divide decimal number by 2 and insert remainder into new binary number. • Continue dividing quotient by 2 until the quotient is 0. • Example: Convert decimal number 12 to binary 18 12 divide by 2 2 6 -12 0 0 1 Decimal Number Binary Number insert remainder Continue dividing since quotient (6) is greater than 0 6 divide by 2 2 -6 0 0 1 insert remainder 0 2 3 Continue dividing since quotient (3) is greater than 0
  • 19. Converting from Decimal to Binary Numbers: Division Method (Good for Computers) • Example: Convert decimal number 12 to binary (continued) 19 3 divide by 2 2 1 Decimal Number Binary Number insert remainder Continue dividing since quotient (1) is greater than 0 0 1 0 2 1 -2 1 4 1 divide by 2 2 1 insert remainder 0 1 0 2 1 4 0 -0 1 8 Since quotient is 0, we can conclude that 12 is 1100 in binary
  • 20. Base Sixteen: Another Base Sometimes Used by Digital Designers • Nice because each position represents four base two positions • Used as compact means to write binary numbers • Known as hexadecimal, or just hex 20 1 6 4 1 6 3 1 6 2 8 A F 8 100 0 101 0 111 1 A F 1 6 1 1 6 0 000 0 000 1 001 0 001 1 010 0 010 1 011 0 011 1 0 1 2 3 4 5 6 7 hex bin a ry 100 0 100 1 101 0 101 1 110 0 110 1 111 0 111 1 8 9 A B C D E F hex bin a ry Q: Write 11110000 in hex F 0 a
  • 21. Implementing Digital Systems: Programming Microprocessors Vs. Designing Digital Circuits • Microprocessors a common choice to implement a digital system • Easy to program • Cheap (as low as $1) • Available now 21 I3 I4 I5 I6 I7 I2 I1 I0 P3 P4 P5 P6 P7 P2 P1 P0 M r o p r o c void main() { while (1) { P0 = I0 && !I1; // F = a and !b, } } 0 F b a 1 0 1 0 1 6:00 7:057:06 9:009:01 time Desired motion-at-night detector Programmed microprocessor Custom designed digital circuit 1.3
  • 22. Digital Design: When Microprocessors Aren’t Good Enough • With microprocessors so easy, cheap, and available, why design a digital circuit? • Microprocessor may be too slow • Or too big, power hungry, or costly Task Microprocessor Custom Digital Circuit Read 5 0.1 Compress 8 0.5 Store 1 0.8 22 (a) Micro- processor (Read, Compress, and Store) Memory Image Sensor (b) (c) Sample digital camera task execution times (in seconds) on a microprocessor versus a digital circuit: Q: How long for each implementation option? a 5+8+1 =14 sec .1+.5+.8 =1.4 sec .1+.5+1 =1.6 sec Good compromise Read circuit Compress circuit Memory Store circuit Image Sensor Compress circuit Microprocessor (Store) Memory Image Sensor Read circuit
  • 23. Chapter Summary • Digital systems surround us • Inside computers • Inside huge variety of other electronic devices (embedded systems) • Digital systems use 0s and 1s • Encoding analog signals to digital can provide many benefits • e.g., audio -- higher-quality storage/transmission, compression, etc. • Encoding integers as 0s and 1s: Binary numbers • Microprocessors (themselves digital) can implement many digital systems easily and inexpensively • But often not good enough -- need custom digital circuits 23