Direct Memory Mapping Example

Cancelled Posted Nov 29, 2015 Paid on delivery
Cancelled Paid on delivery

This project must be completed using the C programming language.

You are expected to simulate a direct mapping cache management policy using MIPS standards.

Please make the following assumptions:

1) The cache is an I-Cache

2) A trace of reference words is available in the file [login to view URL]

3) The main memory has N = 2^N bytes

4) Block size is M = 2^M bytes

5) The cache contains L = 2^L

lines (blocks)

6) The cache has a valid bit for each line and initially all the lines are invalidated.

Instructions:

Your simulation program should read reference words.

For each reference word, decide whether it is a compulsory miss (CM), hit (H), or miss

(M).

For each of the above emulate the relevant cache management operations, except

for getting the actual bytes from the memory.

Record the number of CM's, H's, and M's.

Simulate the cache under the parameters: N = 24, M = 4, and L = 4

Compute and output the hit ratio and the CM ratio

Repeat the simulation under the parameters: N= 24, M = 4, and L = 5

Compute and output the hit ratio and the CM ratio

C Programming Software Architecture

Project ID: #8999741

About the project

2 proposals Remote project Active Nov 29, 2015

2 freelancers are bidding on average $105 for this job

utkarshkatiyar19

Hi. i have alot of experience in C programming. I think i can help you with this project. we can have a chat about it. thanks

$60 USD in 3 days
(375 Reviews)
7.3
alohaImMatt

A proposal has not yet been provided

$150 USD in 3 days
(0 Reviews)
0.4