QSPI修正可用

This commit is contained in:
Ruige Lee
2025-05-14 16:26:20 +08:00
parent 2e186a8365
commit ed9bf22016
3 changed files with 113 additions and 133 deletions

View File

@@ -230,8 +230,12 @@ trait InterfaceMCUop{ this: InterfaceBase =>
oSpi.io.datar := Mux(cReg.spiSel === 1.U, datar, 0.U)
oQSpi.io.datar := Mux(cReg.spiSel === 2.U, datar, 0.U)
when( isEnW ){
printf(s"SPI/QSPI Write 0x%x, @0x%x\n", dataw, addrSel)
}
when( isEnR ){
printf(s"SPI/QSPI Readout 0x%x, @0x%x\n", datar, addrSel)
}