I have a parameterized driver. Direct usage make the code verbose.
So, I am trying to make typedefs for these components.
For example, one line of the code appears like this in my agent class:
typedef av_st_mst_driver #(AV_WIDTH) av_st_mst_driver_t;
Please note that the parameter AV_WIDTH is within the scope of the agent class where the above line is defined.
However, when I try to put the typedef in a common package, I get an error.
The error is pointing to #(AV_WDITH). Is this because value of AV_WIDTH is being resolved in the packet?
When I put this in the agent class, I see no issue.
Is there a solution to this in case I want to put these typedefs in a common package so that multiple agents can use these typedefs?