spi写pll寄存器信号拉到顶层

This commit is contained in:
Ruige Lee
2025-08-27 15:20:43 +08:00
parent dd71c557b7
commit fa3ba57f32
2 changed files with 11 additions and 6 deletions

View File

@@ -210,6 +210,7 @@ class InterfaceIO extends Bundle{
val hwSerial = Input(UInt(48.W))
val uniCode = Input(UInt(64.W))
val isPllCfg = Output(Bool())
}
@@ -1317,6 +1318,8 @@ trait InterfaceAnalog{ this: InterfaceBase =>
cReg.ldo1p1 := RegEnable( dataw, "h87".U(8.W), isEnW & addrw === "h52".U )
cReg.refTop := RegEnable( dataw, "h0".U(8.W), isEnW & addrw === "h53".U )
cReg.bias := RegEnable( dataw, "h0".U(8.W), isEnW & addrw === "h54".U )
io.isPllCfg := isEnW & addrw === "h45".U
}
trait InterfaceStat{ this: InterfaceBase =>

View File

@@ -32,6 +32,7 @@ class TopBase_IO_Bundle extends Bundle{
val bias = Output(UInt(2.W))
val spiSel = Output(UInt(2.W))
val isPllCfg = Output(Bool())
}
@@ -92,6 +93,7 @@ abstract class MstSlvSwitchBase extends Module with RequireAsyncReset{
io.bias := interface.io.cReg.bias
io.spiSel := interface.io.cReg.spiSel
io.isPllCfg := interface.io.isPllCfg
val sram = Seq(
for( _ <- 0 until 4 ) yield { Module(new ShareSRAM2k) },