Skip to content

Commit

Permalink
feat(Configs): add FpgaDiffDefaultConfig (#3893)
Browse files Browse the repository at this point in the history
Add a configuration to enable basic diff when fpga difftest is used.
  • Loading branch information
xiaokamikami authored Nov 19, 2024
1 parent 03426fe commit aecf601
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/scala/top/Configs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -464,3 +464,20 @@ class FpgaDefaultConfig(n: Int = 1) extends Config(
)
})
)

class FpgaDiffDefaultConfig(n: Int = 1) extends Config(
(new WithNKBL3(3 * 1024, inclusive = false, banks = 1, ways = 6)
++ new WithNKBL2(2 * 512, inclusive = true, banks = 4)
++ new WithNKBL1D(64, ways = 8)
++ new BaseConfig(n)).alter((site, here, up) => {
case DebugOptionsKey => up(DebugOptionsKey).copy(
AlwaysBasicDiff = true,
AlwaysBasicDB = false
)
case SoCParamsKey => up(SoCParamsKey).copy(
L3CacheParamsOpt = Some(up(SoCParamsKey).L3CacheParamsOpt.get.copy(
sramClkDivBy2 = false,
)),
)
})
)

0 comments on commit aecf601

Please sign in to comment.