coreplex: HasTiles supplies def tileParams
This commit is contained in:
parent
ddaeedf2d0
commit
d9c5ec4f7b
@ -15,7 +15,7 @@ class ClockedTileInputs(implicit val p: Parameters) extends ParameterizedBundle
|
|||||||
|
|
||||||
trait HasTiles extends HasSystemBus {
|
trait HasTiles extends HasSystemBus {
|
||||||
val tiles: Seq[BaseTile]
|
val tiles: Seq[BaseTile]
|
||||||
protected def tileParams: Seq[TileParams]
|
protected def tileParams: Seq[TileParams] = tiles.map(_.tileParams)
|
||||||
def nTiles: Int = tileParams.size
|
def nTiles: Int = tileParams.size
|
||||||
def hartIdList: Seq[Int] = tileParams.map(_.hartid)
|
def hartIdList: Seq[Int] = tileParams.map(_.hartid)
|
||||||
def localIntCounts: Seq[Int] = tileParams.map(_.core.nLocalInterrupts)
|
def localIntCounts: Seq[Int] = tileParams.map(_.core.nLocalInterrupts)
|
||||||
|
@ -140,7 +140,6 @@ trait HasRocketTilesModuleImp extends HasTilesModuleImp
|
|||||||
class RocketCoreplex(implicit p: Parameters) extends BaseCoreplex
|
class RocketCoreplex(implicit p: Parameters) extends BaseCoreplex
|
||||||
with HasRocketTiles {
|
with HasRocketTiles {
|
||||||
val tiles = rocketTiles
|
val tiles = rocketTiles
|
||||||
def tileParams = rocketTiles.map(_.tileParams)
|
|
||||||
override lazy val module = new RocketCoreplexModule(this)
|
override lazy val module = new RocketCoreplexModule(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user