DLD - Lecture
DLD - Lecture
Lecture 01
Digital System
Discrete Discrete
Inputs Information
Processing Discrete
System Outputs
System State
A Digital Computer Example
Memory
Control
CPU unit Datapath
Inputs: Outputs:
Keyboard, CRT, LCD,
Input/Output
mouse, modem,
modem, speakers
microphone
Analogue Quantities
Continuous Quantity
• Intensity of Light
• Temperature
• Velocity
45
40
35
30
temperature 0C
25
20
15
10
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
time
Digital Values
45
42 41
40
37
35 34 35
30
temperature 0C
29
25 25 25
23 22
20
18
15
10
7
5 4
1 2
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
time
Digital Representation
45
42 41
40
37
35 34 35
30
temperature 0C
29
25 25 25
23 22
20
18
15
10
7
5 4
1 2
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
samples
45
40
35
30
temperature 0C
25
20
15
10
0
1 3 5 7 9 11 13 15
samples
• Analogue Systems
• deal with electronic signals or voltages that are
continuous and represent continuous quantities
• e.g. continuous temperature of 39 0C into 39 mVs
and 42.75 0C into 42.75 mVs.
• Digital Systems
• deal with discrete electronic signals or voltages
that represent discrete or digital values
• Representing quantities in Digital Systems
• Do the Digital systems represent discrete values in
terms of voltages?
Representing Digital Values
39 0C ? Digital 39mV
System
8
b2
b3
b4
b1
1mV = 1
0
0
GND
Vcc1
a2
a3
a4
a1
1
4
6.25 x 1015 V !!
6.25 x 1018 ?
Time
Continuous in
value & time
Analog
Digital Discrete in
value &
Asynchronous continuous in
time
Discrete in
Synchronous value & time
Signal Example – Physical Quantity:
Voltage
OUTPUT INPUT
5.0
HIGH HIGH
4.0
3.0
Threshold
2.0
Region
1.0
LOW LOW
0.0
Volts
Binary Number System
• Binary Numbers
• allows only two numbers 0 and 1
• The Binary digit is called a bit
• Representing Multiple Values
• a combination of binary bits is used
• 2 bits allows 4 different values to be represented
• A temp of 39 is represented by a combination of six
bits 100111
• Combination of 0v & 5v
• The number 39 is represented in a digital system by a
combination of voltage levels 5, 0, 0, 5, 5 and 5 volts
Merits of Digital Systems
• Numbers
• perform arithmetic operations on the numbers
• Text
• perform editing operations on text
• Formula and Equations
• mathematical and scientific formulas
• Drawings and Pictures
• Sound and Music
• All this diverse types of information is
represented in the form of binary numbers
Logic Gates
• Building Blocks
• AND, OR and NOT Gates
• NAND, NOR, XOR and XNOR Gates
• Integrated Circuits (ICs)
• Gates are available in the form of Integrated Circuits
(ICs)
• Gates take one or more inputs and produce one
output.
• Input/output are (0/1) bits (Low/High voltage)
Logic Gate Symbol and ICs
13
12
11
10
6
1
3
Combinational Circuits
Sum
Carry
Functional Devices
• Memory Element
• Current & Previous State
• Flip-Flops
• Counters & Registers
Block Diagram of a Sequential Circuit
Input 1
a1 b1
5
Output
Combinational
2 6
a2 b2
Logic Circuit
1 5
a1 b1
Memory Element
Programmable Logic Devices (PLDs)
• Configurable Hardware
• Combinational Circuits
• Sequential Circuits
• Low chip count
• Lower Cost
• Short development time
Memory
• Storage
• RAM (Random Access Memory)
• Read-Write
• Volatile
• ROM (Read-Only Memory)
• Read-Only
• Non-Volatile
A/D & D/A Converters
x1
*/*
u1
Digital x1
*/*
u1
Controller
A/D D/A
Converter Converter
Thermocouple
Reaction
Vessel
Heater
Control
Abstraction Layers in Computer Systems
Design
Algorithms
Programming Languages
Operating Systems
Instruction Set Architecture
Microarchitecture
Register Transfers
Logic Gates
Transistor Circuits
Summary
• Continuous Signals
• Digital Representation in Binary
• Information Processing
• Logic Gates
Summary