Jump to content
Sign in to follow this  
sathyakiran.p

uvm_test call inside c++

Recommended Posts

Hi,

 

I have testbench in uvm environment. I want to call uvm_test from a c++ file. That will be my testcase. 

 

example: class basic_test extends from uvm_test;

 

.....

endclass

 

I want to call basic_test inside a c++ file.

 

Let me know, if you need any further information.

 

Thanks,

Satya

Share this post


Link to post
Share on other sites

You never call a class in C++ or SystemVerilog. You construct class objects and then call class methods in the context of an object.

 

I'm sure you want more interaction between the C++ code and UVM than just selecting which test gets run. You'll need to explain further.

Share this post


Link to post
Share on other sites

our DV environment is in such a way that I need a C++ file to add tests. There is no other interactions b/w c++ and uvm,except, just calling the uvm test. 

I can run the uvm tests using perl/shell scripts, but, want to support it with our current environment.

 

Let me know, if there is any way.

 

Thanks,

Satya

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×