Merge pull request #120 from ucb-bar/rebar-dev-hart0-tests
use hart0 for the test suite
This commit is contained in:
commit
9a22afb58f
|
@ -57,11 +57,11 @@ object Generator extends GeneratorApp {
|
||||||
import freechips.rocketchip.system.DefaultTestSuites._
|
import freechips.rocketchip.system.DefaultTestSuites._
|
||||||
val xlen = params(XLen)
|
val xlen = params(XLen)
|
||||||
|
|
||||||
// TODO: for now only generate tests for the first rocket/boom tile in the subsystem
|
|
||||||
// TODO: support heterogenous systems?
|
// TODO: support heterogenous systems?
|
||||||
|
// TODO: generate tests for hart0 of the system since asm tests run on hart0 by default
|
||||||
|
|
||||||
// rocket specific tests
|
// rocket specific tests
|
||||||
params(RocketTilesKey).headOption.map { tileParams =>
|
params(RocketTilesKey).find(_.hartId == 0).map { tileParams =>
|
||||||
val coreParams = tileParams.core
|
val coreParams = tileParams.core
|
||||||
val vm = coreParams.useVM
|
val vm = coreParams.useVM
|
||||||
val env = if (vm) List("p","v") else List("p")
|
val env = if (vm) List("p","v") else List("p")
|
||||||
|
@ -95,7 +95,7 @@ object Generator extends GeneratorApp {
|
||||||
}
|
}
|
||||||
|
|
||||||
// boom specific tests
|
// boom specific tests
|
||||||
params(BoomTilesKey).headOption.map { tileParams =>
|
params(BoomTilesKey).find(_.hartId == 0).map { tileParams =>
|
||||||
val coreParams = tileParams.core
|
val coreParams = tileParams.core
|
||||||
val vm = coreParams.useVM
|
val vm = coreParams.useVM
|
||||||
val env = if (vm) List("p","v") else List("p")
|
val env = if (vm) List("p","v") else List("p")
|
||||||
|
|
Loading…
Reference in New Issue