Configs.scala (1d8f4dcb81f46f3830f09013a9836143401cc425) Configs.scala (59239bc96a73f430bbcce1d2e7f46fb72ed68048)
1/***************************************************************************************
2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
3* Copyright (c) 2020-2021 Peng Cheng Laboratory
4*
5* XiangShan is licensed under Mulan PSL v2.
6* You can use this software according to the terms and conditions of the Mulan PSL v2.
7* You may obtain a copy of Mulan PSL v2 at:
8* http://license.coscl.org.cn/MulanPSL2

--- 233 unchanged lines hidden (view full) ---

242 clientCaches = tiles.map{ core =>
243 val l2params = core.L2CacheParamsOpt.get.toCacheParams
244 l2params.copy(sets = 2 * l2params.sets, ways = l2params.ways)
245 },
246 enablePerf = true,
247 ctrl = Some(CacheCtrl(
248 address = 0x39000000,
249 numCores = tiles.size
1/***************************************************************************************
2* Copyright (c) 2020-2021 Institute of Computing Technology, Chinese Academy of Sciences
3* Copyright (c) 2020-2021 Peng Cheng Laboratory
4*
5* XiangShan is licensed under Mulan PSL v2.
6* You can use this software according to the terms and conditions of the Mulan PSL v2.
7* You may obtain a copy of Mulan PSL v2 at:
8* http://license.coscl.org.cn/MulanPSL2

--- 233 unchanged lines hidden (view full) ---

242 clientCaches = tiles.map{ core =>
243 val l2params = core.L2CacheParamsOpt.get.toCacheParams
244 l2params.copy(sets = 2 * l2params.sets, ways = l2params.ways)
245 },
246 enablePerf = true,
247 ctrl = Some(CacheCtrl(
248 address = 0x39000000,
249 numCores = tiles.size
250 ))
250 )),
251 sramClkDivBy2 = true
251 ))
252 )
253})
254
255class WithL3DebugConfig extends Config(
256 new WithNKBL3(256, inclusive = false) ++ new WithNKBL2(64)
257)
258

--- 16 unchanged lines hidden (view full) ---

275 new WithNKBL3(4096, inclusive = false, banks = 4)
276 ++ new WithNKBL2(512, inclusive = false, alwaysReleaseData = true)
277 ++ new WithNKBL1D(128)
278 ++ new BaseConfig(n)
279)
280
281class DefaultConfig(n: Int = 1) extends Config(
282 new WithNKBL3(8 * 1024, inclusive = false, banks = 4, ways = 8)
252 ))
253 )
254})
255
256class WithL3DebugConfig extends Config(
257 new WithNKBL3(256, inclusive = false) ++ new WithNKBL2(64)
258)
259

--- 16 unchanged lines hidden (view full) ---

276 new WithNKBL3(4096, inclusive = false, banks = 4)
277 ++ new WithNKBL2(512, inclusive = false, alwaysReleaseData = true)
278 ++ new WithNKBL1D(128)
279 ++ new BaseConfig(n)
280)
281
282class DefaultConfig(n: Int = 1) extends Config(
283 new WithNKBL3(8 * 1024, inclusive = false, banks = 4, ways = 8)
283 ++ new WithNKBL2(2 * 512, inclusive = false, banks = 2, alwaysReleaseData = true)
284 ++ new WithNKBL2(2 * 512, inclusive = false, banks = 4, alwaysReleaseData = true)
284 ++ new WithNKBL1D(128)
285 ++ new BaseConfig(n)
286)
285 ++ new WithNKBL1D(128)
286 ++ new BaseConfig(n)
287)