Common CSV Input for All TGs - 1.0 English

Performance AXI Traffic Generator LogiCORE IP Product Guide (PG381)

Document ID
PG381
Release Date
2023-10-18
Version
1.0 English

In this scenario, there are two Traffic Generators (AXI masters) using a common CSV file as input. TG1 has a source ID of 1 and TG2 has a source ID of 2. The traffic is generated by the TG by using TG_NUM value field.

Figure 1. Common CSV Input for All TGs
Both TG1 and TG2 read the CSV file in the following figure. The TG parser reads the TG_NUM value on each CSV line and matches it with the source ID of the TG. In a given line, if the TG_NUM matches with source ID or the TG_NUM field is left empty, the CSV line is executed by the TG.
Figure 2. Common CSV Example
  • CSV line 2 (TG_NUM = 1) is executed only by TG1. TG2 skips this line from execution because it does not match the source ID of TG2.
  • CSV line 3 (TG_NUM = 2) is executed only by TG2. TG1 skips this line from execution because it does not match the source ID of TG1.
  • CSV line 4 (TG_NUM left empty) is executed by both TG1 and TG2 because the TG_NUM field is left empty

The following lines are executed by TG1.

Figure 3. TG1 Parser Output

The following lines are executed by TG2.

Figure 4. TG2 Parser Output