Professional Documents
Culture Documents
CISC
Outline
How to improve CPU time? Complex Instruction Set Computer (CISC) - Historical Perspective Complex Instruction Set Computer (CISC) - Characteristics Reduced Instruction Set Computer (RISC) - Historical Perspective Reduced Instruction Set Computer (CISC) Characteristics RISC vs. CISC
Fall 2010
Note, this unit will be covered in one week. In case you finish it earlier, then you have the following options:
1) 2) Take the early test and start CS301.module3 Study the supplement module (supplement CS301.module2) 3) Act as a helper to help other students in studying CS301.module2 Note, options 2 and 3 have extra credits as noted in course outline. Fall 2010
3
Enforcement of background
Review Module xx
Remedial action
Current Module
Glossary of topics No
At the end give a test, record the score, and impose remedial action if not successful
Familiar with the topics? Yes Take Test Pass? Yes Options No
Lead a group of students in this module (extra credits)? Study next module? Study more advanced related topics (extra credits)?
Fall 2010
Fall 2010
Question
With respect to our earlier definition of CPU time, discuss how the performance can be improved?
T = Ic * CPI *X =
7 (CPIi Ii) i =1
X
Fall 2010
In response to this question, the CPU time can be reduced either by reducing the IC and/or CPI. Note the performance improvement due to the advances in technology to reduce X is beyond the scope of this discussion.
Fall 2010
Fall 2010
Fall 2010
Fall 2010
10
11
Fall 2010
12
Fall 2010
14
Fall 2010
16
Fall 2010
17
18
16 B C A
72 bits 96 bits 168 bits
20
Fall 2010
21
Fall 2010
22
Fall 2010
23
Year Number of Instructions Control Memory Size Instruction Size Technology Execution Model Cache Size
1973 1978 208 303 420 Kbits 480 Kbits 16-48 16-456 ECL MSI TTL MSI Register-Memory, Register-Memory, Memory-Memory, Memory-Memory, Register-Register Register-Register 64 Kbits 64 Kbits
Fall 2010
24
Fall 2010
25
Fall 2010
26
Fall 2010
27
28
Fall 2010
29
As a result some computer architects got motivated to reevaluate the adapted architectural design principles.
Fall 2010
30
Summary
CISC and RISC
Motivation for CISC CISC characteristics Transition from CISC to RISC
RISC
RISC characteristics
Fall 2010
31
Fall 2010
34
Fall 2010
35
Fall 2010
36
i+1
IF ID OF
OE OS
i+2
IF
ID
OF OE OS
Fall 2010
37
i+1
IF i+2
ID IF
OF
OE
OS
ID
OF
OE
OS
Fall 2010
38
Fall 2010
39
Bubble
ID +1
Fall 2010
40
Bubble
IF
ID
OF
OE
OS
Fall 2010
41
The branch instruction is not data dependent on the ADD at address 101, so switching the JMP and ADD results an equivalent result.
Fall 2010
43
Fall 2010
44
Fall 2010
45
CISC Characteristics
Instruction set usually larger than 100, Number of addressing modes supported is usually larger than 4, Number of instruction formats supported in usually larger than 4, Most instructions require multiple cycles for execution,
Fall 2010
46
CISC Characteristics
Support of memory-to-memory model of execution, Existence of special purpose registers, Micro-programmed control unit, and Machine instructions at a relatively high level, which is close to the level of high level language statements.
Fall 2010
47
RISC Characteristics
Most instructions require single cycle for execution, Memory is accessed just through LOAD and STORE instructions, Hardwired control unit, Supports relatively few instruction formats and addressing modes,
Fall 2010
48
RISC Characteristics
Fixed instruction length format, Highly pipelined instruction cycle, Large number of on chip registers, Instruction set is targeted for a specific application, and Use of co-processor for complex operations requiring hardware support.
Fall 2010
49
Fall 2010
51
Fall 2010
52
Fall 2010
53
Questions
True or False: shorter length instructions imply faster processor (why)? Length of the operation code affects the length of the instructions. Define two schemes which allows one to reduce the length of the op-code. Name and explain different factors which affect the length and format of an instruction.
Fall 2010
54
Problem
Within the scope of RISC, use delay branch technique to reduce pipeline penalties (instruction format op-code, destination, source1, source2): Justify your answer. Assuming new value of PC is determined in ID stage and instructions in the block are independent of R4, R5, and R6, then we have:
Fall 2010
55
Sequence of Instructions
Sequence of Instructions
Problem
ADD IF
Before
R 1, R 2, R 3 R 2 = 0 Then IF ADD
After
R 2 = 0 Then R 1, R 2 , R 3
SUB ADD IF
R 4, R 5, R 6 R 1, R 2, R 3 R 1 = 0 Then
ADD IF SUB
R 1, R 2 , R 3 R 1 = 0 Then R 4, R 5 , R 6
ADD IF SUB
R 1, R 2, R 3 R 1 = 0 Then R 4, R 5, R 6
ADD IF SUB
R 1, R 2 , R 3 R 1 = 0 Then R 4, R 5 , R 6
Fall 2010
56