Jump to content

Issue with single line comment in UVM Macro files


Recommended Posts

Hi All,

I am using VCS Version F-2011.12.

While compiling uvm-1.1c package, I am getting compilation in some of the macro files.

Error comes in next line where single line comment is present (in between the definition of `define)


File: $UVM_PKG_PATH/uvm-1.1c/src/macros/uvm_object_defines.svh

1. `define uvm_field_utils_end \

2. if(what__ inside {UVM_SETINT,UVM_SETSTR,UVM_SETOBJ}) begin \

3. // remove all scopes recorded (through super and other objects visited before) \

4. void'(__current_scopes.pop_back()); \

5. __m_uvm_status_container.m_uvm_cycle_scopes = __current_scopes; \

6. end \

7. end \

8. endfunction

Because of single line comment at line 3 (mentioned in above code), Error comes in line 4.

I changed all such comment in required files with multi-line comment and addtional space before backslash.

Line 3 after change:

3. /* remove all scopes recorded (through super and other objects visited before) */ \

Compilation is through with this change. Please let me know if there is any other option to get rid of such issues.

Thanks and Regards

Peer Mohammed

Link to comment
Share on other sites

  • 3 weeks later...

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.

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...