sync包的定点替换 0x25寄存器

This commit is contained in:
Ruige Lee
2025-05-15 14:57:58 +08:00
parent 30df59220f
commit f71b8553cb
5 changed files with 130 additions and 47 deletions

View File

@@ -415,7 +415,7 @@ initial begin
#50000
#50000
#50000
$display("index @ %d", s_ShinTop_Mst.interface__io_timeStamp);
$display("index @ %d", s_ShinTop_Mst.interface__io_cReg_timeStamp);
begin
@@ -463,7 +463,7 @@ initial begin
#50000
#50000
#50000
$display("read&write @ %d", s_ShinTop_Mst.interface__io_timeStamp);
$display("read&write @ %d", s_ShinTop_Mst.interface__io_cReg_timeStamp);
begin
@@ -579,7 +579,7 @@ initial begin
#90000
#90000
$display("sync @ %d", s_ShinTop_Mst.interface__io_timeStamp);
$display("sync @ %d", s_ShinTop_Mst.interface__io_cReg_timeStamp);
begin
@@ -621,6 +621,10 @@ initial begin
spi_trans( (16'h1000), (`SPI_WRITE), (24), (0) ); //写入SM1
//写入替换时间戳替换地址
txBuf[0+3] = 8'h0c;
txBuf[1+3] = 8'hc0;
spi_trans( (16'h25), (`SPI_WRITE), (2), (0) ); //写入SM1
//发布请求
txBuf[0+3] = 8'h18;