public List <Cache> InitializeCache(int rowCount, int blockSize) { int wordSize = DataCleaner.BitCounter(blockSize); int mmSize = 11; int tagSize = mmSize - wordSize; cacheList = new List <Cache>(); for (int i = 0; i < rowCount; i++) { cacheList.Add(new Cache() { Tag = DataCleaner.PadHexLeftValue(tagSize, ""), Word = DataCleaner.PadHexLeftValue(wordSize, ""), Addr = "0", Value = "0", Age = 0 }); } return(cacheList); }