Académique Documents
Professionnel Documents
Culture Documents
Lecture 1
Lecture 1
What is digital logic? Digital Hardware Implementing a Digital System Moores Law Design Process of Digital Hardware
Digital signal
Discrete Signal that can have one of a finite set of possible values
Analog signal Continuous Signal that can have one of an infinite number of possible values
Temperature Infinite possibilities
Digital system
System that takes in digital inputs and generates digital outputs Example: Computer
Digital inputs (letters and numbers from keyboard) Digital output (new numbers or letters stored to a file or display on screen) Cell phones, automobile control engines, TV set top boxes, musical instruments, DVD players, digital cameras, finger print recognition,
Digital circuits
Typically represented as 0 and 1 One binary digit is a - bit Well only consider binary digital signals
Digital circuit
Digital system
Many digital systems convert analog signals to digital signals Many applications changing over to digital implementations (cassette tapes -> MP3s, VHS -> DVD, )
DVD Video Musical Satellites players recorders Portable instruments music players Cell phones Cameras TVs ??? 1995 1997 1999 2001 2003 2005 2007
button
red
blue
green
black
0 0 0
red
blue
green
black
0 0 1
Outputs
Outputs
red blue green black
0 1 0
digital data
digital data
ASCII: 7- (or 8-) bit encoding of each letter, number, or symbol Unicode: Increasingly popular 16-bit bit encoding
Symbol R S T L N E 0
En coding 1010010 1010011 1010100 1001100 1001110 1000101 0110000 0101110 0001001
S ymbol r s t l n e 9
En coding 1110010 1110011 1110100 1101100 1101110 1100101 0111001 0100001 0100000
.
<tab>
!
<spa ce>
Question: What does this ASCII bit sequence represent? 1010010 1000101 1010011 1010100
R E S
10
Each position represents a quantity; symbol in position means how many of that quantity
Octal, Hexadecimal
11
Volts
3 2 1 0
3 2
Volts
Voltage levels not saved/copied/transmitted perfectly Digitized version enables nearperfect 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
original signal
time
01 10 11 10 11
a2d
1 0 time
01 10 11 10 11
digitized signal
d2a
3 Volts 2 1 0 time
Digitized signal not perfect re-creation, but higher sampling rate and more bits per encoding brings closer.
12
e.g., MP3s 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
00 00 10000001111 01
13
Digital Hardware
Standard Chips
Standard Chips
Commonly used circuits Small amount of circuitry Performs simple function ICs interconnected to realize larger functionality
Description Quad 2-Input NAND Gate Quad 2-Input NOR Gate Quad 2-Input OR Gate BCD to 7-Segment Decoder/Driver 4-Bit Magnitude Comparator 4-Bit Binary Ripple Counter D-Type Flip-Flop with Reset
7493 74273
14
Digital Hardware
Programmable Logic Devices (PLDs)
Very general underlying structure that can be configured to perform a variety of tasks Most can be programmed multiple times Programmed by the end user rather than when manufactured Common type of PLD -- FPGAs
Digital Hardware
Custom-Designed Chips
Custom-Designed Chips
Created specifically to implement a certain task Very expensive millions of dollars Time consuming - months
Custom IC Design
Silicon Wafer
16
Digital Hardware
Microprocessors
Microprocessor
Programmable digital device End user writes a program/software to specify its functionality
Silicon Wafer
Individual IC (die)
Pentium processor
Digital Hardware
Many other choices exist
Variety of processors exist ASICs (Application-Specific Integrated Circuits) CPLD (Complex Programmable Logic Devices) PLA (Programmable Logic Arrays) GAL (Generic Array Logic) System-on-a-chip
8051 ($1-10)
PIC ($1-5)
Pentium (>$100)
18
Build system using microprocessor Build system using a custom digital circuit
Programmed microprocessor
19
microprocessor a f
lamp
b light sensor
20
b light sensor
custom circuit
21
When analyzing needs for a particular system: Software may be too slow May be too much circuitry than needed Can be costly for simple circuits Power hungry
22
Microprocessor 5 8 1
23
Design Partitioning
Deciding which tasks to implement on the microprocessor and which to implement as a custom digital circuit
Digital camera implemented with: (a) a microprocessor (b) custom circuits (c) a combination of custom circuits and a microprocessor
24
Memory
Store circuit
Memory
Microprocessor (Store)
(a) a microprocessor
Good compromise
Sample digital camera task execution times (in seconds) on a microprocessor versus a digital circuit
Task Read Compress Store 5 8 1 Microprocessor Custom Digital Circuit 0.1 0.5 0.8
25
Moores Law
The prediction
Gordon Moore: co-founder of Intel. Predicted that number of transistors per chip would grow exponentially (double every 18 months). Exponential improvement in technology is a natural trend: steam engines, dynamos, automobiles.
26
Moores Law
The trend follows the prediction
Courtesy of Intel
27
Moores Law
Example
To perform function X, we require this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area 18 months later, this much area
This trend observed in 1970s continues today. Expected to continue for several more decades
28
Digital Design
Shrinking area requirement
~20 years
29
Moores Law
Supercomputer in a pencil tip
Cray 1A Supercomputer
Cray 1A
Fastest computer in the world in 1976 Cost - $10 million dollars (1976 $s) Used for atmospheric research, physical simulations, etc. ~1 million transistors
1 cm
30
Moores Law
Enabling advances in technology
Smart Dust
Millimeter scale Includes sensors, microprocessors, wireless communication, power supply Costs dollars, even just cents, each Electronically tracked and instructed to deliver medicine to specific location Swallowing the pill and the instrument Pump controls amount of medicine based on body temperature and pH
http://www.templehealth.org/capsule/a pril_22_05/april2205_news03.htm
Courtesy of Joe Kahn
Smart Pills
Image: "Smart dust" particles self-assembled on drops of oil in water. The microscopic particles are nanostructured flakes of porous silicon that spontaneously assemble, orient, sense, and report on their local environment. UCSD, 2003.
31
Moores Law
Same size, more functionality
~20 years
Available today
Pentium 4 Extreme Edition (178 million) Xilinx FPGA (1 billion) Geforce 6800 Ultra (222 million)
32
Moores Law
Lots of transistors need help
Available today
Pentium 4 Extreme Edition (178 million) Xilinx FPGA (1 billion) Geforce 6800 Ultra (222 million)
33
Iterative process
Design concept
Initial design
Simulation
Redesign
No
34
Design concept
Digital hardware products usually involve multiple chips or components Digital camera is a simplified example
Design one block
Partition B Design one block C Design interconnection between blocks Functional simulation of complete system No D
No
35
Summary
Inside computers Inside huge variety of other electronic devices (embedded systems) Encoding analog signals to digital can provide many benefits
Microprocessors (themselves digital) can implement many digital systems easily and inexpensively
36