Professional Documents
Culture Documents
The Processing Unit: Review of Some Fundamental Concepts
The Processing Unit: Review of Some Fundamental Concepts
1A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
2A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Mai n Me mory
MAR MDR
Control
PC
R0
IR R1
ALU
.
.
CPU .
Rn-1
n Ge ne ral Purpos e
Re gi s te rs
3A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Operating Steps:
4A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
IR [ [PC] ]
PC [PC] + 1
5A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Instructi on
De code r Inte rnal
Proce ssor
Bus
IR
PC
Addre ss Line s
MAR
Me mory
Bus Data Line s
MDR
R0
R1
.
.
.
Rn-1
1 Y
S e le ct MUX
ALU Add A B
S ub ALU
Control :
Line s XOR Carry-in
6A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
7A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
8A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Register Transfers
Ri in
Internal
Ri Processor
Bus
Ri out
9A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Example:
R4 [R1]
Yi n
Y
1
S e le ct MUX
A B
ALU
Zin
Zout
10 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
1. R1out, Yin
3. Zout, R3in
11 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
12 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
MDRoutE MDRin
MDRinE MDRout
13 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
14 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Example:
1. MAR [R1]
5. R2 [MDR]
15 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
16 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Example:
1. R1out, MARin
3. MDRoutE, WMFC
17 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
R1 [R1] + [[R2]]
18 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
19 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
20 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
R1 [R1] + [LOC]
3. MDRout, IRin
21 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Branching
3. MDRout, IRin
22 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Example:
3. MDRout, IRin
23 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
CLK Control S te p
Clock
Coun te r
. . .
S tatus Flags
.
De code r/
IR .
Encode r
.
Con di tion Code s
. . .
Control S i gnals
24 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
25 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
CLK
Cl ock Control S te p Re se t
Counte r
. . .
S te p De code r
T1 T2 . . . Tn
INS 1
INS 2 S tatus Fl ags
. .
Instructi on
IR . . Encode r
De code r
. .
INS m Condi ti on Code s
RUN . . . END
26 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Examples:
27 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
1. T1 of INS1
2. T6 of INS1
3. T1 of INS2
4. T6 of INS2
5. T1 of INS3
6. T4 of INS3
28 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
T1
INS1
T6
INS1
T1
INS2
Zin
T6
INS2
T1
INS3
T4
INS3
29 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Simplification:
T1
T6 Zin
T4
INS3
30 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
Microprogrammed Control
WMF
MDR
Read
Selec
Selec
PCout
R1out
R2out
END
Step
PCin
Add
R1in
Zout
IRin
Yin
Zin
… …
1 0 1 1 1 0 0 0 1 0 1 1 0 0 0 0 0 0
2 1 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0
3 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0
4 0 0 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0
5 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0
6 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0
7 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1
31 A
Co mp uter Ar chi te ctur e
T he P rocessing Unit
S tarti n g
IR Addre ss
Ge ne rator
CLK PC
Microprogram
Me mory CW
32 A
Co mp uter Ar chi te ctur e