HasTopLevelNetworksModule
}
import uncore.tilelink2.TLFragmenter
+import util.HeterogeneousBag
case object PeripheryGPIOKey extends Field[Seq[GPIOParams]]
trait HasPeripheryGPIOBundle extends HasTopLevelNetworksBundle {
val outer: HasPeripheryGPIO
- val gpio = HeterogeneousBag(outer.gpioParams(map(new GPIOPortIO(_))))
+ val gpio = HeterogeneousBag(outer.gpioParams.map(new GPIOPortIO(_)))
}
trait HasPeripheryGPIOModule extends HasTopLevelNetworksModule {
val outer: HasPeripheryGPIO
val io: HasPeripheryGPIOBundle
(io.gpio zip outer.gpio) foreach { case (io, device) =>
- io.gpio <> device.module.io.port
+ io <> device.module.io.port
}
}
trait HasPeripherySPIFlashBundle extends HasTopLevelNetworksBundle {
val outer: HasPeripherySPIFlash
- val qspi = HeterogenousBag(outer.spiFlashParams.map(new SPIPortIO(_)))
+ val qspi = HeterogeneousBag(outer.spiFlashParams.map(new SPIPortIO(_)))
}
trait HasPeripherySPIFlashModule extends HasTopLevelNetworksModule {
val io: HasPeripherySPIFlashBundle
(io.qspi zip outer.qspi) foreach { case (io, device) =>
- io.qspi <> device.module.io.port
+ io <> device.module.io.port
}
}