Hi,
I am verifying a layered protocol like PCIE with three layers: transaction, data link, and physical. These layers are connected through analysis ports. I have added a callback class that declares error injection functions, which the user can implement or override in the testcase to introduce error scenarios. Each callback function is associated with one of the layers. How can I associate a callback with the analysis port of its respective layer? If possible, please provide a code snippet.
Thanks