MatchLib
sc_in_conditional< T, enable > Class Template Reference

An AXI manager that generates traffic according to a file for use in testbenches. More...

#include <ManagerFromFile.h>

Inheritance diagram for sc_in_conditional< T, enable >:

Detailed Description

template<typename T, bool enable>
class sc_in_conditional< T, enable >

An AXI manager that generates traffic according to a file for use in testbenches.

Template Parameters
axiCfgA valid AXI config.
enable_interruptsSet true to enable support for interrupt instructions (default false)
Overview
AxiManagerFromFile reads write and read requests from a CSV and issues them as an AXI manager. Read responses are checked agains the expected values provided in the file. If enable_interrupts is true, the file can also specify a wait-for-interrupt mode in which the interrupt input must go high before further instructions are processed. The format of the CSV is as follows:
  • Writes: delay_from_previous_request,W,address_in_hex,data_in_hex,burst_len
  • Reads: delay_from_previous_request,R,address_in_hex,expected_response_data_in_hex,burst_len
  • Interrupts: delay_from_previous_request,Q,arbitrary,arbitrary,arbitrary

    For reads, it's best to specify the full DATA_WIDTH of expected response data.

    Use burst_len=0 for a single-beat transaction (no burst). For burst_len>0, use one line for each beat in the burst. All beats in a burst must have the same burst_len, be listed sequentially with appropriately incrementing addresses, and be grouped together (no intervening transactions). The delay field on beats in a burst after the first is ignored (all subsequent beats are sent as soon as possible).

Definition at line 61 of file ManagerFromFile.h.


The documentation for this class was generated from the following file: