下行写测试通过

This commit is contained in:
Ruige Lee
2025-04-14 17:24:53 +08:00
parent 4552cc05db
commit 95b7f7b476
2 changed files with 80 additions and 37 deletions

View File

@@ -68,6 +68,7 @@ abstract class SlaveParserBase extends Module{
val localDevIndex = Reg(UInt(14.W)) //当前设备索引
dontTouch(localDevIndex)
// 认为只有下行到下行,上行到上行模式,探针是独立发起操作
@@ -244,10 +245,10 @@ abstract class SlaveParserBase extends Module{
io.sram_w.enr := false.B
io.sram_w.enw := //req fire 后 已经反相
io.sram_w.enw := (downRecParser.io.stateCurr === STATE_PAYLOAD_DATA) & ( //req fire 后 已经反相
( ~isDownRecPing & downSubMsgInfo(0).devIndex === localDevIndex & (downSubMsgInfo(0).operator === 1.U | downSubMsgInfo(0).operator === 3.U)) |
( isDownRecPing & downSubMsgInfo(1).devIndex === localDevIndex & (downSubMsgInfo(1).operator === 1.U | downSubMsgInfo(1).operator === 3.U))
)
io.sram_w.addr := addrw