spi请求地址大小端翻转

This commit is contained in:
Ruige Lee
2025-05-28 16:41:32 +08:00
committed by bacon
parent bf3722446a
commit c1f31a63b3
2 changed files with 4 additions and 4 deletions

View File

@@ -400,8 +400,8 @@ end
//sidx为0~4外部spi为5~9外部qspi为10~15
task spi_trans( input [15:0] saddress, input [7:0] scmd, input [12:0] slength,input [7:0] sidx );
begin
txBuf[0] <= saddress[7:0];
txBuf[1] <= saddress[15:8];
txBuf[0] <= saddress[15:8];
txBuf[1] <= saddress[7:0];
txBuf[2] <= scmd;
length <= slength + 3;