修正同步宽度不能spi修改的问题
This commit is contained in:
@@ -793,10 +793,10 @@ trait InterfaceSync{ this: InterfaceBase =>
|
|||||||
}
|
}
|
||||||
|
|
||||||
for( i <- 0 until 4 ){
|
for( i <- 0 until 4 ){
|
||||||
when( io.lvds.addrw === ("h122".U(16.W) + (2*i).U)){
|
when( addrw === ("h122".U(16.W) + (2*i).U)){
|
||||||
syncWidth(i) := Cat( syncWidth(i)(15,8), io.lvds.dataw )
|
syncWidth(i) := Cat( syncWidth(i)(15,8), dataw )
|
||||||
} .elsewhen( io.lvds.addrw === ("h123".U(16.W) + (2*i).U) ){
|
} .elsewhen( addrw === ("h123".U(16.W) + (2*i).U) ){
|
||||||
syncWidth(i) := Cat( io.lvds.dataw, syncWidth(i)(7,0) )
|
syncWidth(i) := Cat( dataw, syncWidth(i)(7,0) )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user