Question: In CPU - OS simulator instructions are processed through 5 stages fetch, decode, read operands, execute and write results. Each instruction takes 5 clock cycles.

In CPU-OS simulator instructions are processed through 5 stages fetch, decode, read operands, execute and write results. Each instruction takes 5 clock cycles. Instruction fetch takes additional 2 clock cycles in case of cache miss. Execute stage of MUL takes 6 clock cycles instead of 1 clock cycle. Block of direct mapped cache can store 4 instructions. Following code snippet is executed in the simulator: [10 Marks]MOV #5,R00MOV #10,R01ADD R00,R01MUL R00,2HLTAssume cache is initially empty. Find following:a) Hit ratiob) List of instructions with cache missc) Total clock cyclesd) CPIe) Data hazard in the snippet if any.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!