1주차 강의자료
1주차 강의자료
디지털 시스템 개요
충북대학교
최민
Overview
2
Digital System
Discrete Discrete
Inputs Information
Processing Discrete
System Outputs
System State
3
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
=>Asynchronous Sequential System
• State = Function (State, Input)
• Output = Function (State)
or Function (State, Input)
4
Digital System Example:
Count Up
Reset 0 0 1 3 5 6 4
Synchronous or Asynchronous?
5
A Digital Computer Example
Memory
Control
CPU unit Datapath
Inputs:
Outputs: CRT,
Keyboard,
LCD, modem,
mouse, modem, Input/Output speakers
microphone
Synchronous or
Asynchronous?
6
Signal
7
Signal Examples Over Time
Time
Continuous in
value & time
Analog
Digital Discrete in
value &
Asynchronous continuous in
time
Discrete in
Synchronous
value & time
8
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
9
Binary Values: Other Physical Quantities
10
Number Systems – Representation
(Number)r = (
i=n-1
Ai r )+(
i
j=-1
Aj r)
j
i=0 j=-m
(Integer Portion) + (Fraction Portion)
11
Number Systems – Examples
12
Special Powers of 2
13
Positive Powers of 2
15
Converting Decimal to Binary
▪ Method 1
• Subtract the largest power of 2 (see slide 14) that gives
a positive remainder and record the power.
• Repeat, subtracting from the prior remainder and
recording the power, until the remainder is zero.
• Place 1’s in the positions in the binary result
corresponding to the powers recorded; in all other
positions place 0’s.
▪ Example: Convert 62510 to N2
16
Commonly Occurring Bases
17
Numbers in Different Bases
19
Octal to Hexadecimal via Binary
20
Binary Numbers and Binary Coding
▪ Flexibility of representation
• Within constraints below, can assign any binary
combination (called a code word) to any data as long
as data is uniquely encoded.
▪ Information Types
• Numeric
▪ Must represent range of data needed
▪ Very desirable to represent data such that simple,
straightforward computation for common arithmetic
operations permitted
▪ Tight relation to binary numbers
• Non-numeric
▪ Greater flexibility since arithmetic operations not applied.
▪ Not tied to binary numbers
21
Non-numeric Binary Codes
22
Number of Bits Required
▪ There are over 8,000 ways that you can chose 10 elements
from the 16 binary numbers of 4 bits. A few are useful:
24
Binary Coded Decimal (BCD)
25
Excess 3 Code and 8, 4, –2, –1 Code
27
Single Bit Binary Addition with Carry
Carry in (Z) of 1: Z 1 1 1 1
X 0 0 1 1
+Y +0 +1 +0 +1
CS 01 10 10 11
28
Binary Multiplication
30
4-Bit Parity Code Example