• 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. Pass variables to tcl script in Xcelium

Stats

  • Replies 2
  • Subscribers 65
  • Views 2171
  • Members are here 0

Pass variables to tcl script in Xcelium

JF202503209845
JF202503209845 6 months ago

Hello,

I'm trying to pass a Variable through a command line input in the environment, so that my tcl script can take this for its startup initialization.

xrun ... -command_that_sets_sets_a_variable -input "start_script_that_likes_to_read_a_variable.tcl" ...

The idea is that my tcl script loads different configs for SimVision depending on a string I input in the command line. That way I can simply swap out a word in my command line and Xcelium loads (for example) waveforms in a way I want/starts or not/sets breakpoints/whatever. I've tried a few options, but I either didn't understand the documentation or I've searched on the wrong end.

Kind regards
Jan

  • Sign in to reply
  • Cancel
  • StephenH
    StephenH 29 days ago

    Hi Jan.

    You can pass Tcl commands directly by starting the argument to -input with an "@" symbol:

    xrun -input "@set my_var 123" -input my_script_that_reads_my_var.tcl

    Hope this helps.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • JF202503209845
    JF202503209845 16 hours ago in reply to StephenH

    Hi Stephen,

    Solved my Problem, thank you.

    Kind regards,

    Jan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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