• 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. probe tcl syntax to save variables inside automatic tasks...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 66
  • Views 13792
  • 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

probe tcl syntax to save variables inside automatic tasks in systemverilog

dtodorov
dtodorov over 4 years ago

Greetings,

I am running a testbench via xcellium, where the signals to be probed are defined via probe.tcl file, containing :

probe -create -tasks -functions -all -depth 4 -dynamic -variables testbench

However, inside the testbench I have an automatic SystemVerilog task, which internal variables I need to save. In Simvision, I see the task listed as a hierarchy member, but the internal variables are not saved. 

Variables in all other tasks (not automatic tasks) are saved as expected.

I searched through xcellium documentation for tcl commands, specifically in the probe definition, but could not figure out what is missing in the arguments I use. 

Has anybody encountered such hiccup so far?

Thanks,

Dimitar

  • Cancel
  • Pedro P
    Pedro P over 4 years ago

    Hi Dimitar, I have the same issue , cant probe variables inside a automatic task.

    Anyone can help us with this?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • StephenH
    StephenH over 4 years ago

    The problem is that automatic tasks and functions are transient, so they don't have an associated hierarchy in the way that a static function or task does. With static methods, the internal variables are shared across all calls to the method and the variables exist "forever", hence like any module-scoped signal, they have a true hierarchical name and can be probed.

    With an automatic task or function, the variables are existing only whilst that method is executing, they are dynamically allocated on the "heap" memory and are discarded when the method finishes. Given that an automatic task could have multiple parallel threads of execution (i.e. the task might have been started multiple times in parallel before any one copy has completed), then the only way to uniquely identify the actual set of variables for *that* instance of the task, would be to invent some kind of automatic naming that is based on the execution stack and unique across the life of the simulation (to avoid name clashes or ambiguity if a name got reused later). If you had 1000 calls to the task, that would need 1000 unique names in the hierarchy, and it would get very cluttered.

    On top of that, since the variables only exist whilst the method is running, and a method may complete in zero simulation time, how would that even be shown on the waveform?

    This is why you can't probe variables inside automatic methods - there's no good way to view the results! If you need to debug inside automatic methods, it's best to place breakpoints in the method and debug interactively.

    If you know you're only going to have 1 copy of the task running at once, consider making it static, or declare some static variables to assign debug information to (remember, an automatic method is permitted to access static variables).

    • 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