修正命令的编号

This commit is contained in:
2025-05-22 16:09:03 +08:00
parent 941a63b8ce
commit 892faf6aed
2 changed files with 3 additions and 3 deletions

View File

@@ -673,7 +673,7 @@ initial begin
spi_trans( (16'h00c0), (`SPI_READ), (6), (`IF_IDX(4)) ); spi_trans( (16'h00c0), (`SPI_READ), (6), (`IF_IDX(4)) );
`ifndef ENABLE_CODE `ifdef ENABLE_CODE
begin begin
$fdisplay(spidata_file, "嗅探使用SM1"); $fdisplay(spidata_file, "嗅探使用SM1");
$fdisplay(spidata_file, "--->>>嗅探前,检查链路状态寄存器"); $fdisplay(spidata_file, "--->>>嗅探前,检查链路状态寄存器");

View File

@@ -205,7 +205,7 @@ if __name__ == '__main__':
genPkt.clean() genPkt.clean()
genPkt.setPktType(0) genPkt.setPktType(0)
#subPkt参数索引、索引类型、地址、命令、长度、数据 #subPkt参数索引、索引类型、地址、命令、长度、数据
genPkt.addSubPkt(0x0, 0, random.randint(0, 65535), 0xe, 12, b'\0'*12) genPkt.addSubPkt(0x0, 0, random.randint(0, 65535), 0xc, 12, b'\0'*12)
genPkt.gen("./generated/shin/sync_pkt.vh", 1) genPkt.gen("./generated/shin/sync_pkt.vh", 1)
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@@ -247,7 +247,7 @@ if __name__ == '__main__':
data[0] = 0x3f data[0] = 0x3f
data[1] = 0xff data[1] = 0xff
#subPkt参数索引、索引类型、地址、命令、长度、数据 #subPkt参数索引、索引类型、地址、命令、长度、数据
genPkt.addSubPkt(0x0, 0, random.randint(0, 65535), 0xd, 2, data) genPkt.addSubPkt(0x0, 0, random.randint(0, 65535), 0xb, 2, data)
genPkt.gen("./generated/shin/set_addr_pkt.vh", 1) genPkt.gen("./generated/shin/set_addr_pkt.vh", 1)