Computer Organization: Performance, Risc and Cisc
Computer Organization: Performance, Risc and Cisc
Performance,
RISC and CISC
1
Computer Organization
{
Glossary of prerequisite topics
No Review
Enforcement Familiar with the topics? CS3889.module6.background
of background Yes
Take Test
At the end give a
No test, record the score,
Pass? Remedial action
{
and impose remedial
Yes
action if not
Glossary of topics successful
No
Familiar with the topics? Take the Module
Yes
Current Module Take Test
No
Pass?
Yes
Options
Performance Metrics
Response Time (Execution time, Latency) — The time
elapse between the start and the completion of an event.
4
Computer Organization
Performance Metrics
Note execution time is the reciprocal of
performance — lower execution time implies
higher performance.
5
Computer Organization
Performance Metrics
A system (X) is faster than (Y), if for a
given task, the response time on X is lower
than on Y.
6
Computer Organization
7
Computer Organization
Performance Metrics
Average Execution time — Equal probability of
running programs in the workload
n
1
∑
n i =1 Timei
8
Computer Organization
Performance Metrics
Weighted Execution time — unequal mix of
programs in the workload
where weighti is the frequency of the ith gram
in the workload.
n
∑Weight ×Time
i =1
i i
n
Note
∑Weight
i =1
i
=1
9
Computer Organization
Performance Metrics
Million Instructions Per Second — MIPS is
another performance measure to be used to
evaluate computers.
I
C
MIPS =
6
Execution time * 10
10
Computer Organization
Performance Metrics
Million Floating Point Operations Per Second
— MFLOPS
is another performance measure to be used to
evaluate computers.
Number of floating point operations in a program
MFLOPS =
Execution time * 106
11
Computer Organization
Performance Metrics
Response Time (Elapse time) — The latency to
complete a task, including disk accesses,
memory accesses, I/O activities, operating
system overhead, ...
12
Computer Organization
Performance Metrics
CPU time — The time the CPU is computing.
It is further divided into:
User CPU time — The CPU time spent in the
program,
System CPU time — The CPU time spent in
operating system performing tasks requested by the
program.
13
Computer Organization
Performance Metrics
The processor of today's computer is driven by
a clock with a constant cycle time (τ).
The inverse of the cycle time is the clock rate
(f).
The size of a program is determined by its
instruction count (Ic) — number of the machine
instructions to be executed.
14
Computer Organization
Performance Metrics
Let us define the average number of clock
cycle per instruction (CPI) as:
15
Computer Organization
Performance Metrics
For a given instruction set, one can calculate the
CPI over all instruction types, if the frequencies of
the appearance of the instructions in the program is
known.
CPI depends on the organization/architecture and
the instruction set of the machine.
Clock rate depends on the technology and
organization/architecture of the machine.
Instruction count depends on the instruction set of
the machine and compiler technology.
16
Computer Organization
Performance Metrics
CPU = CPU * Clock
Ti me Clock cycl es Cycle tim e
CPU
Clock cycl es
CPU =
Ti me Clock
Rate
17
Computer Organization
18
Computer Organization
10 =
CPUClockCycle A
= 4000 *10
6
CPUClockCycle A
1.2 * CPUClockCycle
CPUTimeB = A
ClockRate B
6
1.2 * 4000 *10
ClockRate = = 800 MHz
B 6
19
Computer Organization
20
Computer Organization
21
Computer Organization
23
Computer Organization
Performance Metrics
The execution of an instruction requires
going through the instruction cycle. This
involves the instruction fetch, decode,
operand(s) fetch, execution, and store
result(s):
24
Computer Organization
Performance Metrics
P is the number of processor cycles needed to
decode and execute the instruction, m is the
number of the memory references needed, and k
is the ratio between memory cycle time and
processor cycle time, memory latency.
25
Computer Organization
Question
With respect to our earlier definition of
CPU time, discuss how the performance can
be improved?
26
Computer Organization
27
Computer Organization
28
Computer Organization
29
Computer Organization
30
Computer Organization
31
Computer Organization
33
Computer Organization
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,
34
Computer Organization
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.
35
Computer Organization
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,
36
Computer Organization
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.
37
Computer Organization
38
Computer Organization
39
Computer Organization
40
Computer Organization
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.
41