• 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. JasperGold: Can you implement commands conditionally in...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 65
  • Views 3351
  • 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

JasperGold: Can you implement commands conditionally in tcl script?

xccxc
xccxc 8 months ago

Hi,

I am trying to dynamically execute a Jasper tcl script but the commands don't seem to execute despite the log clearly parsing them and seemingly finding them syntactically correct.

get_inst_top

variable A = get_inst_top

if {A=="my_module"} {

connect -bind ...etc

}

This runs and the commands appear green in the GUI log but the code "connect -bind" doesn't produce an instance for that checker file like it does outside the if statement.

  • Cancel
  • ErikSeligman
    ErikSeligman 8 months ago

    Tcl conditionals should work fine in a Jasper console.   But in the code quoted above, it looks like you may be effectively assigning the *string* "get_inst_top" to A, rather than calling a function [get_inst_top], so we expect the conditional to fail.   (Or is this just an error in transcribing it to this forum?)

    In any case, this is usually not the best channel to use for help--  it's best to contact an AE for a hands-on debug session.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • xccxc
    xccxc 8 months ago in reply to ErikSeligman

    Thanks that works

    set <variable_name> [get_inst_top]

    • Cancel
    • Vote Up +1 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