• 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. RF Design
  3. [Help] Errors exist in initialization of Verilog-A parameter...

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 63
  • Views 17186
  • 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

[Help] Errors exist in initialization of Verilog-A parameter arrays.

xxgenerall
xxgenerall over 11 years ago

Hi,

Errors exist in initalizaton of Verilog-A parameter arrays. Source code is as below.

 

  • va.jpg
  • View
  • Hide
  • Cancel
  • xxgenerall
    xxgenerall over 11 years ago

    Errors are as below.

     

    • err.jpg
    • View
    • Hide
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • xxgenerall
    xxgenerall over 11 years ago

    I've checked the "veriaref.pdf" file. And no mistake has been found. 

    Can anyone help me, please?

    Thanks in advance. 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 11 years ago

     Much easier if you paste the code rather than a picture of it, as I had to type it in again to test it out.

    You must be using a very old version, because the error message doesn't even appear like that in spectre from IC5141 (at least the most recent hotfix of IC5141 or IC5141 USR6). Also, the template hasn't included "disciplines.h" for some time.

    I used this code:

    `include "disciplines.h"

    module testVA(vout);
    output vout;
    electrical vout;

    parameter real I_gc [1:4] = {-5.0,-1,0,5.0,10.0};

    analog begin
      $display("TESTING\n",I_gc[1],I_gc[2],I_gc[3],I_gc[4]);
    end

    endmodule

    and in versions from MMSIM61 onwards this works (albeit with a warning because the initializer has 5 elements whereas the array only has 4 elements). 

    If I use spectre from IC5141 or MMSIM60, I get:

    Error found by spectre during SpectreHDL compile.
        "/export/home/andrewb/demos/SpectreRF/training/testVA/veriloga/veriloga.va",
            line 7: "parameter real I_gc [1:4] = {-5.0,-1,0,5.0,10.0};<<--? "
        "/export/home/andrewb/demos/SpectreRF/training/testVA/veriloga/veriloga.va",
            line 7: Error: arrays cannot be initialized.

     Anyway, with MMSIM61 or later it works OK. Assuming there wasn't some other typo in the file that I missed when I typed it in myself.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • xxgenerall
    xxgenerall over 11 years ago

    Sorry to upload a picture. I will remember this.

    I used spectre from IC5141.  The version is old which produced errors like above.

    Thanks a lot for your help. Mr. Beckett.

     

    • 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