for now just support verilog build of hwacha (no tests run on it)

This commit is contained in:
abejgonzalez
2019-05-13 14:15:05 -07:00
parent a377c520a6
commit 7ba56b58d3
3 changed files with 34 additions and 73 deletions

View File

@@ -2,11 +2,10 @@ package example
import chisel3._
import freechips.rocketchip.config.{Parameters, Config}
import freechips.rocketchip.subsystem.{SystemBusKey, RocketTilesKey, CacheBlockBytes, WithRoccExample, WithNMemoryChannels, WithNBigCores, WithRV32}
import freechips.rocketchip.subsystem.{WithRoccExample, WithNMemoryChannels, WithNBigCores, WithRV32}
import freechips.rocketchip.diplomacy.{LazyModule, ValName}
import freechips.rocketchip.devices.tilelink.BootROMParams
import freechips.rocketchip.tile.{XLen, RocketTileParams}
import freechips.rocketchip.rocket.{RocketCoreParams, DCacheParams, ICacheParams, MulDivParams}
import freechips.rocketchip.tile.{XLen}
import testchipip._
import sifive.blocks.devices.gpio._
@@ -169,35 +168,3 @@ class WithGPIOBoomTop extends Config((site, here, up) => {
top
}
})
// -------------
// Mixins for CI
// -------------
/**
* Class to specify a smaller Rocket core for Hwacha CI
*/
class WithNHwachaSmallCores(n: Int) extends Config((site, here, up) => {
case RocketTilesKey => {
val small = RocketTileParams(
core = RocketCoreParams(mulDiv = Some(MulDivParams(
mulUnroll = 8,
mulEarlyOut = true,
divEarlyOut = true))),
btb = None,
dcache = Some(DCacheParams(
rowBits = site(SystemBusKey).beatBits,
nSets = 32,
nWays = 1,
nTLBEntries = 4,
nMSHRs = 0,
blockBytes = site(CacheBlockBytes))),
icache = Some(ICacheParams(
rowBits = site(SystemBusKey).beatBits,
nSets = 32,
nWays = 1,
nTLBEntries = 4,
blockBytes = site(CacheBlockBytes))))
List.tabulate(n)(i => small.copy(hartId = i))
}
})

View File

@@ -21,12 +21,6 @@ class HwachaConfig extends Config(
new hwacha.DefaultHwachaConfig ++
new DefaultRocketConfig)
class SmallRocketForHwachaCIConfig extends Config(
new WithNBanks(1) ++
new WithNHwachaSmallCores(1) ++
new hwacha.DefaultHwachaConfig ++
new DefaultRocketConfig)
class RoccRocketConfig extends Config(
new WithRoccExample ++
new DefaultRocketConfig)