Add WithClockFrequency class to update frequencies
This commit is contained in:
parent
81d631a6a1
commit
8710fe9561
@ -230,6 +230,14 @@ class WithRoccExample extends Config((site, here, up) => {
|
||||
}
|
||||
})
|
||||
|
||||
class WithClockFrequency(frequency: BigInt) extends Config((site, here, up) => {
|
||||
case RocketTilesKey => up(RocketTilesKey, site) map { r =>
|
||||
r.copy(core = r.core.copy(bootFreqHz = frequency))
|
||||
}
|
||||
case PeripheryBusKey => up(PeripheryBusKey, site)
|
||||
.copy(frequency = frequency)
|
||||
})
|
||||
|
||||
class WithDefaultBtb extends Config((site, here, up) => {
|
||||
case RocketTilesKey => up(RocketTilesKey, site) map { r =>
|
||||
r.copy(btb = Some(BTBParams()))
|
||||
|
Loading…
Reference in New Issue
Block a user