











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Assembly language is about computer basic operations. Its used in Computer Architecture. It also being used in Microprocessors. This lecture was delivered by Prof. Vishakha Ahuja at Guru Ghasidas University. It includes: Prefetch, Accessing, Execution, Pipeline, Fetch, Decode, Calculate, Operands, Timing, Brach, Stage, Alternative, Dealing, Stream
Typology: Slides
1 / 19
This page cannot be seen from the preview
Don't miss anything!












Fetch accessing main memory z Execution usually does not access mainmemory z Can fetch next instruction during executionof current instruction z Called instruction prefetch
But not doubled: z Fetch usually shorter than execution z Prefetch more than one instruction? z Any jump or branch means that prefetchedinstructions are not the required instructions z Add more stages to improve performance
Fetch instruction z Decode instruction z Calculate operands (i.e. EAs) z Fetch operands z Execute instructions z Write result z Overlap these operations
Have two pipelines z Prefetch each branch into a separatepipeline z Use appropriate pipeline z Leads to bus & register contention z Multiple branches lead to further pipelinesbeing needed
Target of branch is prefetched in additionto instructions following branch z Keep target until branch is executed z Used by IBM 360/
Predict never taken z Assume that jump will not happen z Always fetch next instruction z 68020 & VAX 11/ z Predict always taken z Assume that jump will happen z Always fetch target instruction
Do not take jump until you have to z Rearrange instructions
Branch Prediction State Diagram