Morris Mano ch01
Morris Mano ch01
Morris Mano ch01
guiseok@yahoo.com
Class Overview
1-2
First Course in Computer Hardware Learn how a computer actually works Build the Mano Machine Learn one computer in detail, others are mastered easily. Homework:
Solve the even number of problems Due at the beginning of the next class
Class Participation(10%)
8 Student Types
1-3
Insecure: 25 % Silent: 20 % Independent: 12 % Friendly: 11 % Obedient: 10 % Heroic: 9 % Critic: 9 % Unmotivated: 4 % - Michigan State University
1-4
Application S/W
ROM BIOS
Computer H/W
1-5
continued
Computer Hardware
CPU Memory Program Memory(ROM) Data Memory(RAM) I/O Device Interface: 8251 SIO, 8255 PIO,
6845 CRTC, 8272 FDC, 8237 DMAC, 8279 KDI
Memory
CPU
Input Device
Interface
Output Device
1-6
continued
structure and functional behavior, as distinct from the organization of the data flows and controls, the logic design, and the physical implementation.
1-7
ISA?
Instructions, Addressing modes, Instruction and data formats, Register
Machine Organization?
CPU(Control, Data path), Memory, Input, Output
1-8
Physical Quantity
V, A, F,
0 : 0.5
1: 3
Gate
The manipulation of binary information is done by logic circuit called
gate.
George Boole
Born: 2 Nov 1815 in Lincoln, Lincolnshire, England Died: 8 Dec 1864 in Ballintemple, County Cork, Ireland
1-9
Boolean Algebra
Deals with binary variable(A, B, x, y: T/F or 1/0) + logic
2n Combination
Variable n = 3
1-10
Convenient Tools
Truth table : relationship between binary variables
1-11
[]
F= AB + CD + AB + CD
[]
F= ABC + ABC + AC
Fig. 1-6(a)
= x + x (let x= AB + CD) =x = AB + CD
(a) OR-invert
(b) invert-OR
(a) NAND-invert
Computer System Architecture
(b) invert-NAND
Chap. 1 Digital Logic Circuits Dept. of Info. Of Computer.
1-12
Karnaugh Map(K-Map)
Map method for simplifying Boolean expressions
Minterm / Maxterm
Minterm : n variables product ( x=1, x=0) Maxterm : n variables sum (x=0, x=1)
2 variables example
x 0 0 1 1 y 0 1 0 1 Minterm x'y' m0 x'y x y' xy m1 m2 m3 Maxterm x+y M0 x + y' x'+ y x'+ y' M1 M2 M3
F = xy + xy
m0 + m1 + m2 + m3
M0 M1 M2 M3
(1,3) (0,2)
Computer System Architecture
m1
m3
( m1 +
m3 ) M2 )
Dept. of Info. Of Computer.
(Complement = M0
1-13
Map
2 variables
B
3 variables
B
4 variables
C
0
A
1 3
A
0 4
1 5
C
3 7
2 6
A
0 4 8
1 5 9
D
3 7
2 6
B
12 13 15 14 11 10
5 variables
0 8
A
1 9
4
B
11 10 14 15 13 12
24 25 27 26 30 31 29 28 16 17 19 18 22 23 21 20
E D F
1-14
[] F= x + yz
(1) Truth Table
x 0 0 0 0 1 1 1 1 y 0 0 1 1 0 0 1 1 z 0 1 0 1 0 1 0 1 F 0 1 0 0 1 1 1 1
Minterm
m0 m1 m2 m3 m4 m5 m6 m7
z
x
F= x + yz
1-15
Adjacent Square
Number of square = 2n (2, 4, 8, .) The squares at the extreme ends of the
0 4 1 5 3 7 2 6
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
0
0 4 1 5 3 7 2
1 5 13 9
3 7 15 11
2 6 14 10
be considered to be adjacent
Groups of combined adjacent squares
4
6
12 8
0 4
1 5
3 7
2 6
1-16
[] F ( A, B, C ) (3,4,6,7)
0 1 5
C
3 7
B
2 6
F=AC + BC
[] F ( A, B, C ) (0,2,4,5,6)
F=C + AB
A
0 4
1 5
C
3 7
C
2 6
[] F ( A, B, C, D) (0,1,2,6,8,9,10)
F=C + AB
A
0 4 12 8
1 5 13 9
D
3 7 15 11
C
2 6 14 10
B
0 4 12 8
1 5 13 9
3 7 15 11
2 6 14 10
B
Product of Sum
Chap. 1 Digital Logic Circuits
1-17
NAND Implementation
Sum of Product : F=BD + BC + ACD
B D C A D
NOR Implementation
Product of Sum : F=(A + B)(C + D)(B + D)
A B C D D
B
0 1 3 2 6
(1, 3, 5)
A
X X
(0, 1, 2, 3, 6)
Chap. 1 Digital Logic Circuits
1-18
Combinational Circuits
A connected arrangement of logic gates with a set of inputs and outputs Fig. 1-15 Block diagram of a combinational circuit
...
in
...
i0 i1
f0 f1 fm
Analysis
Logic circuits diagram
Design(Analysis )
1. The Problem is stated
1-19
of three input bit(Carry considered) 2. 3 Input(x, y, z), 2 Output(S: sum, C: carry) 3. Truth Table 4. Simplification
x 0 0 0 0 1 1 1 1 Input y z 0 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 Output C S 0 0 0 1 0 1 1 0 0 1 1 0 1 0 1 1
0
x
1 5
z
3 7
2 6
x
0 4
1 5
z
3 7
2 6
S=xyz + xyz + xyz + xyz = z(xy + xy) + z(xy + xy) = z(x y) + z(x y) =ab + ab (let a=z, b=x y) =x y z
s
Computer System Architecture
1-6 Flip-Flops
1-20
Flip-Flop
The storage elements employed in clocked sequential circuit A binary cell capable of storing one bit of information
SR(Set/Reset) F/F
S
SET
D(Data) F/F
D
SET
Q Q
CLR
S 0 0 1 1
R 0 1 0 1
Q Q
Q(t) 0 1 ?
D 0 1
0 1
CLR
JK(Jack/King) F/F
J
SET
T(Toggle) F/F
T
SET
Q Q
CLR
J 0 0 1 1
K 0 1 0 1
Q Q
T 0 1
CLR
1-21
Edge-Triggered F/F
State Change : Clock Pulse Rising Edge(positive-edge transition) Falling Edge(negative-edge transition)
Setup time(20ns) minimum time that D input must remain at constant value before the transition. Hold time(5ns) minimum time that D input must not change after the positive transition. Propagation delay(max 50ns) time between the clock input and the response in Q gate 2-20 ns setup hold time F/F gate . Master-Slave F/F 2 F/F (Slave Master F/F) negative-edge transition : Race
ts
th
1-22
Race
- Setup time > Propagation delay - 0 1 Unstable - Edge triggered F/F Master/Slave F/F 7470 : J-K Edge triggered F/F 7471 : J-K Master/Slave F/F
Excitation Table
Required input combinations for a given change of state
Present State Next State
SR F/F Q(t) Q(t+1) S 0 0 0 0 1 0 1 0 1 1 1 X R X 1 0 1 JK F/F Q(t) Q(t+1) J 0 0 0 0 1 1 1 0 X 1 1 X K X X 1 0 D F/F Q(t) Q(t+1) 0 0 0 1 1 0 1 1 D 0 1 0 1 T F/F Q(t) Q(t+1) 0 0 0 1 1 0 1 1 T 0 1 1 0
Dont Care
1 : Set to 1 0 : Complement
1 : Clear to 0 0 : No change
1-23
A sequential circuit is an interconnection of F/F and Gate Clocked synchronous sequential circuit Combinational Circuit = Gate
Sequential Circuit = Gate + F/F
Input
Output
Clock
DA
SET
Q Q
A A
CLR
DB
Clock
SET
Q Q
B B
circuit
CLR
y
Chap. 1 Digital Logic Circuits Dept. of Info. Of Computer.
1-24
State Table
Input x 0 1 0 1 0 1 0 1
Input Equ.
Next State Output
State Diagram
Graphical representation of state
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
Ax 0 0 0 0 0 1 0 1
Bx 0 0 0 1 0 0 0 1
DA 0 0 0 1 0 1 0 1
DB 0 1 0 1 0 0 0 0
A 0 0 0 1 0 1 0 1
B 0 1 0 1 0 0 0 0
y 0 0 1 0 1 0 1 0
K X X 1 0
0/1 1/0
1/0
01
1/0
11
x=1 1/01
x=1
State Diagram:
01 x=0
x=1
11 x=0
A 0 0 0 0 1 1 1 1
B 0 0 1 1 0 0 1 1
JA 0 0 0 1 x x x x
KA x x x x 0 0 0 1
JB 0 1 x x 0 1 x x
KB x x 0 1 x x 0 1
1-25
Logic Diagram
x
SET
JA
A
0 4
1 5
1 X
3 7
KA
A
Q Q
0 4
1 5
X 1
3 7
2 6
CLR
JA=Bx
B
KA=Bx
B
2 1 3
JB
A
0 4
1 X X 5 7 6 1 X X
x
KB
A
X X 4 5 X X
x
1 1
3 7
2 6
SET
Q Q
CLR
JB=x
KA=x
Clock
1. The Problem is stated 2. I/O variables are assigned 3. Truth table(I/O relation) 4. Simplified Boolean Function 5. Logic circuit diagram