• 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. overriding the module parameters

Stats

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

overriding the module parameters

archive
archive over 17 years ago

Hi everyone,
I have created a test bench which has some parameters and it instantiate a module which also has some parameters on its on. i pass the test bench's parameters to the parameters of the instance of the module and it works fine however when i try to override the test bench's parameter during the simulationg, it gives the following error:
Error: (vsim-3852) Invalid override of parameter
i do the following to simulate
vsim -GWIDTH=16 -GADDR_BITSD=9 tb

(WIDTH and ADDR_BITS are parameters of test bench which are passed to parameters of an instance of a module within the test case)
this is how i defined my test bench parameter
module tb #(parameter WIDTH=16,parameter ADDR_BITS=9);
this is how i instantiated the module within the testbench
generator#(WIDTH,ADDR_BITS) g1 (.*);

could someone tell me what could i do during the simulation to override parameters of the test bench ?


Originally posted in cdnusers.org by ROOZ
  • Cancel
Parents
  • archive
    archive over 17 years ago

    I can't help you out much since vsim is the command for executing Mentor's simulator. However, with Cadence Incisive simulator it would be:

    % irun -defparam GWIDTH=16 -defparam GADDR_BITSD=9 tb

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 17 years ago

    I can't help you out much since vsim is the command for executing Mentor's simulator. However, with Cadence Incisive simulator it would be:

    % irun -defparam GWIDTH=16 -defparam GADDR_BITSD=9 tb

    Tim


    Originally posted in cdnusers.org by tpylant
    • 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