sReg.isLVDSWriteAble 锁定lvds写入syncPoint和synccfg

This commit is contained in:
RuigeLee
2025-09-08 17:48:08 +08:00
parent 43b70e674c
commit 561f394b16

View File

@@ -869,7 +869,7 @@ trait InterfaceSync{ this: InterfaceBase =>
when( io.lvds.isEnW ){
when( io.lvds.addrw === "h120".U ){
when( sReg.isLVDSWriteAble & io.lvds.addrw === "h120".U ){
syncCfg := io.lvds.dataw
}
@@ -897,8 +897,10 @@ trait InterfaceSync{ this: InterfaceBase =>
syncPoint_WRCopy := Cat( syncPoint_WRCopy(63,56), io.lvds.dataw, syncPoint_WRCopy(47,0) )
} .elsewhen( io.lvds.addrw === "h137".U ){
syncPoint_WRCopy := Cat( io.lvds.dataw, syncPoint_WRCopy(55,0) )
when( sReg.isLVDSWriteAble ){
syncPoint := Cat( io.lvds.dataw, syncPoint_WRCopy(55,0) )
}
}
.elsewhen( io.lvds.addrw === "h138".U ){
syncPeroid := Cat( syncPeroid(31,8), io.lvds.dataw )