• 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. Custom IC Design
  3. Define 2D parameter array in Verilog-A

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 13965
  • 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

Define 2D parameter array in Verilog-A

rhanna
rhanna over 4 years ago

Hi,

I am trying to define 2D array of parameters in a verilogA module through the following lines of code:

parameter integer n=5;
parameter real parameter_list [0:n-1] [0:n-1]= '{'{0.2708257 , -0.46025938, -1.1388761 ,  2.2895677 , -4.606953},{-0.26319385,  0.27142802, -0.03004766,  0.58815295,  0.41621587},{0.43305433, -0.6671857 , -0.6406911 ,  2.5719018 , -1.2188686},{-0.11666635, -1.4156482 , -0.24230653,  1.1738745 , -4.8155065},{0.09081186,  0.0646341 ,  0.09443812, -0.24232996,  1.2946442}};

but I'm getting this error:

Error: Encountered uninitialized parameter, "paramter_list". Initialize parameter and try again.

Can you please help?

Thanks in adavnce,
Ramy

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago

    Remy,

    Whilst this is defined in the Verilog-AMS LRM, it seems that it is not supported in VerilogA with Spectre (it is supported in VerilogAMS with AMS Designer though). I've not seen any enhancement requests asking for it to be supported in Spectre.

    Regards,

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • rhanna
    rhanna over 4 years ago in reply to Andrew Beckett

    Hi Andrew,

    Thanks for the clarification.

    So in VerilogA the only possible way to use a given array of parameters is to flatten it to 1D vector? 

    Regards,

    Ramy 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 4 years ago in reply to rhanna

    I guess so!

    • 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