Jump to content
agumon9

Using UVM-SystemC in Eclipse with Cygwin

Recommended Posts

Hi all!

 

I am having trouble importing UVM-SystemC library in Eclipse. It does not recognize any of the classes from that library. I installed uvm-systemc-1.0-alpha1 library and I am using Systemc-2.3.1 with Eclipse and Cygwin. When I try to write any of the code, for example: 

#include <uvm>
class packet : public uvm_sequence_item{

};
It labels uvm_sequence_item red and says "Symbol 'uvm_sequence_item' could not be resolved". I added uvm-systemc in properties in library and added include paths to compiler settings in Eclipse.
 

Share this post


Link to post
Share on other sites

This is not a UVM-SystemC library but Eclipse configuration issue.

 

Some things you could check:

  • In the Project Explorer view, the project should be labeled as C/C++ project and contain a subdirectory "Includes". In this list you should see the cygwin and uvm-systemc include directories. If this is not the case, then your project properties are not well defined.
  • Do a Index >> Rebuild
  • Just build the example and see if the error disappear (such build also does start a reindexing

Also note that UVM-SystemC puts all classes in the uvm namespace. This means you should explicitly prefix with uvm:: or define a using namespace uvm (only inside method implementations, not in global scope of  header files)

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

×