Docsity

Instruction-Level Parallelism in Processors: Evolution and Challenges, Study notes of Abnormal Psychology

Partial preview of the text

Download Instruction-Level Parallelism in Processors: Evolution and Challenges and more Study notes Abnormal Psychology in PDF only on Docsity!

INSTRUCTION-LEVEL PARALLEL

PROCESSORS

Chapter No. 4

Evolution of ILP-processors

Instruction-level parallelism (ILP)  (^) Basic blocks  (^) Sequences of instruction that appear between branches  (^) Usually no more than 5 or 6 instructions!  (^) Loops  (^) for ( i=0; i<N; i++)  (^) x[i] = x[i] + s;  (^) We can only realize ILP by finding sequences of independent instructions  (^) Dependent instructions must be separated by a sufficient amount of time

Principle Operation of ILP- Processors

Pipelined Operation

Pipelined Operation

 (^) A number of functional units are employed in sequence to perform a single computation.  (^) Each functional unit represent a certain stage of computation.  (^) Pipeline allows overlapped execution of instructions.  (^) It increases the overall processor’s throughput.

Superscalar Approach

VLIW architecture

 (^) Abbreviation of VLIW is Very Large Instruction Word.  (^) VLIW architecture receives multi-operation instructions, i.e. with multiple fields for the control of EUs.  (^) Basic structure of superscalar processors and VLIW is same  (^) multiple EUs, each capable of parallel execution on data fetched from a register file.

Dependencies Between

Instructions

 Data dependency

 control dependency

 resource dependency

Dependencies Between

Instructions

dependences Data arise from precedence Control requirements concerning referenced data arise from conditional statements Resource arise from limited resources dependences Dependences (constraints) dependences

Data Dependency  (^) Data can be differentiated according to the data involved and according to their type.  (^) The data involved in dependency may be from register or from memory  (^) the type of data dependency may be either in a straight-line code or in a loop.

Data Dependency

RAW (Read after Write)

 (^) Read After Write (RAW)  (^) i1: load r1, a; i2: add r2, r1, r1;  (^) Assume a pipeline of Fetch/Decode/Execute/Mem/Writeback

Name Dependencies  (^) A “ name dependenc e” occurs when 2 instructions use the same register or memory location (a nam e) but there is no flow of data between the 2 instructions  (^) There are 2 types:  (^) Antidependencies: Occur when an instruction j writes a register or memory location that instruction i reads – and i is executed first  (^) Corresponds to a WAR hazard  (^) Output dependencies: Occur when instruction i and instruction j write the same register or memory location  (^) Protected against by checking for WAW hazards