subsystem: expose HasTiles Parameters
This commit is contained in:
parent
099bbec666
commit
5b1d72c776
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user