n-way cache driver
David Betz
Posts: 14,516
I've done a little experimenting with an n-way set associative cache driver with the following preliminary results. All of these tests were running the solar_spa demo program that comes with SimpleIDE. The total times are probably somewhat slower than would be achieved in a production run because of the instrumentation that I put into the cache driver to determine hit rate and also how evenly the multiple cache ways are utilized.
direct-mapped , 1 way, 128 tags per way, 64 byte cache lines
time 42.91 seconds
two-way, 2 ways, 64 tags per way, 64 byte cache lines
time 31.27 seconds
four-way, 4 ways, 32 tags per way, 64 byte cache lines
time 30.50 seconds
direct-mapped , 1 way, 128 tags per way, 64 byte cache lines
time 42.91 seconds
two-way, 2 ways, 64 tags per way, 64 byte cache lines
time 31.27 seconds
four-way, 4 ways, 32 tags per way, 64 byte cache lines
time 30.50 seconds
Comments
The solar_spa program is not included in the SimpleIDE package. It's a great work-out though
What test would you like to run? The cache code is checked in to Google Code. I'm running on Martin's DNA-RTC board.
Would this work with the SD card cache system - maybe with 512 byte blocks and 16k of hub ram?