Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc(Config): add KunminghuV2MinimalConfig #3851

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading