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?