1
0

subsystem: expose HasTiles Parameters

This commit is contained in:
Henry Cook 2018-02-22 23:46:08 -08:00
parent 099bbec666
commit 5b1d72c776

View File

@ -15,6 +15,7 @@ class ClockedTileInputs(implicit val p: Parameters) extends ParameterizedBundle
with Clocked with Clocked
trait HasTiles { this: BaseSubsystem => trait HasTiles { this: BaseSubsystem =>
implicit val p: Parameters
val tiles: Seq[BaseTile] val tiles: Seq[BaseTile]
protected def tileParams: Seq[TileParams] = tiles.map(_.tileParams) protected def tileParams: Seq[TileParams] = tiles.map(_.tileParams)
def nTiles: Int = tileParams.size def nTiles: Int = tileParams.size