sathyakiran.p Posted June 18, 2014 Report Posted June 18, 2014 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 Quote
dave_59 Posted June 18, 2014 Report Posted June 18, 2014 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. Quote
sathyakiran.p Posted June 19, 2014 Author Report Posted June 19, 2014 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 Quote
dave_59 Posted June 19, 2014 Report Posted June 19, 2014 That still is a bit vague. If all you want is for your C++ code to invoke your simulator command line, that will depend on the OS and the tool you want executed. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.