trait HasPeripheryI2CBundle {
val i2cs: Vec[I2CPort]
- def toGPIOPins(dummy: Int = 1): Seq[I2CGPIOPort] = i2cs.map { i =>
- val pin = Module(new I2CGPIOPort)
+ def toGPIOPins(syncStages: Int = 0): Seq[I2CGPIOPort] = i2cs.map { i =>
+ val pin = Module(new I2CGPIOPort(syncStages))
pin.io.i2c <> i
pin
}
trait HasPeripherySPIBundle {
val spis: HeterogeneousBag[SPIPortIO]
- def SPItoGPIOPins(sync_stages: Int = 0): Seq[SPIGPIOPort] = spis.map { s =>
- val pin = Module(new SPIGPIOPort(s.c, sync_stages))
+ def SPItoGPIOPins(syncStages: Int = 0): Seq[SPIGPIOPort] = spis.map { s =>
+ val pin = Module(new SPIGPIOPort(s.c, syncStages))
pin.io.spi <> s
pin
}
uarts.foreach { _.rxd := UInt(1) }
}
- def UARTtoGPIOPins(sync_stages: Int = 0): Seq[UARTGPIOPort] = uarts.map { u =>
- val pin = Module(new UARTGPIOPort(sync_stages))
+ def UARTtoGPIOPins(syncStages: Int = 0): Seq[UARTGPIOPort] = uarts.map { u =>
+ val pin = Module(new UARTGPIOPort(syncStages))
pin.io.uart <> u
pin
}