Docsity

Exam for Computer Architecture | CS 3330, Exams of Computer Architecture and Organization

Partial preview of the text

Download Exam for Computer Architecture | CS 3330 and more Exams Computer Architecture and Organization in PDF only on Docsity!

CS/ECE 333 Fall 2006 is Consider a pipeline that has five stages: (1) instruction fetch — 30 ns, (2) instruction decode — 10 ns, (3) memory read — 30 ns, (4) instruction execution — 10 ns, and (5) register write — 30 ns. The times required in each stage are shown above following the name of the stage. For example, the instruction fetch requires 30 ns to complete. Assume that every instruction in the instruction set requires the use of all stages of the pipeline. Also, assume that the stages of the pipeline are clocked with a common clock. This means that all information moves synchronously through the pipeline from one stage to the next based on a single clock signal dictating when information advances from one stage to the next. a. What is the latency of an instruction flowing through the pipeline? Again, remember that you have a common clock. Answer: 1000 % ( Yor40+30) = loo0 x 30ns XS stages = ISOns NO = gp Os b. What is the idealized throughput (bandwidth) of the pipeline? (In other words, you may assume that there are no hazards between instructions for calculating this answer) \ovo insts 4000 ® ABO = 150 org > 3¢000 ns 4 oinstechou Answer: C) Whatis 2xe cattin tne frequency of that clock for this pipeline? v} 1000 inet pdgnam four popolining ? Answer: Lujde [30ns d. Assume that the following sequence of instructions is executed by the processor (assuming no hazards): Il, 12, 13, 14 es Sse ¢. Since all stages of the pipeline are clocked with a single clock signal, what is the fastest Using the table below, show the instruction that resides in each stage of the pipeline for each clock period. Sue at “See mw , Clock Instruction | Instruction | Memory | Instruction | -Memery- Period Fetch Decode Read Execution Write Baki, Tl a) j T2 Tee: LI T3 3 12 vel 14 LY 13 Lz lel 15 IE Zu 13 Z2j pry T6 TS x4 23 az ale A Ps LY £3 T8 coe LY Page 1 of 5