use varargs instead of seq
This commit is contained in:
@@ -133,12 +133,12 @@ class WithMultiRoCC extends Config((site, here, up) => {
|
|||||||
* For ex:
|
* For ex:
|
||||||
* Core 0, 1, 2, 3 have been defined earlier
|
* Core 0, 1, 2, 3 have been defined earlier
|
||||||
* with hartIds of 0, 1, 2, 3 respectively
|
* with hartIds of 0, 1, 2, 3 respectively
|
||||||
* And you call WithMultiRoCCHwacha(Seq(0,1))
|
* And you call WithMultiRoCCHwacha(0,1)
|
||||||
* Then Core 0 and 1 will get a Hwacha
|
* Then Core 0 and 1 will get a Hwacha
|
||||||
*
|
*
|
||||||
* @param harts Seq of harts to specify which will get a Hwacha
|
* @param harts harts to specify which will get a Hwacha
|
||||||
*/
|
*/
|
||||||
class WithMultiRoCCHwacha(harts: Seq[Int]) extends Config((site, here, up) => {
|
class WithMultiRoCCHwacha(harts: Int*) extends Config((site, here, up) => {
|
||||||
case MultiRoCCKey => {
|
case MultiRoCCKey => {
|
||||||
require(harts.max <= ((up(RocketTilesKey, site).length + up(BoomTilesKey, site).length) - 1))
|
require(harts.max <= ((up(RocketTilesKey, site).length + up(BoomTilesKey, site).length) - 1))
|
||||||
up(MultiRoCCKey, site) ++ harts.distinct.map{ i =>
|
up(MultiRoCCKey, site) ++ harts.distinct.map{ i =>
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ class DualCoreBoomAndOneHwachaRocketConfig extends Config(
|
|||||||
new WithNormalBoomAndRocketTop ++
|
new WithNormalBoomAndRocketTop ++
|
||||||
new WithBootROM ++
|
new WithBootROM ++
|
||||||
new WithMultiRoCC ++
|
new WithMultiRoCC ++
|
||||||
new WithMultiRoCCHwacha(Seq(0)) ++ // put Hwacha just on hart0 which was renumbered to Rocket
|
new WithMultiRoCCHwacha(0) ++ // put Hwacha just on hart0 which was renumbered to Rocket
|
||||||
new boom.system.WithRenumberHarts ++
|
new boom.system.WithRenumberHarts ++
|
||||||
new hwacha.DefaultHwachaConfig ++
|
new hwacha.DefaultHwachaConfig ++
|
||||||
new boom.common.WithRVC ++
|
new boom.common.WithRVC ++
|
||||||
|
|||||||
Reference in New Issue
Block a user