CISC Design
CISC Design
Design
Computer
& T e s t
Laboratory
Design
Computer
&
T e Laboratory s
Processor Architecture
PI
Controlle r
From memory
Datapath
Control Signals
Status Signals
PO
To memory
Design
Computer
&
T e Laboratory s
I t Instruction ti Set S t
Instruction Set Should be complete
One should O h ld be b able bl to t construct t t a machine hi level l l program to t evaluate any function
Should be efficient
Frequently required functions can be completed quickly using relatively few instructions
Should be regular
Should contain expected opcodes and addressing modes
T e Laboratory s
I t Instruction ti Set S t
Instruction Format
Op-code Op code Operands
T e Laboratory s
Micro-coded Implementation
Clock-Phase Generator Control Store Bus Controller State Sequencer Control Word Decoder Controller
Program Counter
Instruction Decoder
Registers
R0 R1 Rn Shifter ALU
Datapath
Design Computer &
T e Laboratory s
PLA Implementation I l t ti
Clock-Phase Generator Bus Controller Instruction Decoder Control Word Decoder Controller
Program Counter
PLA
Registers
R0 R1 Rn Shifter ALU
Datapath
Design Computer &
T e Laboratory s
Random Logic
Controller
Program Counter
Registers
R0 R1 Rn Shifter ALU
Datapath
Design Computer &
T e Laboratory s
Micro-coded Implementation
Clock-Phase Generator
Control Store Instruction Sequencer
Bus Controller
Instruction Decoder
Instruction P f t h Prefetch Register
Data Reg.
Datapath
Design
Computer
&
T e Laboratory s
I t Instruction ti
ADD R1, R1 D2(B2) 5A
0 8
R1
12
B2
16
D2
31
The second operand is added in the first The sum is placed in the first operand location The operand and the sum are treated as 16-bit signed binary integers The first operand is in the register specified by the R1 field The second operand is in the memory address is calculated by adding the displacement specified by the D2 field to the content of the base register specified by the B2 field
Design Computer &
10
T e Laboratory s
E Execution ti St Steps
Steps for ADD instruction Execution 1. Fetch the first half word 2. Find ADD control word sequence 3. Fetch the remaining g instruction word 4. Calculate the operand address 5 Fetch the operand 5. 6. Add 7. Store the result
Design Computer &
11
T e Laboratory s
E Execution ti St Steps
1 Fetch 1. F t h the th remaining i i instruction i t ti word d 2. Calculate the operand address 3 Fetch the operand 3. 4. Add 5 Store the result 5. 6. Update the program counter 7 Fetch the first half word for the next instruction 7. 8. Find the address of the next instructions control word sequence 9. Branch to the next instructions control word
Design Computer &
12
T e Laboratory s
E Execution ti St Steps
1 Fetch the remaining instruction word 1.
One state to second half of the ADD instruction
4. Add
One state to add the operands
13
T e Laboratory s
E Execution ti St Steps
1 Update 1. U d t the th program counter t
One state to increament PC One state to save the incremented value
14
T e Laboratory s
Control Store
IR Decoder
PC
Datapath
R0
R1
Rn
Shifter
ALU
Data g Reg.
Design
Computer
&
15
T e Laboratory s
Thank You
Design Computer &
16
T e Laboratory s