Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 318
  • Last Modified:

Cache Simulation Program - Foundation Code

Hello,

I have an assignment at college, the basis of which is to
"design and implememt a software simulated cache memory
subsystem." I choose to do this in C. A cache of 512 bytes
of data plus overhead is needed. A two-way set-associative
write-through scheme using a least-used replacement algorithm is also to be implemented. Using HEX for all addresses and values, 3 types of requests from the screen
are to be supported: Read, Write, and Display Cache. Detection and summation of cache 'hits' and 'misses' is required.


I have a fair grasp of C but the computer architecture part
of this *IS* new.

Can anyone please point me towards a URL or other C source code area which will help me code the neccessary caching part of this exercise?

Jim Nowlin

jnowlin@ma.ultranet.com
0
jnowlin
Asked:
jnowlin
1 Solution
 
kellyjjCommented:
I would do a search for a site called "the source site".  They have pleanty of source code and other links to good sites.  Hope this helps.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now