• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. ncvlog queue bug

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 64
  • Views 13526
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ncvlog queue bug

archive
archive over 17 years ago

Hi, Have a look at the following code: when the queue is defined outside the function I get a compilation error. When it is defined as local, I don't. This looks like a compiler bug. package t; class yy; int a; endclass class x; yy y[$]; function u(int e); int d[$]; yy y1[$]; y1 = y; // the following line passes compilation d = y1.find_index(item) with (item.a == e); // but this one gives compilation error d = y.find_index(item) with (item.a == e); endfunction // u endclass // x endpackage


Originally posted in cdnusers.org by avidan_e
  • Cancel
  • archive
    archive over 17 years ago

    Hi Avidan,

    You are probably right. Please file a service request through sourcelink.cadence.com, so this can be fixed and communicated back to you.

    Thanks much,

    Zeev.


    Originally posted in cdnusers.org by zeevk
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    It acts as if the compiler, when processing the "with" clause, is setting its scope to the scope where the queue is declared. Thus the function input 'e' is not seen since it isn't part of the scope where y was declared.

    The following does compile for me:

    class x;
    yy y[$];
    protected int tmp_e;
    function u(int e);
    int d[$];
    tmp_e = e;
    d = y.find_index(item) with (item.a == tmp_e);
    endfunction // u
    endclass // x

    PS. If you choose *not* file file a bug report, please let us know so we can follow up on this. I don't want to see it forgotten.


    Originally posted in cdnusers.org by TAM
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    Hi, I choose *not* to file a bug report...I'm putting up the problems I encounter here. I guess its up to you guys to decide which of them are actual bugs that are worth passing onwards... Avidan


    Originally posted in cdnusers.org by avidan_e
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information