Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899