Vcs simulator error while running ovm verification environment

i’m using OVM verification methodology while running a file in NCV and in questa simulators its running properly while running in VCS it gives one error.i’m using
vcs-2009.12-6 version.

The error is Error-[CVMBI] Const var must be initialized
/tools/ovm/ovm-2.1.1/src/base/ovm_queue.svh, 85
Const variable ‘default_value’ must be initialized.

CAN ANY ONE GUIDE ME TO RESOLVE THIS ERROR.

THANKS,
SAKTHI

Hi Sakthi,

Did you download the interoperable library from the synopsys site ? Which are the library files you are pointng at when you run the OVM examples in VCS ?

Thanks
Asha Rai

Hi Sakthi,

According to the LRM Const variable ‘default_value’ must be initialized.

Refer SystemVerilog LRM(1800-2005) section6.3 for details

You can solve the above error by replacing the line number 85
const T default_value; //--------In the file OVM_HOME/src/base/ovm_queue.svh

with

ifndef VCS1 const endif T default_value;

Try this on the latest version of VCS.

Guess this will solve your issue.

Thanks
Asha Rai

These are all the steps I needed to follow:

http://ovmworld.org/forums/showthread.php?1657-Compiling-2.1.1-on-VCS

Your mileage may vary.