• 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. Mixed-Signal Design
  3. AMS Verilog module parameter passing

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 15035
  • 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

AMS Verilog module parameter passing

Cogito
Cogito over 10 years ago

Hi,

I'm running AMS / cds-incisiv / irun and I've run into an issue.  (cds-incisiv is version 14.20.009-64).  I have Verilog module statements like the following:

module mymod  #(`include "mymod_params.v") ( ...

The irun simulator does not like that syntax.  I get an ncvlog error:

`include directive not isolated on its own line [16.5(IEEE)].

The simulation works if I use the older notation:

module mymod #(param myparam=1) (...

Is there a switch I can set that will force the simulator to use the newer syntax?  Is there a way around this?  Is this slated to be fixed?  I have many modules that I do not to be forced to modify.

Thanks much,

Eric

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Eric,

    I'm not sure why you say "force the simulator to use the newer syntax". The `include within the parameter list is not "newer syntax". According to the IEEE 1364-2005 Verilog LRM, in section 19.5 it says:

    Only white space or a comment may appear on the same line as the `include compiler directive.

    so what you've typed is not legal according to the LRM. The 16.5 is (I think) a reference to the same section in the 1995 LRM. The same line appears in section 22.4 of the SystemVerilog LRM (IEEE 1800-2009 and the same section number in IEEE 1800-2012).

    So why do you think this is legal?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    Eric,

    I'm not sure why you say "force the simulator to use the newer syntax". The `include within the parameter list is not "newer syntax". According to the IEEE 1364-2005 Verilog LRM, in section 19.5 it says:

    Only white space or a comment may appear on the same line as the `include compiler directive.

    so what you've typed is not legal according to the LRM. The 16.5 is (I think) a reference to the same section in the 1995 LRM. The same line appears in section 22.4 of the SystemVerilog LRM (IEEE 1800-2009 and the same section number in IEEE 1800-2012).

    So why do you think this is legal?

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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