public Cache(int cs, int bs)
        {
            numOfBlock = cs / bs;
            blocks = new List<CacheBlock>(numOfBlock);

            for (int i = 0; i < numOfBlock; i++)
            {
                CacheBlock b = new CacheBlock(i); //i is the block number of each block
                blocks.Add(b);
            }
        }
Ejemplo n.º 2
0
        public Cache(int cs, int bs)
        {
            numOfBlock = cs / bs;
            blocks     = new List <CacheBlock>(numOfBlock);

            for (int i = 0; i < numOfBlock; i++)
            {
                CacheBlock b = new CacheBlock(i); //i is the block number of each block
                blocks.Add(b);
            }
        }