In reply to dave_59:
I have compiled in the scope that is vissible to the driver.The error is not only with respect to the driver. I am trying to parameterize the driver , sequencer and the sequence by the type of transaction by using the definitions as
class c2c_pkt_driver extends uvm_driver #(c2c_data_transaction)
typedef uvm_sequencer #(c2c_data_transaction) c2c_data_sequencer
c2c_data_sequencer c2c_data_seqr
class c2c_pkt_sequence extends uvm_sequence #(c2c_data_transaction)
class c2c_data_transaction extends uvm_sequence_item;
`uvm_object_utils(c2c_data_transaction) …
In all the three places ie(driver sequencer and sequence ) error says c2c_data_transaction is undefined variable
I have included `include “c2c_data_transaction.sv” at environment level so that it is vissible for all the components below environment