1
0

make CacheConstants an object

This commit is contained in:
Yunsup Lee 2013-11-20 16:43:55 -08:00
parent f13d76628b
commit 056bb156ca

View File

@ -54,6 +54,7 @@ trait AddressConstants {
val PERM_BITS = 6; val PERM_BITS = 6;
} }
object CacheConstants extends CacheConstants
trait CacheConstants { trait CacheConstants {
val CACHE_DATA_SIZE_IN_BYTES = 1 << 6 val CACHE_DATA_SIZE_IN_BYTES = 1 << 6
val OFFSET_BITS = log2Up(CACHE_DATA_SIZE_IN_BYTES) val OFFSET_BITS = log2Up(CACHE_DATA_SIZE_IN_BYTES)