A cpp based cache simulator to study the performance of various replacement policies and different number of cache levels.