+
+ // It is important for SPIFlash that the syncStages is agreed upon, because
+ // internally it needs to realign the input data to the output SCK.
+ // Therefore, we rely on the syncStages parameter.
+ def SPIFlashtoGPIOPins(syncStages: Int = 0): Seq[SPIPinsIO] = qspi.map { s =>
+ val pins = Module(new SPIGPIOPort(s.c, syncStages))
+ pins.io.spi <> s
+ pins.io.pins
+ }