Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Elements of an Instruction
Operation code (opcode)
Do this: ADD, SUB, MPY, DIV, LOAD, STOR
Source operand reference
To this: (address of) argument of op, e.g.
register, memory location
Result operand reference
Put the result here (as above)
Next instruction reference
When you have done that, do this: BR
Simple Instruction
Representation
Binary Representation:
Symbolic representation
Add, Sub, Ld
e.g. ADD x, y
What is an Instruction Set?
The complete collection of instructions that are
understood by a CPU for example:
Software
Interface
between
Software and
Hardware
Hardware
Some Example ISAs
Instruction 1 Instruction 2
X X
Instruction 4 Instruction 3
X X
Four sample instructions, executed linearly
Pipelining in RISC
5
IF ID EX M W
1
IF ID EX M W
1
IF ID EX M W
1
IF ID EX M W
Disadvantages:
Inability to continuously run the pipeline
at full speed because of pipeline hazards
which disrupt the smooth execution of the
pipeline.
Pipeline Hazards
Instruction 1 IF ID EX M WB
IF ID EX M WB
Instruction 2
IF ID EX M WB
Instruction 3
IF ID EX M WB
Instruction 4
Control Hazards
STALL IF ID EX M WB
STALL IF ID EX M WB
STALL IF ID EX M WB
http://www.cs.sjsu.edu/~lee/cs147/fall200
3/23147L25Pipelining.ppt
http://murray.newcastle.edu.au/users/stud
ents/1999/c9311421/pipe.html#s5