Skip to content

Cache model

Pavel I. Kryukov edited this page Mar 21, 2020 · 6 revisions

CacheTagArray class

Class CacheTagArray implements the concepts of a real tag array in a CPU cache. As you know, the cache tag array (unlike cache data array) does not store any real data (bytes of instructions, variables, arrays, etc). It is only responsible for generation hit signal, i.e. it can say whether a particular block is contained by the cache or not, but cannot provide the block data itself.

https://github.com/MIPT-ILab/mipt-mips/blob/e375157e8a6b8630d8c0c438f24f23965fe8b46b/simulator/infra/cache/cache_tag_array.h#L23-L80

You are free to add as many additional methods and classes as you want, but you cannot change these interfaces.

Clone this wiki locally