Method 3 for Write Transaction - 1.1 English

AXI Verification IP LogiCORE IP Product Guide (PG267)

Document ID
PG267
Release Date
2021-12-02
Version
1.1 English

This methods shows how to use the APIs to set the command and data of the write transaction.

wr_transaction = mst_agent.wr_driver.create_transaction("write transaction");

wr_transaction.set_write_cmd(mtestADDR,mtestBurstType,mtestID,

mtestBurstLength,mtestDataSize);

wr_transaction.set_data_block(mtestWData);

for(int beat=0; beat<wr_transaction.get_len()+1; beat++) begin

wr_transaction.set_data_beat(beat, dbeat);

end

mst_agent.wr_driver.send(wr_transaction);