Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Computer
Input (mouse, keyboard, )
Output (display, printer, )
Memory
Datapath
Input
Output
Memory
1001010010110000
0010100101010001
1111011101100110
1001010010110000
1001010010110000
1001010010110000
CPU Operations
A CISC PROCESSOR
Larger instructions with variable formats
(16-64 bits/ instruction)
Instruction Cycle
Two steps:
Fetch
Execute
ALU
REG SET
CLU
CONTROL
LINES
F1
F2
MUX
SEL LINES
R
A TYPICAL INSTRUCTION
- ADD R1, D2(B2)
(R1, B2 - Registers ), D2- displacement
(R1) + (Memory) (R1) ; (B2) + D2 Memory
5A
0
R1
B2
D2
15 16
31
- Add
- Store the result
Instruction Decoder
IR
PC
MAR
Address Bus
Data Bus
CPU Bus
MDR
R0
Rn-1
Clear Y
Control Lines
Y
A
ALU
Z
Register Transfer:
R2 R1
To enable data transfer between various
Blocks connected to common bus provide
Input output gating.
Rin
Rout
Rin
R
Control Signals for
R1
Rout
R2
R 2OUT , R 1in
Example Microinstructions:
Open/.Close a gate from Reg to a bus
Instruction Decoder
IR
PC
MAR
Address Bus
Data Bus
CPU Bus
MDR
R0
Rn-1
Clear Y
Control Lines
Y
A
ALU
Z
Rin
R
Control Signals for
R1
Rout
Yin
ALU
Zin
Z
Zout
R2
R 2OUT , R 1in
Rin
i. R1out, Yin
ii. R2out, Add, Zin
Rout
Yin
ALU
Zin
Z
T1
RTL
MARPC; PC PC+1
Control Sequence
RTL
Control Sequence
T1
MARPC; PC PC+1
T2
Wait
T3
IR MDR
MDRout, IRin
- Instruction Fetch
RTL
Control Sequence
T4
MAR IR
T5
Y R1
T6
Z Y + M[MAR]
T7
R1 Z
Step
RTL
Control Sequence
T1
T2
Wait
T3
IR MDR
MDRout, IRin
T4
Y PC
PCout, Yin
T5
Z Y + [x of IR]
T6
PC Z