• 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 memory support

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 65
  • Views 16647
  • 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 memory support

abhingp01
abhingp01 over 15 years ago

Hi all,

I need to implement quite a large amount of memory (4 GB ) in my OVC.

For which Sparse memory modelling will be most efficient one.

I am currently using Cadence IUS2.0 and need to know if cadence supports sparse memory modelling.

 I will really appresiate if you could suggest some document on "sparse memory modelling" .

Thanks in advance.


Regards
Abhishek

  • Cancel
  • Hilmar
    Hilmar over 15 years ago

     Hi Abhishek,

     

    The best solution for you would likely be vr_ad.It is a very powerful package for register and (sparse) memory modelling.You can find it in either your icpm install, or the sockit, where it is packaged nowadays.

     

    Thanks,

    Hilmar

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Arun Prasad
    Arun Prasad over 15 years ago

    Hi Abhishek

    Did you implement the 4GB memory using sparse memory or by any other means. I am also looking for a similar kind of implementation. It will be helpful if you share some info on this.

     

    Thanks in advance

    Regards
    Arun Prasad

     

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

     Hello,

     

     Simple way is to use 'Associative arrays' from System Verilog.

     Else if you need more advanced one then go for 'regmem package'.

    http://www.ovmworld.org/contributions-details.php?id=43&keywords=An_OVM_Register_Package_V_2.0

     

    Regards,

    Abhishek

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

    The simplest way to model a very very large memory in Verilog is to use the Cadence "sparse" pragma. Here's a snippet from the Cadence documentation:

    To declare a sparse array, insert the /*sparse*/ pragma anywhere within the declaration of the array or after the semicolon that ends the array declaration. For example:

    reg [31:0] /*sparse*/ mem [0:3000000];

    reg [31:0] mem /*sparse*/ [0:3000000];

    reg [31:0] mem [0:3000000]; /*sparse*/

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Arun Prasad
    Arun Prasad over 15 years ago

    thanks abhishek :)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Arun Prasad
    Arun Prasad over 15 years ago

    thanks TAM1

    • 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