Calling get_config* from ovm_sequence_item

Hi,

In my code, I need to pass certain information/parameter from the top level instance to a checker transaction.

The transaction is of type ovm_sequence_item. If I call this inside one the functions of transaction class,

get_config_int(“var”, var);

I see an Error saying,

“Identifier ‘get_config_int’ has not been declared yet.”

Is there some other way to do it? I understand that it may not be a great idea, but that is needed given how the current testbench is set up.

Appreciate the help.

In reply to cooltoad:

get_config_int only works on classes derived from UVM component. Use the sequencer component that the sequence is running on.

https://verificationacademy.com/cookbook/ovm/configuration