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