Unit1 Topic1 Digital Logic Introduction
Unit1 Topic1 Digital Logic Introduction
Introduction
DIGITAL COMPUTER SYSTEMS
Takes a set of discrete information inputs and
discrete internal information (system state) and
generates a set of discrete information outputs.
Discrete Discrete
Inputs Information
Processing Discrete
System Outputs
System State
DIGITAL COMPUTER SYSTEMS
Digital systems consider discrete amounts of
data.
Examples
26 letters in the alphabet
10 decimal digits
Larger quantities can be built from discrete
values:
Words made of letters
Numbers made of decimal digits (e.g. 239875.32)
Computers operate on binary values (0 and 1)
Easy to represent binary values electrically
Voltages and currents.
Can be implemented using circuits
Create the building blocks of modern computers
TYPES OF DIGITAL SYSTEMS
No state present
Combinational Logic System
Output = Function(Input)
State present
State updated at discrete times
=> Synchronous Sequential System
State updated at any time
• Time
Continuous
•Analog in value &
time
•Digital Discrete in
value &
• Asynchronou continuous
s in time
Discrete in
value & time
• Synchronou
COMMONLY OCCURRING BASES
Name Radix Digits
Binary 2 0,1
Octal 8 0,1,2,3,4,5,6,7
Decimal 10 0,1,2,3,4,5,6,7,8,9
Hexadecimal 16 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
The six letters (in addition to the 10
integers) in hexadecimal represent:
°
°
°
Octal(base 8)
Hexadecimal
(base16)
13/2 = 6 + ½ a0 = 1
6/2 = 3 + 0 a1 = 0
3/2 = 1 + ½ a2 = 1
1/2 = 0 + ½ a3 = 1
Answer (13)10 = (a3 a2 a1 a0)2 = (1101)2
Method 2
To convert from one base to another:
• respective powers of r.
• From the prior conversion of46.687510
175/8 = 21 + 7/8 a0 = 7
21/8 = 2 + 5/8 a1 = 5
2/8 = 0 + 2/8 a2 = 2
0.3125 x 8 = 2 + 5 a-1 = 2
0.5000 x 8 = 4 + 0 a-2 = 4
3 A 9 F
° Conversion is easy!
Determine 4-bit value for each hex digit
° 4
Note that there are 2 = 16 different values of four bits
° Easier to read and write in hexadecimal.
° Representations are equivalent!
3 A 9 F