从站默认自己最后一个设备,闭合上行回路

This commit is contained in:
Ruige Lee
2025-04-29 16:02:01 +08:00
parent a93c767240
commit b0ecbcc983
2 changed files with 6 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ abstract class SlaveParserBase extends Module{
val upSendGen = Module(new SlaveSendGen)
val isReadyToProbe = RegInit(false.B)
val isLastDevice: Bool = RegInit(false.B)
val isLastDevice: Bool = RegInit(true.B)
val isDeviceModified: Bool = RegInit(true.B)
val localDevIndex = RegInit(0.U(14.W)) //当前设备索引
@@ -661,11 +661,11 @@ trait SlaveParserProbe{ this: SlaveParserBase =>
io.upOut <> upSendGen.io.send
io.upOut <> Queue( upSendGen.io.send, 1, true, true )
io.downIn <> downRecParser.io.rec
when( isLastDevice & ~isReadyToProbe ){ //最后一个设备且不是探测模式
downSendGen.io.send <> upRecParser.io.rec //axis短接
upRecParser.io.rec <> Queue( downSendGen.io.send, 1, true, true ) //axis短接
io.downOut.valid := false.B //对外下级io开路
io.downOut.bits := 0.U.asTypeOf(new AXIS_Bundle(8))
@@ -673,7 +673,7 @@ trait SlaveParserProbe{ this: SlaveParserBase =>
} .otherwise{
io.downOut <> downSendGen.io.send
io.downOut <> Queue( downSendGen.io.send, 1, true, true )
io.upIn <> upRecParser.io.rec
}