Skip to content

Commit

Permalink
misc(Config): add KunminghuV2MinimalConfig (#3851)
Browse files Browse the repository at this point in the history
  • Loading branch information
linjuanZ authored Nov 12, 2024
1 parent 393755c commit 4e7f257
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/scala/top/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,28 @@ class KunminghuV2Config(n: Int = 1) extends Config(
++ new DefaultConfig(n)
)

class KunminghuV2MinimalConfig(n: Int = 1) extends Config(
new WithCHI
++ new Config((site, here, up) => {
case SoCParamsKey => up(SoCParamsKey).copy(L3CacheParamsOpt = None) // There will be no L3
})
++ new WithNKBL2(128, inclusive = true, banks = 1, tp = false)
++ new WithNKBL1D(32, ways = 4)
++ new MinimalConfig(n)
)

class XSNoCTopConfig(n: Int = 1) extends Config(
(new KunminghuV2Config(n)).alter((site, here, up) => {
case SoCParamsKey => up(SoCParamsKey).copy(UseXSNoCTop = true)
})
)

class XSNoCTopMinimalConfig(n: Int = 1) extends Config(
(new KunminghuV2MinimalConfig(n)).alter((site, here, up) => {
case SoCParamsKey => up(SoCParamsKey).copy(UseXSNoCTop = true)
})
)

class FpgaDefaultConfig(n: Int = 1) extends Config(
(new WithNKBL3(3 * 1024, inclusive = false, banks = 1, ways = 6)
++ new WithNKBL2(2 * 512, inclusive = true, banks = 4)
Expand Down

0 comments on commit 4e7f257

Please sign in to comment.