Pipelining An Instruction Assembly Line

Size: px
Start display at page:

Download "Pipelining An Instruction Assembly Line"

Transcription

1 Processor Designs So Far Pipelining An Assembly Line EEC7 Computer Architecture FQ 5 We have Single Cycle Design with low CPI but high CC We have ulticycle Design with low CC but high CPI We want best of both: low CC and low CPI Achieved using pipelining Courtesy of Prof. Kent Wilken and Prof. John Owens Pipelining is Natural! Laundry Example Ann, Brian, Cathy, Dave each have one load of clothes to wash, dry, and fold Washer takes 3 minutes Dryer takes minutes A B C D Laundry iming How long does laundry take with a single cycle (wash/dry/fold is one clock) design? What is the clock cycle time? CPI? How many clocks? How long does laundry take with a multiple cycle (longest of wash/dry/fold is one clock) design? What is the CC? CPI? How many clocks? Folder takes minutes Sequential Laundry 6 P idnight ime Pipelined Laundry: Start work ASAP 6 P idnight ime a s k A a s k A 3 O r d e r B C O r d e r B C D Sequential laundry takes 6 hours for loads If they learned pipelining, how long would laundry take? D

2 Laundry iming How long does laundry take with a pipelined (longest of wash/dry/fold is one clock) design? What is the CC? How many clocks? a s k O r d e r Pipelined Laundry: Start work ASAP A B C 6 P idnight ime 3 D Pipelined laundry takes 3.5 hours for loads Pipelining Lessons Sandwich Bar Analogy a s k O r d e r 6 P ime 3 A B C D Pipelining doesn t t help latency of single task, it helps throughput of entire workload Pipeline rate limited by slowest pipeline stage ultiple tasks operating simultaneously using different resources Potential speedup = Number pipe stages nbalanced lengths of pipe stages reduces speedup ime to fill pipeline and time to drain it reduces speedup Pipelining: ultiple people going through the sandwich bar at the same time If you re in front of the pickles, but you don t t need the pickles Car assembly line Stall for Dependences Digital System Efficiency Digital System Efficiency A synchronous digital system doing too much work between clocks can be inefficient because logic can be static for much of clock period Logic Logic

3 Digital System Efficiency Digital System Efficiency Logic Logic Pipeline Efficiency Efficiency can be improved by I.. subdividing logic into multiple stages and shortening CC Single Pipelined Efficiency executing single instruction is even less efficient, why? Logic Logic Logic 3 Logic Logic Logic 3 Single Pipelined Efficiency executing single instruction is even less efficient, why? Single Pipelined Efficiency executing single instruction is even less efficient, why? Logic Logic Logic 3 Logic Logic Logic 3

4 Pipeline Efficiency Efficiency can be improved by I.. subdividing logic into multiple stages and shortening CC II.. overlapping operation Pipeline Efficiency Efficiency can be improved by I. subdividing logic into multiple stages and shortening CC And by II.. overlapping operation Logic Logic Logic 3 Logic Logic Logic 3 Pipeline Efficiency Efficiency can be improved by I. subdividing logic into multiple stages and shortening CC And by II.. overlapping operation Logic Logic Logic 3 Pipeline Depth If three pipeline stages are better than non-pipelined, are four stages better than three? What is the limit to the number of stages? What is the CC at that limit? Why Pipeline? Suppose we execute instructions. How long on each architecture? Single Cycle achine.5 ns/cycle, CPI= ulticycle achine. ns/cycle, CPI=. Ideal pipelined machine. ns/cycle, CPI= (but remember fill cost!) Why Pipeline? Suppose we execute instructions Single Cycle achine.5 ns/cycle x CPI x inst = 5 ns ulticycle achine. ns/cycle x. CPI (due to inst mix) x inst = ns Ideal pipelined machine. ns/cycle x ( CPI x inst + cycle fill) = ns

5 Fill Costs Suppose we pipeline different numbers of instructions. What is the overhead of pipelining? Ideal pipelined machine. ns/cycle, CPI=, instructions. ns/cycle, CPI=, instructions. ns/cycle, CPI=,, instructions Fill Costs Overhead: Ideal pipelined machine. ns/cycle, CPI=, instructions ns runtime + ns overhead: % overhead. ns/cycle, CPI=, instructions ns runtime + ns overhead:.% overhead. ns/cycle, CPI=,, instructions, ns runtime + ns overhead:.% overhead Pipelined ultiplier We can take the Wallace tree multiplier we developed in Chapter 3 and create a two stage pipeline Reduce partial product terms Do final n- n bit addition using carry look- ahead adder Wallace ree ultiplier: -Stage Pipeline ultiplicand Reduce Partial Products x x x x x x x x y y y y y y y y ultiplier he two operations are roughly balanced, both take log(n) ) time -Bit er Result Pipeline Wallace ree ultiplier: -Stage Pipeline ultiplicand x x x x x x x x y y y y y y y y Wallace ree ultiplier: -Stage Pipeline ultiplier ultiplicand x x x x x x x x y y y y y y y y ultiplier Reduce Partial Products Reduce Partial Products -Bit er Result Pipeline -Bit er Result Pipeline

6 Pipelined Processor Design Single-Cycle Design We ll take the single-cycle design and transform it into a pipelined design What we formally called a phase of an instruction s s will now become a pipeline stage ress left ress isters 6 3 Single-Cycle Design Phases Pipelined Design Fetch Decode Execution Fetch Decode Execution E/E E/ left left ress ress ress ress isters isters Fetch & + Decode & E/E E/ E/E E/ left left ress ress ress ress isters isters

7 Execution: Load Word : Load Word E/E E/ E/E E/ left left ress ress ress ress isters isters Back: Load Word Execution: Store Word E/E E/ E/E E/ left left ress ress ress ress isters isters : Store Word Back: Store Word E/E E/ E/E E/ left left ress ress ress ress isters isters

8 Execution: R-typeR : R-typeR E/E E/ E/E E/ left left ress ress ress ress isters isters Back: R-typeR Execution: Branch E/E E/ E/E E/ left left ress ress ress ress isters isters : Branch Back: Branch E/E E/ E/E E/ left left ress ress ress ress isters isters

9 Overlapping Execution Overlapping Execution Parts of different instruction execute at each pipeline stage during each cycle CC CC CC CC CC CC lw $, ($) lw $, ($) lw $, ($) lw $, ($) lw $3, 3($) lw $3, 3($) lw $, ($) lw $, ($) lw $5, 5($) lw $5, 5($) Overlapping Execution Overlapping Execution CC CC CC CC CC CC lw $, ($) lw $, ($) lw $, ($) lw $, ($) lw $3, 3($) lw $3, 3($) lw $, ($) lw $, ($) lw $5, 5($) lw $5, 5($) Overlapping Execution Overlapping Execution CC CC CC CC CC CC lw $, ($) lw $, ($) lw $, ($) lw $, ($) lw $3, 3($) lw $3, 3($) lw $, ($) lw $, ($) lw $5, 5($) lw $5, 5($)

10 Overlapping Execution Lines Src Branch lw $, ($) CC CC CC SLL E/E E/ lw $, ($) P C Src em emto isters lw $3, 3($) lw $, ($) Op em lw $5, 5($) Dst nit Pipelined Src E/E E/ E P C isters SLL Src Branch em emto Src P C Src Op Dst Branch em em emto Op em Dst E/E E/ P C Src Pipeline with Pipelined isters E SLL Src E/E Branch em E/ emto Hazards hazards can occur when:. s I and I are both in the pipeline. I follows I 3. I produces a that is used by I he problem: because I has not posted its to the file, I may read an obsolete value. Op em Dst

11 Hazards $ is not written by sub until, but following instructions depend on $ as soon as Hazards Sw requires $ at, and $ is written to file at, so not a problem CC CC CC CC CC CC Sub $,, $, $3 Sub $,, $, $3 And $, $,, $5 And $, $, $5 Or $3, $6, $ Or $3, $6, $ $, $, $ $, $, $ Sw $5, ($ $) Sw $5, ($ $) Hazards requires $ at.5, and $ is written to file at., so not a problem Hazards Or requires $ at CC, and $ is written to file at.: hazard CC CC CC CC CC CC Sub $,, $, $3 Sub $,, $, $3 And $, $, $5 And $, $, $5 Or $3, $6, $ Or $3, $6, $ $, $, $ $, $, $ Sw $5, ($) Sw $5, ($) Hazards However $ is available at from internal pipeline latch Hazards And requires $ at, and $ is written to file at.: hazard CC CC CC CC CC CC Sub $,, $, $3 Sub $,, $, $3 And $, $,, $5 And $, $,, $5 Or $3, $6, $ Or $3, $6, $ $, $, $ $, $, $ Sw $5, ($) Sw $5, ($)

12 Sub $,, $, $3 And $, $,, $5 Or $3, $6, $ $, $, $ CC Hazards However $ is available at CC from internal pipeline latch CC CC Forwarding ost hazards can be resolved by forwarding,, sending the internal pipeline from I to the stage where it is needed by I which is following in the pipeline Result is still posted to the file when I reaches stage Forwarding requires hardware modifications to the path Sw $5, ($) Path without Forwarding isters Path with Forwarding Forwarding paths for s from stage and Back stage to Execution stage New to select operand from file or newest via forwarding isters ForwardA Rs Rt Rt Rd ForwardB E/E.isterRd Forward From E/ Forwarding nit E//.isterRd Forward from E/E Fowarding Path used to decide whether to forward from the stage If ((E/E. E.) #must be writing a and (E/E.isterRd!= ) #$ is always up to date and (E/E.isterRd =.isterrs E.isterRs) #stage and stage 3 source operand match ForwardA = If ((E/E. E.) and (E/E.isterRd!= ) and (E/E.isterRd =.isterrt E.isterRt)) ForwardB = Fowarding Path used to decide whether to forward from the back stage: If ((E/..) #must be writing a and (E/.isterRd!= ) #$ is always up to date and!((e/e.isterrd =.isterrs E.isterRs) ) and (E/E. E.)) # forward from stage is newer, has priority and (E/.isterRd =.isterrs E.isterRs)) #stage and stage 3 source operand match ForwardA = If ((E/..) and (E/.isterRd!= ) and!((e/e.isterrd =.isterrt E.isterRt) ) and (E/E. E.)) and (E/.isterRd =.isterrt E.isterRt)) ForwardB =

13 Complete path with Forwarding Forwarding () Or $3, $6, $ And $, $,, $5 Sub $,, $, $3 Before<> Before<> E/E E/E E/ E/ E E isters $ $ 5 isters $5 $3.isterRs ID.isterRs.isterRt ID.isterRt.isterRt ID.isterRt.isterRd ID.isterRd Rs Rt Rt Rd E/E.isterRd 5 3 E/E.isterRd Forwarding nit E//.isterRd Forwarding nit E//.isterRd Forwarding (CC) Forwarding () $, $, $ Or $3, $6, $ And $, $,, $5 Sub $,, $, $3 Before<> Sw $5, ($ $) $, $, $ Or $3, $6, $ And $, $,, $5 Sub $,, $, $3 E/E E/E E/ E/ E E 6 isters $6 $ $ $5 isters $ $ $6 $ E/E.isterRd 6 3 E/E.isterRd Forwarding nit E//.isterRd Forwarding nit E//.isterRd Load Hazards For loads most hazards can be resolved with forwarding but some cannot Load Hazard Solution # Have compiler insert a NOP to space instructions further apart lw $,, ($) and $, $,, $5 or $8, $, $6 CC CC CC lw $,($) nop and $,$ $,$5 or $8,$ $,$6$6 add $9,$,$ $ slt $,$,$,$7,$7 add $9, $, $ slt $, $,, $7

14 Load Hazards Load Hazard Solution # nop resolves load hazard CC CC CC Best solution: compiler res (schedules) instructions to resolve hazard SL is independent of all instruction except LW, can move up to resolve hazard w/o nop lw $,, ($) nop and $, $,, $5 or $8, $, $6 lw $,($) nop and $,$ $,$5 or $8,$ $,$6$6 add $9,$,$ $ slt $,$,$,$7,$7 lw $,($) slt $,$,$,$7,$7 and $,$ $,$5 or $8,$ $,$6$6 add $9,$,$ $ add $9, $, $ Load Hazard Solution #3 Have the pipeline detect hazard and automatically inject a nop reduces size of program reduces cache misses LW and instruction before advance in next CC, following instructions stall, nop injected into E CC i : IF ID E E or and lw before before Detecting a Load Hazard Need to add an new hazard detection unit. Load hazard occurs under this condition: If (.em E.em) #LW in stage 3 and ((.isterrt =.isterrs ID.isterRs) or (.isterrt =.isterrt ID.isterRt)) #stage Rs or Rt uses LW stall the pipeline his logic is correct but not precise (creates too many stalls). Why? CC i+ CC i+ : or and and lw before Hazard Detection nit Detection occurs in ID pipeline stage Injecting A Nop (Pipeline Bubble) Set instruction s s control bits to all zeros; stall IF, ID ID.Rs/Rt ID.Rs/Rt Hazard Detect.em E E/E E/ ID.Rs/Rt ID.Rs/Rt Hazard Detect.em E E/E E/ isters isters.isterrs ID.isterRs.isterRt ID.isterRt.isterRt ID.isterRt.isterRd ID.isterRd Rs Rt E/E.isterRd.isterRs ID.isterRs.isterRt ID.isterRt.isterRt ID.isterRt.isterRd ID.isterRd Rs Rt E/E.isterRd.isterRt.isterRt Forwarding nit E//.isterRd Forwarding nit E//.isterRd

15 Refined NOP Injection Setting all control bits to zero is correct but is overkill. What is the minimum set of control bits that must be set to zero? Early Branch Resolution Branch resolved in stage to reduce penalty aken + SLL + Branch E isters = Delayed Branches Further reduce branch penalty by delaying the effect of branch one o cycle I.e., always execute instruction after branch before = target beq r7,r branch delay slot beq r7,r NOP -p p add r,... Delayed Branches Cont. Load r,... => beqz r7,r Load r,... -p p add r,... Delay slot instruction must be independent of branch, "safe". Independent instruction can be moved into delay slot from (a) above the branch, (b) from taken path, or (c) from not-taken taken path add r6,x,y beq r7,r NOP => beq r7,r add r6,x,y (a) from above: : best because instruction always useful (b) from taken path: : because lacking statistics for specific branch, taken is more likely (e.g., /3). Less valuable than (a) ) because fraction of useful work is p rather than beq r7,r NOP -p p add r,x,y Load r,... => beq r7,r add r,x,y -p p Load r,... (c) from not-taken taken path: seful work fraction is -p beq r7,r NOP add r,... Branch arget Copying If branch target instruction is accessed via other program paths, must be copied, not moved. Branch retargeted to instruction after former target Dynamic instruction count decreases, although static does not Load r,... => beq r7,r Load r,... add r,... Load r,... Branches in Delay Slot Delay slot following Jump can almost always be filled by moving or copying target Branch generally cannot fill delay slot. jump NOP JAL?? => x x+ jump JAL JAL Results in return to wrong address!!!

16 Profiled Delayed Branch Where safe instruction can be moved from taken or not-taken, taken, fill delay slot based on profile statistics, maximizes useful work. E.g., for p =.38: beqz r7,... NOP -p p add r,... Load r,... => beqz r7,... add r,... -p p Load r,... ore Branch Optimizations Jump is eliminated if it is the only instruction left in block after move, => can eliminate two instructions. E.g., p=. beqz... NOP -p p add r,... Load r,... jump => beqz r7,... Load r,... -p p add r,... Better still is to reverse the sense of the branch: beqz... NOP -p p add r,... Load r,... jump bnez... NOP add r,... => p -p => jump Load r,... bnez... add r,... p -p Load r,... pc + instruction Delayed Branches & Exception Delayed branches must save s of next two instructions on exception, rather than one decode reg read pc + op rdest source source (target) pc + op rdest memory access Load (delay slot) Page Fault save save op rdest branch Delayed Branching Performance For typical integer codes a useful instruction is executed in delay slot about 7% of the time thus branch cost is: (cycles lost per branch =.3) x (fraction of branches =.5) = 8% performance loss ificant reduction from 75%, but still want smaller branch cost NOE: if you consider slides 6&7 as the baseline, then CPI for branch instruction is in baseline implementation and 75% performance loss is correct. his is a bit different than what we discussed in class. Early Branch Resolution Branch resolved in stage to reduce penalty + SLL + isters aken Branch = E Branch Prediction se a magic box to: Determine the instruction being fetched is a branch Predict the branch outcome (taken/not taken) Produce the target address While the instruction is being fetched!

17 Branch Prediction Resolve branch in IF stage if prediction is correct Predictor Parget ress Simple Branch Prediction able Branch arget Buffer (BB) Predictor module is a n entry table indexed by n lower address bits. Fields are:. 3-n n upper address bits. IsBranch bit 3. arget ress (3 bits). Prediction able was filled during past s of the branch Branch_aken Branch arget Buffer Because BB is small, faster than instruction memory BB in Context 3-n n - pr_ = Hit n Is_Brch Predict Branch_aken _r Parget ress Branch_aken Parget ress wo-bit Branch Predictor Branch history using four states (two bits) avoids loop problem: strong not-taken taken weak not-taken taken weak taken strong taken Implemented as a state machine Weak aken N Weak Naken N N Strong aken Strong Naken N wo-bit Branch Predictor Can think of this predictor as a saturating counter: + for taken, - for not taken N N N N

18 Branch arget Buffer Complete Because BB is small, faster than instruction memory Final BB in Context 3-n n - pr_ = Hit n Is_Brch Branch_aken S State Hit S _r Parget ress State Branch_aken Parget ress Confirming Branch Prediction Prediction must be confirmed in ID stage, branch- history state updated + State Hit SLL arget ress + isters Branch = aken E Confirming Branch Prediction ust consider pipeline action for following cases:. No hit, no branch: do nothing. No hit, branch: a. Nullify IF instruction b. Branch to computed target address 3. Hit, condition = prediction: do nothing. Hit, condition = taken, prediction = not taken: a. Nullify IF instruction b. Branch to computer target address 5. Hit, condition = not taken, prediction = taken a. Nullify IF instruction b. Branch to ID stage + Next using Branch Prediction sing branch prediction now have four choices for next : IF_+, Parget address, ID_+, arget address ID_+ IF_+ + SLL arget ress + isters Branch = aken E BB pdates ust consider BB updates for following cases:. No hit, no branch: do nothing. No hit, branch: new BB entry, set prediction to weak condition 3. Hit, condition = taken: ++prediction. Hit, condition = not taken: --prediction 3 BB Parget ress

CS352H: Computer Systems Architecture

CS352H: Computer Systems Architecture CS352H: Computer Systems Architecture Topic 9: MIPS Pipeline - Hazards October 1, 2009 University of Texas at Austin CS352H - Computer Systems Architecture Fall 2009 Don Fussell Data Hazards in ALU Instructions

More information

Pipeline Hazards. Structure hazard Data hazard. ComputerArchitecture_PipelineHazard1

Pipeline Hazards. Structure hazard Data hazard. ComputerArchitecture_PipelineHazard1 Pipeline Hazards Structure hazard Data hazard Pipeline hazard: the major hurdle A hazard is a condition that prevents an instruction in the pipe from executing its next scheduled pipe stage Taxonomy of

More information

Q. Consider a dynamic instruction execution (an execution trace, in other words) that consists of repeats of code in this pattern:

Q. Consider a dynamic instruction execution (an execution trace, in other words) that consists of repeats of code in this pattern: Pipelining HW Q. Can a MIPS SW instruction executing in a simple 5-stage pipelined implementation have a data dependency hazard of any type resulting in a nop bubble? If so, show an example; if not, prove

More information

Computer Organization and Components

Computer Organization and Components Computer Organization and Components IS5, fall 25 Lecture : Pipelined Processors ssociate Professor, KTH Royal Institute of Technology ssistant Research ngineer, University of California, Berkeley Slides

More information

More on Pipelining and Pipelines in Real Machines CS 333 Fall 2006 Main Ideas Data Hazards RAW WAR WAW More pipeline stall reduction techniques Branch prediction» static» dynamic bimodal branch prediction

More information

WAR: Write After Read

WAR: Write After Read WAR: Write After Read write-after-read (WAR) = artificial (name) dependence add R1, R2, R3 sub R2, R4, R1 or R1, R6, R3 problem: add could use wrong value for R2 can t happen in vanilla pipeline (reads

More information

Pipeline Hazards. Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. Based on the material prepared by Arvind and Krste Asanovic

Pipeline Hazards. Arvind Computer Science and Artificial Intelligence Laboratory M.I.T. Based on the material prepared by Arvind and Krste Asanovic 1 Pipeline Hazards Computer Science and Artificial Intelligence Laboratory M.I.T. Based on the material prepared by and Krste Asanovic 6.823 L6-2 Technology Assumptions A small amount of very fast memory

More information

Lecture: Pipelining Extensions. Topics: control hazards, multi-cycle instructions, pipelining equations

Lecture: Pipelining Extensions. Topics: control hazards, multi-cycle instructions, pipelining equations Lecture: Pipelining Extensions Topics: control hazards, multi-cycle instructions, pipelining equations 1 Problem 6 Show the instruction occupying each stage in each cycle (with bypassing) if I1 is R1+R2

More information

Giving credit where credit is due

Giving credit where credit is due CSCE 230J Computer Organization Processor Architecture VI: Wrap-Up Dr. Steve Goddard goddard@cse.unl.edu http://cse.unl.edu/~goddard/courses/csce230j Giving credit where credit is due ost of slides for

More information

Solution: start more than one instruction in the same clock cycle CPI < 1 (or IPC > 1, Instructions per Cycle) Two approaches:

Solution: start more than one instruction in the same clock cycle CPI < 1 (or IPC > 1, Instructions per Cycle) Two approaches: Multiple-Issue Processors Pipelining can achieve CPI close to 1 Mechanisms for handling hazards Static or dynamic scheduling Static or dynamic branch handling Increase in transistor counts (Moore s Law):

More information

Pipelining Review and Its Limitations

Pipelining Review and Its Limitations Pipelining Review and Its Limitations Yuri Baida yuri.baida@gmail.com yuriy.v.baida@intel.com October 16, 2010 Moscow Institute of Physics and Technology Agenda Review Instruction set architecture Basic

More information

PROBLEMS #20,R0,R1 #$3A,R2,R4

PROBLEMS #20,R0,R1 #$3A,R2,R4 506 CHAPTER 8 PIPELINING (Corrisponde al cap. 11 - Introduzione al pipelining) PROBLEMS 8.1 Consider the following sequence of instructions Mul And #20,R0,R1 #3,R2,R3 #$3A,R2,R4 R0,R2,R5 In all instructions,

More information

Solutions. Solution 4.1. 4.1.1 The values of the signals are as follows:

Solutions. Solution 4.1. 4.1.1 The values of the signals are as follows: 4 Solutions Solution 4.1 4.1.1 The values of the signals are as follows: RegWrite MemRead ALUMux MemWrite ALUOp RegMux Branch a. 1 0 0 (Reg) 0 Add 1 (ALU) 0 b. 1 1 1 (Imm) 0 Add 1 (Mem) 0 ALUMux is the

More information

Instruction Set Architecture. or How to talk to computers if you aren t in Star Trek

Instruction Set Architecture. or How to talk to computers if you aren t in Star Trek Instruction Set Architecture or How to talk to computers if you aren t in Star Trek The Instruction Set Architecture Application Compiler Instr. Set Proc. Operating System I/O system Instruction Set Architecture

More information

Execution Cycle. Pipelining. IF and ID Stages. Simple MIPS Instruction Formats

Execution Cycle. Pipelining. IF and ID Stages. Simple MIPS Instruction Formats Execution Cycle Pipelining CSE 410, Spring 2005 Computer Systems http://www.cs.washington.edu/410 1. Instruction Fetch 2. Instruction Decode 3. Execute 4. Memory 5. Write Back IF and ID Stages 1. Instruction

More information

Instruction Set Architecture

Instruction Set Architecture Instruction Set Architecture Consider x := y+z. (x, y, z are memory variables) 1-address instructions 2-address instructions LOAD y (r :=y) ADD y,z (y := y+z) ADD z (r:=r+z) MOVE x,y (x := y) STORE x (x:=r)

More information

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B Lab 7: MISP Processor Design Spring 1995

UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering. EEC180B Lab 7: MISP Processor Design Spring 1995 UNIVERSITY OF CALIFORNIA, DAVIS Department of Electrical and Computer Engineering EEC180B Lab 7: MISP Processor Design Spring 1995 Objective: In this lab, you will complete the design of the MISP processor,

More information

Design of Pipelined MIPS Processor. Sept. 24 & 26, 1997

Design of Pipelined MIPS Processor. Sept. 24 & 26, 1997 Design of Pipelined MIPS Processor Sept. 24 & 26, 1997 Topics Instruction processing Principles of pipelining Inserting pipe registers Data Hazards Control Hazards Exceptions MIPS architecture subset R-type

More information

EE282 Computer Architecture and Organization Midterm Exam February 13, 2001. (Total Time = 120 minutes, Total Points = 100)

EE282 Computer Architecture and Organization Midterm Exam February 13, 2001. (Total Time = 120 minutes, Total Points = 100) EE282 Computer Architecture and Organization Midterm Exam February 13, 2001 (Total Time = 120 minutes, Total Points = 100) Name: (please print) Wolfe - Solution In recognition of and in the spirit of the

More information

INSTRUCTION LEVEL PARALLELISM PART VII: REORDER BUFFER

INSTRUCTION LEVEL PARALLELISM PART VII: REORDER BUFFER Course on: Advanced Computer Architectures INSTRUCTION LEVEL PARALLELISM PART VII: REORDER BUFFER Prof. Cristina Silvano Politecnico di Milano cristina.silvano@polimi.it Prof. Silvano, Politecnico di Milano

More information

COMPUTER ORGANIZATION ARCHITECTURES FOR EMBEDDED COMPUTING

COMPUTER ORGANIZATION ARCHITECTURES FOR EMBEDDED COMPUTING COMPUTER ORGANIZATION ARCHITECTURES FOR EMBEDDED COMPUTING 2013/2014 1 st Semester Sample Exam January 2014 Duration: 2h00 - No extra material allowed. This includes notes, scratch paper, calculator, etc.

More information

Review: MIPS Addressing Modes/Instruction Formats

Review: MIPS Addressing Modes/Instruction Formats Review: Addressing Modes Addressing mode Example Meaning Register Add R4,R3 R4 R4+R3 Immediate Add R4,#3 R4 R4+3 Displacement Add R4,1(R1) R4 R4+Mem[1+R1] Register indirect Add R4,(R1) R4 R4+Mem[R1] Indexed

More information

Course on Advanced Computer Architectures

Course on Advanced Computer Architectures Course on Advanced Computer Architectures Surname (Cognome) Name (Nome) POLIMI ID Number Signature (Firma) SOLUTION Politecnico di Milano, September 3rd, 2015 Prof. C. Silvano EX1A ( 2 points) EX1B ( 2

More information

CS:APP Chapter 4 Computer Architecture. Wrap-Up. William J. Taffe Plymouth State University. using the slides of

CS:APP Chapter 4 Computer Architecture. Wrap-Up. William J. Taffe Plymouth State University. using the slides of CS:APP Chapter 4 Computer Architecture Wrap-Up William J. Taffe Plymouth State University using the slides of Randal E. Bryant Carnegie Mellon University Overview Wrap-Up of PIPE Design Performance analysis

More information

Administration. Instruction scheduling. Modern processors. Examples. Simplified architecture model. CS 412 Introduction to Compilers

Administration. Instruction scheduling. Modern processors. Examples. Simplified architecture model. CS 412 Introduction to Compilers CS 4 Introduction to Compilers ndrew Myers Cornell University dministration Prelim tomorrow evening No class Wednesday P due in days Optional reading: Muchnick 7 Lecture : Instruction scheduling pr 0 Modern

More information

Data Dependences. A data dependence occurs whenever one instruction needs a value produced by another.

Data Dependences. A data dependence occurs whenever one instruction needs a value produced by another. Data Hazards 1 Hazards: Key Points Hazards cause imperfect pipelining They prevent us from achieving CPI = 1 They are generally causes by counter flow data pennces in the pipeline Three kinds Structural

More information

Computer organization

Computer organization Computer organization Computer design an application of digital logic design procedures Computer = processing unit + memory system Processing unit = control + datapath Control = finite state machine inputs

More information

CPU Performance Equation

CPU Performance Equation CPU Performance Equation C T I T ime for task = C T I =Average # Cycles per instruction =Time per cycle =Instructions per task Pipelining e.g. 3-5 pipeline steps (ARM, SA, R3000) Attempt to get C down

More information

Quiz for Chapter 1 Computer Abstractions and Technology 3.10

Quiz for Chapter 1 Computer Abstractions and Technology 3.10 Date: 3.10 Not all questions are of equal difficulty. Please review the entire quiz first and then budget your time carefully. Name: Course: Solutions in Red 1. [15 points] Consider two different implementations,

More information

Performance evaluation

Performance evaluation Performance evaluation Arquitecturas Avanzadas de Computadores - 2547021 Departamento de Ingeniería Electrónica y de Telecomunicaciones Facultad de Ingeniería 2015-1 Bibliography and evaluation Bibliography

More information

EC 362 Problem Set #2

EC 362 Problem Set #2 EC 362 Problem Set #2 1) Using Single Precision IEEE 754, what is FF28 0000? 2) Suppose the fraction enhanced of a processor is 40% and the speedup of the enhancement was tenfold. What is the overall speedup?

More information

Introducción. Diseño de sistemas digitales.1

Introducción. Diseño de sistemas digitales.1 Introducción Adapted from: Mary Jane Irwin ( www.cse.psu.edu/~mji ) www.cse.psu.edu/~cg431 [Original from Computer Organization and Design, Patterson & Hennessy, 2005, UCB] Diseño de sistemas digitales.1

More information

CS521 CSE IITG 11/23/2012

CS521 CSE IITG 11/23/2012 CS521 CSE TG 11/23/2012 A Sahu 1 Degree of overlap Serial, Overlapped, d, Super pipelined/superscalar Depth Shallow, Deep Structure Linear, Non linear Scheduling of operations Static, Dynamic A Sahu slide

More information

VLIW Processors. VLIW Processors

VLIW Processors. VLIW Processors 1 VLIW Processors VLIW ( very long instruction word ) processors instructions are scheduled by the compiler a fixed number of operations are formatted as one big instruction (called a bundle) usually LIW

More information

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-12: ARM 1 The ARM architecture processors popular in Mobile phone systems 2 ARM Features ARM has 32-bit architecture but supports 16 bit

More information

COMP 303 MIPS Processor Design Project 4: MIPS Processor Due Date: 11 December 2009 23:59

COMP 303 MIPS Processor Design Project 4: MIPS Processor Due Date: 11 December 2009 23:59 COMP 303 MIPS Processor Design Project 4: MIPS Processor Due Date: 11 December 2009 23:59 Overview: In the first projects for COMP 303, you will design and implement a subset of the MIPS32 architecture

More information

EE361: Digital Computer Organization Course Syllabus

EE361: Digital Computer Organization Course Syllabus EE361: Digital Computer Organization Course Syllabus Dr. Mohammad H. Awedh Spring 2014 Course Objectives Simply, a computer is a set of components (Processor, Memory and Storage, Input/Output Devices)

More information

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2

Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2 Lecture Handout Computer Architecture Lecture No. 2 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2,Chapter3 Computer Systems Design and Architecture 2.1, 2.2, 3.2 Summary 1) A taxonomy of

More information

Addressing The problem. When & Where do we encounter Data? The concept of addressing data' in computations. The implications for our machine design(s)

Addressing The problem. When & Where do we encounter Data? The concept of addressing data' in computations. The implications for our machine design(s) Addressing The problem Objectives:- When & Where do we encounter Data? The concept of addressing data' in computations The implications for our machine design(s) Introducing the stack-machine concept Slide

More information

Stack machines The MIPS assembly language A simple source language Stack-machine implementation of the simple language Readings: 9.1-9.

Stack machines The MIPS assembly language A simple source language Stack-machine implementation of the simple language Readings: 9.1-9. Code Generation I Stack machines The MIPS assembly language A simple source language Stack-machine implementation of the simple language Readings: 9.1-9.7 Stack Machines A simple evaluation model No variables

More information

Using Graphics and Animation to Visualize Instruction Pipelining and its Hazards

Using Graphics and Animation to Visualize Instruction Pipelining and its Hazards Using Graphics and Animation to Visualize Instruction Pipelining and its Hazards Per Stenström, Håkan Nilsson, and Jonas Skeppstedt Department of Computer Engineering, Lund University P.O. Box 118, S-221

More information

Instruction Set Design

Instruction Set Design Instruction Set Design Instruction Set Architecture: to what purpose? ISA provides the level of abstraction between the software and the hardware One of the most important abstraction in CS It s narrow,

More information

Week 1 out-of-class notes, discussions and sample problems

Week 1 out-of-class notes, discussions and sample problems Week 1 out-of-class notes, discussions and sample problems Although we will primarily concentrate on RISC processors as found in some desktop/laptop computers, here we take a look at the varying types

More information

Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.

Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu. Computer Architecture Lecture 2: Instruction Set Principles (Appendix A) Chih Wei Liu 劉 志 尉 National Chiao Tung University cwliu@twins.ee.nctu.edu.tw Review Computers in mid 50 s Hardware was expensive

More information

A Lab Course on Computer Architecture

A Lab Course on Computer Architecture A Lab Course on Computer Architecture Pedro López José Duato Depto. de Informática de Sistemas y Computadores Facultad de Informática Universidad Politécnica de Valencia Camino de Vera s/n, 46071 - Valencia,

More information

Central Processing Unit (CPU)

Central Processing Unit (CPU) Central Processing Unit (CPU) CPU is the heart and brain It interprets and executes machine level instructions Controls data transfer from/to Main Memory (MM) and CPU Detects any errors In the following

More information

StrongARM** SA-110 Microprocessor Instruction Timing

StrongARM** SA-110 Microprocessor Instruction Timing StrongARM** SA-110 Microprocessor Instruction Timing Application Note September 1998 Order Number: 278194-001 Information in this document is provided in connection with Intel products. No license, express

More information

Computer Architecture TDTS10

Computer Architecture TDTS10 why parallelism? Performance gain from increasing clock frequency is no longer an option. Outline Computer Architecture TDTS10 Superscalar Processors Very Long Instruction Word Processors Parallel computers

More information

An Introduction to the ARM 7 Architecture

An Introduction to the ARM 7 Architecture An Introduction to the ARM 7 Architecture Trevor Martin CEng, MIEE Technical Director This article gives an overview of the ARM 7 architecture and a description of its major features for a developer new

More information

The Microarchitecture of Superscalar Processors

The Microarchitecture of Superscalar Processors The Microarchitecture of Superscalar Processors James E. Smith Department of Electrical and Computer Engineering 1415 Johnson Drive Madison, WI 53706 ph: (608)-265-5737 fax:(608)-262-1267 email: jes@ece.wisc.edu

More information

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on

CS 61C: Great Ideas in Computer Architecture Finite State Machines. Machine Interpreta4on CS 61C: Great Ideas in Computer Architecture Finite State Machines Instructors: Krste Asanovic & Vladimir Stojanovic hbp://inst.eecs.berkeley.edu/~cs61c/sp15 1 Levels of RepresentaKon/ InterpretaKon High

More information

Overview. CISC Developments. RISC Designs. CISC Designs. VAX: Addressing Modes. Digital VAX

Overview. CISC Developments. RISC Designs. CISC Designs. VAX: Addressing Modes. Digital VAX Overview CISC Developments Over Twenty Years Classic CISC design: Digital VAX VAXÕs RISC successor: PRISM/Alpha IntelÕs ubiquitous 80x86 architecture Ð 8086 through the Pentium Pro (P6) RJS 2/3/97 Philosophy

More information

Chapter 5 Instructor's Manual

Chapter 5 Instructor's Manual The Essentials of Computer Organization and Architecture Linda Null and Julia Lobur Jones and Bartlett Publishers, 2003 Chapter 5 Instructor's Manual Chapter Objectives Chapter 5, A Closer Look at Instruction

More information

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Chapter 2 Basic Structure of Computers Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Functional Units Basic Operational Concepts Bus Structures Software

More information

(Refer Slide Time: 00:01:16 min)

(Refer Slide Time: 00:01:16 min) Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control

More information

IA-64 Application Developer s Architecture Guide

IA-64 Application Developer s Architecture Guide IA-64 Application Developer s Architecture Guide The IA-64 architecture was designed to overcome the performance limitations of today s architectures and provide maximum headroom for the future. To achieve

More information

Reduced Instruction Set Computer (RISC)

Reduced Instruction Set Computer (RISC) Reduced Instruction Set Computer (RISC) Focuses on reducing the number and complexity of instructions of the ISA. RISC Goals RISC: Simplify ISA Simplify CPU Design Better CPU Performance Motivated by simplifying

More information

CPU Organisation and Operation

CPU Organisation and Operation CPU Organisation and Operation The Fetch-Execute Cycle The operation of the CPU 1 is usually described in terms of the Fetch-Execute cycle. 2 Fetch-Execute Cycle Fetch the Instruction Increment the Program

More information

Lecture Outline. Stack machines The MIPS assembly language. Code Generation (I)

Lecture Outline. Stack machines The MIPS assembly language. Code Generation (I) Lecture Outline Code Generation (I) Stack machines The MIPS assembl language Adapted from Lectures b Profs. Ale Aiken and George Necula (UCB) A simple source language Stack- machine implementation of the

More information

CHAPTER 7: The CPU and Memory

CHAPTER 7: The CPU and Memory CHAPTER 7: The CPU and Memory The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides

More information

PROBLEMS. which was discussed in Section 1.6.3.

PROBLEMS. which was discussed in Section 1.6.3. 22 CHAPTER 1 BASIC STRUCTURE OF COMPUTERS (Corrisponde al cap. 1 - Introduzione al calcolatore) PROBLEMS 1.1 List the steps needed to execute the machine instruction LOCA,R0 in terms of transfers between

More information

l C-Programming l A real computer language l Data Representation l Everything goes down to bits and bytes l Machine representation Language

l C-Programming l A real computer language l Data Representation l Everything goes down to bits and bytes l Machine representation Language 198:211 Computer Architecture Topics: Processor Design Where are we now? C-Programming A real computer language Data Representation Everything goes down to bits and bytes Machine representation Language

More information

The Design of the Inferno Virtual Machine. Introduction

The Design of the Inferno Virtual Machine. Introduction The Design of the Inferno Virtual Machine Phil Winterbottom Rob Pike Bell Labs, Lucent Technologies {philw, rob}@plan9.bell-labs.com http://www.lucent.com/inferno Introduction Virtual Machine are topical

More information

EE482: Advanced Computer Organization Lecture #11 Processor Architecture Stanford University Wednesday, 31 May 2000. ILP Execution

EE482: Advanced Computer Organization Lecture #11 Processor Architecture Stanford University Wednesday, 31 May 2000. ILP Execution EE482: Advanced Computer Organization Lecture #11 Processor Architecture Stanford University Wednesday, 31 May 2000 Lecture #11: Wednesday, 3 May 2000 Lecturer: Ben Serebrin Scribe: Dean Liu ILP Execution

More information

Chapter 4 Lecture 5 The Microarchitecture Level Integer JAVA Virtual Machine

Chapter 4 Lecture 5 The Microarchitecture Level Integer JAVA Virtual Machine Chapter 4 Lecture 5 The Microarchitecture Level Integer JAVA Virtual Machine This is a limited version of a hardware implementation to execute the JAVA programming language. 1 of 23 Structured Computer

More information

Bindel, Spring 2010 Applications of Parallel Computers (CS 5220) Week 1: Wednesday, Jan 27

Bindel, Spring 2010 Applications of Parallel Computers (CS 5220) Week 1: Wednesday, Jan 27 Logistics Week 1: Wednesday, Jan 27 Because of overcrowding, we will be changing to a new room on Monday (Snee 1120). Accounts on the class cluster (crocus.csuglab.cornell.edu) will be available next week.

More information

A3 Computer Architecture

A3 Computer Architecture A3 Computer Architecture Engineering Science 3rd year A3 Lectures Prof David Murray david.murray@eng.ox.ac.uk www.robots.ox.ac.uk/ dwm/courses/3co Michaelmas 2000 1 / 1 6. Stacks, Subroutines, and Memory

More information

Let s put together a Manual Processor

Let s put together a Manual Processor Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce

More information

EECS 427 RISC PROCESSOR

EECS 427 RISC PROCESSOR RISC PROCESSOR ISA FOR EECS 427 PROCESSOR ImmHi/ ImmLo/ OP Code Rdest OP Code Ext Rsrc Mnemonic Operands 15-12 11-8 7-4 3-0 Notes (* is Baseline) ADD Rsrc, Rdest 0000 Rdest 0101 Rsrc * ADDI Imm, Rdest

More information

Thread level parallelism

Thread level parallelism Thread level parallelism ILP is used in straight line code or loops Cache miss (off-chip cache and main memory) is unlikely to be hidden using ILP. Thread level parallelism is used instead. Thread: process

More information

Board Notes on Virtual Memory

Board Notes on Virtual Memory Board Notes on Virtual Memory Part A: Why Virtual Memory? - Letʼs user program size exceed the size of the physical address space - Supports protection o Donʼt know which program might share memory at

More information

Lecture 3: Evaluating Computer Architectures. Software & Hardware: The Virtuous Cycle?

Lecture 3: Evaluating Computer Architectures. Software & Hardware: The Virtuous Cycle? Lecture 3: Evaluating Computer Architectures Announcements - Reminder: Homework 1 due Thursday 2/2 Last Time technology back ground Computer elements Circuits and timing Virtuous cycle of the past and

More information

Introduction to Cloud Computing

Introduction to Cloud Computing Introduction to Cloud Computing Parallel Processing I 15 319, spring 2010 7 th Lecture, Feb 2 nd Majd F. Sakr Lecture Motivation Concurrency and why? Different flavors of parallel computing Get the basic

More information

Design of Digital Circuits (SS16)

Design of Digital Circuits (SS16) Design of Digital Circuits (SS16) 252-0014-00L (6 ECTS), BSc in CS, ETH Zurich Lecturers: Srdjan Capkun, D-INFK, ETH Zurich Frank K. Gürkaynak, D-ITET, ETH Zurich Labs: Der-Yeuan Yu dyu@inf.ethz.ch Website:

More information

Chapter 9 Computer Design Basics!

Chapter 9 Computer Design Basics! Logic and Computer Design Fundamentals Chapter 9 Computer Design Basics! Part 2 A Simple Computer! Charles Kime & Thomas Kaminski 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode)

More information

CPU Organization and Assembly Language

CPU Organization and Assembly Language COS 140 Foundations of Computer Science School of Computing and Information Science University of Maine October 2, 2015 Outline 1 2 3 4 5 6 7 8 Homework and announcements Reading: Chapter 12 Homework:

More information

on an system with an infinite number of processors. Calculate the speedup of

on an system with an infinite number of processors. Calculate the speedup of 1. Amdahl s law Three enhancements with the following speedups are proposed for a new architecture: Speedup1 = 30 Speedup2 = 20 Speedup3 = 10 Only one enhancement is usable at a time. a) If enhancements

More information

BEAGLEBONE BLACK ARCHITECTURE MADELEINE DAIGNEAU MICHELLE ADVENA

BEAGLEBONE BLACK ARCHITECTURE MADELEINE DAIGNEAU MICHELLE ADVENA BEAGLEBONE BLACK ARCHITECTURE MADELEINE DAIGNEAU MICHELLE ADVENA AGENDA INTRO TO BEAGLEBONE BLACK HARDWARE & SPECS CORTEX-A8 ARMV7 PROCESSOR PROS & CONS VS RASPBERRY PI WHEN TO USE BEAGLEBONE BLACK Single

More information

Static Scheduling. option #1: dynamic scheduling (by the hardware) option #2: static scheduling (by the compiler) ECE 252 / CPS 220 Lecture Notes

Static Scheduling. option #1: dynamic scheduling (by the hardware) option #2: static scheduling (by the compiler) ECE 252 / CPS 220 Lecture Notes basic pipeline: single, in-order issue first extension: multiple issue (superscalar) second extension: scheduling instructions for more ILP option #1: dynamic scheduling (by the hardware) option #2: static

More information

Intel 8086 architecture

Intel 8086 architecture Intel 8086 architecture Today we ll take a look at Intel s 8086, which is one of the oldest and yet most prevalent processor architectures around. We ll make many comparisons between the MIPS and 8086

More information

MIPS Assembler and Simulator

MIPS Assembler and Simulator MIPS Assembler and Simulator Reference Manual Last Updated, December 1, 2005 Xavier Perséguers (ing. info. dipl. EPF) Swiss Federal Institude of Technology xavier.perseguers@a3.epfl.ch Preface MIPS Assembler

More information

Embedded System Hardware - Processing (Part II)

Embedded System Hardware - Processing (Part II) 12 Embedded System Hardware - Processing (Part II) Jian-Jia Chen (Slides are based on Peter Marwedel) Informatik 12 TU Dortmund Germany Springer, 2010 2014 年 11 月 11 日 These slides use Microsoft clip arts.

More information

LSN 2 Computer Processors

LSN 2 Computer Processors LSN 2 Computer Processors Department of Engineering Technology LSN 2 Computer Processors Microprocessors Design Instruction set Processor organization Processor performance Bandwidth Clock speed LSN 2

More information

This Unit: Multithreading (MT) CIS 501 Computer Architecture. Performance And Utilization. Readings

This Unit: Multithreading (MT) CIS 501 Computer Architecture. Performance And Utilization. Readings This Unit: Multithreading (MT) CIS 501 Computer Architecture Unit 10: Hardware Multithreading Application OS Compiler Firmware CU I/O Memory Digital Circuits Gates & Transistors Why multithreading (MT)?

More information

CUDA Optimization with NVIDIA Tools. Julien Demouth, NVIDIA

CUDA Optimization with NVIDIA Tools. Julien Demouth, NVIDIA CUDA Optimization with NVIDIA Tools Julien Demouth, NVIDIA What Will You Learn? An iterative method to optimize your GPU code A way to conduct that method with Nvidia Tools 2 What Does the Application

More information

FPGA. AT6000 FPGAs. Application Note AT6000 FPGAs. 3x3 Convolver with Run-Time Reconfigurable Vector Multiplier in Atmel AT6000 FPGAs.

FPGA. AT6000 FPGAs. Application Note AT6000 FPGAs. 3x3 Convolver with Run-Time Reconfigurable Vector Multiplier in Atmel AT6000 FPGAs. 3x3 Convolver with Run-Time Reconfigurable Vector Multiplier in Atmel AT6000 s Introduction Convolution is one of the basic and most common operations in both analog and digital domain signal processing.

More information

Energy-Efficient, High-Performance Heterogeneous Core Design

Energy-Efficient, High-Performance Heterogeneous Core Design Energy-Efficient, High-Performance Heterogeneous Core Design Raj Parihar Core Design Session, MICRO - 2012 Advanced Computer Architecture Lab, UofR, Rochester April 18, 2013 Raj Parihar Energy-Efficient,

More information

2) Write in detail the issues in the design of code generator.

2) Write in detail the issues in the design of code generator. COMPUTER SCIENCE AND ENGINEERING VI SEM CSE Principles of Compiler Design Unit-IV Question and answers UNIT IV CODE GENERATION 9 Issues in the design of code generator The target machine Runtime Storage

More information

2

2 1 2 3 4 5 For Description of these Features see http://download.intel.com/products/processor/corei7/prod_brief.pdf The following Features Greatly affect Performance Monitoring The New Performance Monitoring

More information

EECS 583 Class 11 Instruction Scheduling Software Pipelining Intro

EECS 583 Class 11 Instruction Scheduling Software Pipelining Intro EECS 58 Class Instruction Scheduling Software Pipelining Intro University of Michigan October 8, 04 Announcements & Reading Material Reminder: HW Class project proposals» Signup sheet available next Weds

More information

MACHINE ARCHITECTURE & LANGUAGE

MACHINE ARCHITECTURE & LANGUAGE in the name of God the compassionate, the merciful notes on MACHINE ARCHITECTURE & LANGUAGE compiled by Jumong Chap. 9 Microprocessor Fundamentals A system designer should consider a microprocessor-based

More information

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored?

what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? Inside the CPU how does the CPU work? what operations can it perform? how does it perform them? on what kind of data? where are instructions and data stored? some short, boring programs to illustrate the

More information

Memory Hierarchy. Arquitectura de Computadoras. Centro de Investigación n y de Estudios Avanzados del IPN. adiaz@cinvestav.mx. MemoryHierarchy- 1

Memory Hierarchy. Arquitectura de Computadoras. Centro de Investigación n y de Estudios Avanzados del IPN. adiaz@cinvestav.mx. MemoryHierarchy- 1 Hierarchy Arturo Díaz D PérezP Centro de Investigación n y de Estudios Avanzados del IPN adiaz@cinvestav.mx Hierarchy- 1 The Big Picture: Where are We Now? The Five Classic Components of a Computer Processor

More information

Slide Set 8. for ENCM 369 Winter 2015 Lecture Section 01. Steve Norman, PhD, PEng

Slide Set 8. for ENCM 369 Winter 2015 Lecture Section 01. Steve Norman, PhD, PEng Slide Set 8 for ENCM 369 Winter 2015 Lecture Section 01 Steve Norman, PhD, PEng Electrical & Computer Engineering Schulich School of Engineering University of Calgary Winter Term, 2015 ENCM 369 W15 Section

More information

Interpreters and virtual machines. Interpreters. Interpreters. Why interpreters? Tree-based interpreters. Text-based interpreters

Interpreters and virtual machines. Interpreters. Interpreters. Why interpreters? Tree-based interpreters. Text-based interpreters Interpreters and virtual machines Michel Schinz 2007 03 23 Interpreters Interpreters Why interpreters? An interpreter is a program that executes another program, represented as some kind of data-structure.

More information

Unit 4: Performance & Benchmarking. Performance Metrics. This Unit. CIS 501: Computer Architecture. Performance: Latency vs.

Unit 4: Performance & Benchmarking. Performance Metrics. This Unit. CIS 501: Computer Architecture. Performance: Latency vs. This Unit CIS 501: Computer Architecture Unit 4: Performance & Benchmarking Metrics Latency and throughput Speedup Averaging CPU Performance Performance Pitfalls Slides'developed'by'Milo'Mar0n'&'Amir'Roth'at'the'University'of'Pennsylvania'

More information

PART B QUESTIONS AND ANSWERS UNIT I

PART B QUESTIONS AND ANSWERS UNIT I PART B QUESTIONS AND ANSWERS UNIT I 1. Explain the architecture of 8085 microprocessor? Logic pin out of 8085 microprocessor Address bus: unidirectional bus, used as high order bus Data bus: bi-directional

More information

Instruction Set Architecture (ISA)

Instruction Set Architecture (ISA) Instruction Set Architecture (ISA) * Instruction set architecture of a machine fills the semantic gap between the user and the machine. * ISA serves as the starting point for the design of a new machine

More information

CSE 141 Introduction to Computer Architecture Summer Session I, 2005. Lecture 1 Introduction. Pramod V. Argade June 27, 2005

CSE 141 Introduction to Computer Architecture Summer Session I, 2005. Lecture 1 Introduction. Pramod V. Argade June 27, 2005 CSE 141 Introduction to Computer Architecture Summer Session I, 2005 Lecture 1 Introduction Pramod V. Argade June 27, 2005 CSE141: Introduction to Computer Architecture Instructor: Pramod V. Argade (p2argade@cs.ucsd.edu)

More information