Writing Traffic Generators in MATLAB - 2023.2 English

Vitis Unified Software Platform Documentation: Application Acceleration Development (UG1393)

Document ID
Release Date
2023.2 English


You can include external traffic generators created in MATLAB to dynamically generate data traffic on the I/O traffic generators while simulating the design, or to capture output data from the emulation process.The AMD provided MATLAB API can be used to create the traffic generator code as described in the following sections.

The MATLAB API is divided into API for sending and receiving user data on instantiated traffic generator objects. There are also advanced API for packet level granularity if you need more control over transactions. For seamless interaction of traffic generators with simulation process, high-level APIs give you control over sending or receiving the data without worrying much about managing packet level details like TLAST, TKEEP, TSRB. This is auto managed by the sim_IPC infrastructure. Also, an application can communicate to multiple I/O interface. It is not necessary to have each instance of I/O utilities to be in a separate process/thread. If your application requires it, you might consider the non-blocking API to send the data.

The MATLAB API are categorized as follows: