1
0

Separate tag ECC and data ECC options (#761)

This commit is contained in:
Andrew Waterman
2017-05-23 12:51:48 -07:00
committed by Henry Cook
parent 940614625e
commit b2b4c1abcd
5 changed files with 29 additions and 20 deletions

View File

@ -15,7 +15,6 @@ trait L1CacheParams {
def nWays: Int
def rowBits: Int
def nTLBEntries: Int
def ecc: Option[Code]
def blockBytes: Int
}
@ -36,7 +35,6 @@ trait HasL1CacheParameters {
def rowBits = cacheParams.rowBits
def rowBytes = rowBits/8
def rowOffBits = log2Up(rowBytes)
def code = cacheParams.ecc.getOrElse(new IdentityCode)
def nTLBEntries = cacheParams.nTLBEntries
def cacheDataBits = p(SharedMemoryTLEdge).bundle.dataBits