Overriding a component having imps by a component which redefines the imps

Hi,

I have a generic component, gen_comp, with analysis_ports and imps in it. I use this generic component for all the TB connections. But based on my use case, I want to override this component with a parameterized child component, specific_comp#(WIDTH), which redefines the write functions using the parameter. Is overriding of write_* functions allowed in extended classes? I tried instance override, but see that the write of gen_comp getting triggered. I was expecting the write of specific_comp to be triggered.

Without seeing what you tried, it is difficult to explain what went wrong.

Parameterized classes and interfaces alway create unintended dependencies. You might want to see this: DVCON USA 2020: Parameterize Like a Pro