Jump to content

Unicode characters used as identifiers in UVM Source


Recommended Posts

There is a strange occurrence of Unicode characters used in the following source file of UVM: 1800.2-2020-1.1/src/dpi/uvm_hdl_vcs.c at line 37.

#if defined(VCSMX_FAST_UVM) && !defined(MHPI_FAST_UVM)
#error “UVM_ERROR: THIS VERSION OF VCS DOESN’T SUPPORT VCSMX_FAST_UVM. Compile without -DVCSMX_FAST_UVM”
#endif

Some C compilers/GCC versions might treat the “ (U+201C, Left Double Quotation Mark) and ” (U+201D, Right Double Quotation Mark) as invalid in identifiers and thus result in a compilation error. I guess it is tied to Synopsys hence the VCS tag, but it might still need a fix in further releases.

Changing the Unicode characters to (regular) double quote (") (U+0022, Quotation Mark) fixes the errors.

Also the following comment block in the very same file contains quite sloppy syntax errors, like "Functionn" and "ceccks". If you fix the quotation marks, this would be a nice fix as well. 🙂

Kind regards,

Gergo Vekony

Link to comment
Share on other sites

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