1
0

make # of dcache lines configurable

This commit is contained in:
Andrew Waterman
2012-02-01 21:11:45 -08:00
parent b1bbf56b74
commit 01a156eb98
3 changed files with 23 additions and 22 deletions

View File

@ -187,8 +187,10 @@ object Constants
val NRPQ = 16; // number of secondary misses
val NSDQ = 17; // number of secondary stores/AMOs
val LG_REFILL_WIDTH = 4; // log2(cache bus width in bytes)
val IDX_BITS = PGIDX_BITS - OFFSET_BITS;
val IDX_BITS = 7;
val TAG_BITS = PADDR_BITS - OFFSET_BITS - IDX_BITS;
val NWAYS = 1;
require(IDX_BITS+OFFSET_BITS <= PGIDX_BITS);
// external memory interface
val IMEM_TAG_BITS = 1;