cache.h - unsigned lru; } cache_set_t; typedef struct cache...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#define BLOCK_SIZE 64 #define ASSOC 2 #define NUM_SETS 256 #define OFFSET_SZ 6 #define INDEX_SZ 8 #define TAG_SZ 18 typedef struct cache_block { unsigned tag; bool valid; bool dirty; } cache_block_t; typedef struct cache_set { cache_block_t blocks[2];
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: unsigned lru; } cache_set_t; typedef struct cache { cache_set_t sets[NUM_SETS]; // the sets themsleves // statistics unsigned accesses; unsigned hits; unsigned writebacks; } cache_t;...
View Full Document

This note was uploaded on 11/09/2011 for the course CS 232 taught by Professor Kumar during the Spring '08 term at University of Illinois, Urbana Champaign.

Ask a homework question - tutors are online