This article describes a module that can easily be inserted into a design and interfaced to the GT's DRP port to perform a simple Eye Scan. In UltraScale designs the In System IBERT function should be used instead.
The data is ported to an ILA module which can then be exported to a CSV file for analysis. Some analysis can be done on screen.
The module can be inserted in the top level code that performs the Eye Scan. The instantiation and code is shown below.
There is a VIO in the module which starts the scan. This can also be used to write to the GT through the DRP ports, in order to modify parameters so that performance comparisons can be done.
Changes are needed to some attributes to enable the Eye Scan. The ES_SDATA_MASK will vary depending on the width of the internal data bus. In the case shown below it is set to 20.
In addition pma_rsv2 bit 5 needs to be set to 1. For the example design, the value becomes the following:
The values outside of bit 5 can vary depending on the design. These attributes can be changed in the constraint file and could also be changed with the VIO ports in the eyeScan.v module.
To run the Eye Scan set the ILA to run on trigger. Then press the go button in the VIO screen. The ILA output will show the vertical and horizontal positons and the sample count and errors at that position.
In the sample shown below you can see the eye is open from 43 to -17 on the horizontal axis at a vertical position of 75.
This output can be exported to a CSV file for processing in Excel or Matlab to get the normal eye diagram.