1
0

Add WithClockFrequency class to update frequencies

This commit is contained in:
Klemens Schölhorn 2018-06-06 01:04:38 +02:00
parent 81d631a6a1
commit 8710fe9561

View File

@ -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) => { class WithDefaultBtb extends Config((site, here, up) => {
case RocketTilesKey => up(RocketTilesKey, site) map { r => case RocketTilesKey => up(RocketTilesKey, site) map { r =>
r.copy(btb = Some(BTBParams())) r.copy(btb = Some(BTBParams()))