Jump to content

Recommended Posts

Posted

Hello,

I am new to UVM SystemC setup.

I have installed systemc-2.3.2 & uvm-systemc-1.0-beta4

I don't see any errors while installing the above two. In SystemC installation, I tried:

1. configure --with-systemc=/Users/jaganradha/systemc-2.3.2 

2. make

3. make check - In this step, I started getting errors like below: (This is the first error I have copy pasted)

error: use of undeclared identifier 'paddr'
        sc_core::sc_signal<sc_dt::sc_lv<32>> paddr;

Any idea how to take care of this?

I am running on Mac Book air:

MacOS Monterey - version 12.3.1

Can some one help me on this?

Thanks

Jagan

Posted

Hi Stephen, it is compile error. 

Here is the error:

simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:45:46: error: use of undeclared identifier 'paddr'
        sc_core::sc_signal<sc_dt::sc_lv<32>> paddr;
                                             ^
simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:45:51: error: expected a type
        sc_core::sc_signal<sc_dt::sc_lv<32>> paddr;
                                                  ^
simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:49:43: warning: use of right-shift operator ('>>') in template argument will require parentheses in C++11 [-Wc++11-compat]
        sc_core::sc_signal<sc_dt::sc_lv<32>> prdata;
                                          ^
simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:49:46: error: use of undeclared identifier 'prdata'
        sc_core::sc_signal<sc_dt::sc_lv<32>> prdata;
                                             ^
simple/registers/models/fifo_reg/src/../inc/../../../../../integrated/apb/inc/apb_if.h:49:52: error: expected a type
        sc_core::sc_signal<sc_dt::sc_lv<32>> prdata;

Thanks

Jagan

Posted

I see CXX = g++ in the Makefile under: /home/jaganradha/uvm-systemc-1.0-beta4

When I did g++ --version, I am getting the following:

g++ --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 11.0.3 (clang-1103.0.32.59)
Target: x86_64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

I am assuming it should be using g++ version 4.2.1

Thanks

Jagan 

Posted

This seems a bit strange as GCC 4.2.1 would be horribly out of date while your Xcode/Clang dates from 2020. Anyway, can you please try to change the affected lines as shown and report back?

sc_core::sc_signal<sc_dt::sc_lv<32>> paddr

to

sc_core::sc_signal<sc_dt::sc_lv<32> > paddr

 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...