Customizing the Test Bench - 4.0 English - PG029

Quad Serial Gigabit Media Independent LogiCORE IP Product Guide (PG029)

Document ID
PG029
Release Date
2025-12-09
Version
4.0 English

Changing Frame Data

You can change the contents of the four frames used by the demonstration test bench by changing the data and valid fields for each frame defined in the send frame module. New frames can be added by defining a new frame of data. Modified frames are automatically updated in both the stimulus and monitor functions.

Changing Frame Error Status

Errors can be inserted into any of the predefined frames in any position by setting the error field to “1” in any column of that frame. Injected errors are automatically updated in both the stimulus and monitor functions.

Changing the Core Configuration

The configuration of the QSGMII core used in the demonstration test bench can be altered.

CAUTION:
Certain configurations of the core cause the test bench to fail, or to cause processes to run indefinitely. For example, the demonstration test bench does not Auto-Negotiate with the design example. Determine the configurations that can safely be used with the test bench.

The core can be reconfigured by editing the injected MDIO frame in the demonstration test bench top-level.

Changing the Operational Speed

The speed of both the example design and test bench can be set to the desired operational speed by editing the following settings, recompiling the test bench, and then running the simulation again. The changes also need to be implemented in the example design.

1 Gb/s Operation

set speed_is_10_100_chx to logic 0

100 Mb/s Operation

set speed_is_10_100_chx to logic 1
set speed_is_100_chx to logic 1

10 Mb/s Operation

set speed_is_10_100_chx to logic 1
set speed_is_100_chx to logic 0