• 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. Sparse array error

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 65
  • Views 15063
  • 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

Sparse array error

abhingp01
abhingp01 over 15 years ago

Hi all,

I am working with cadence IUS8.2 

Following array declaration is  giving  error

----------------------------------error--------------------------------------------

ncvlog_cg: *F,INTERR: INTERNAL ERROR
-----------------------------------------------------------------
The tool has encountered an unexpected condition and must exit.
Contact Cadence Design Systems customer support about this
problem and provide enough information to help us reproduce it,
including the logfile that contains this error message.
  TOOL: ncvlog_cg       08.20-p001
  HOSTNAME: btc6l138
  OPERATING SYSTEM: Linux 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64
MESSAGE: vsto_ots_data - zero offset, class 529, file: /home/xyz/abc/proj/sv/sparse_memory.sv, line: 6

--------------------------Error line 6 -------------------------------------

// Sparse memory array

reg  [31:0] /*sparse*/  sparsemem[0:4_095_999];  <-------------- error on this specific line - 6

 

Regards

Abhishek

  • Cancel
  • Mickey
    Mickey over 15 years ago
    Hi Abhishek, Please download and install the latest hotfix for IUS82 (currently that is 8.20-s018) and rerun your simulation with that updated version. I can't guarantee that the problem is fixed in that version, but I'm thinking that it is highly likely. I've seen a couple of fixes that were implemented for issues that resulted in that error. Best regards, Mickey
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Vinayhonnavara
    Vinayhonnavara over 15 years ago

    Hi Abhishek,

     

     Following is solution for a test-bench. I would recommend that you have an associative array (in case you are not utilizing all the elements). Just a thought why you would need such a huge array. Maybe you can revisit you are design and think of alternate ways instead of declaring a fixed array.  Also would recommend using bit instead of reg (2-state versus 4-state)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • abhingp01
    abhingp01 over 15 years ago

    Hi,

    "Declaring large arrays as sparse tells the simulator that you do not intend to use the entire

    array. This allows the simulator to perform memory optimizations. It does not affect the

    behavior of arrays. The behavior of a sparse array is identical to a “normal” non-sparse array."

     

    This is as per given in NC-Verilog simulator help. 

     I am just curious why its not working.

     

    Regards

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Hilmar
    Hilmar over 15 years ago
    Hi Abishek,
    As Mickey suggested, please use the latest hotfix and let us know what the outcome was.

    Thanks,
    Hilmar
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • abhingp01
    abhingp01 over 15 years ago

    Hi Mickey & Hilmar,

     I installed the latest hotfix for IUS8.2, but the problem still persist.

    If I remove /*sparse*/ pragma, the code runs without any error or warning.

     

    Regards

    Abhishek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Mickey
    Mickey over 15 years ago
    Hi Abhishek, If the problem is being seen in the latest hotfix, then this is a bug. Please open a service request with our customer support by sending an email to support@cadence.com. If possible include an example testcase replicating the crash so that the issue can be investigated and fixed quickly. Best regards, Mickey
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • deniseweisley
    deniseweisley over 15 years ago

     Got this concern also..and I got problem in resolving this one..its quite a week since I experience this one..glad that I found some solutions here,..hopefully I'll definitely fix now my problem...

    • 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