• 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. Debugging constraints with tcl interactive debug mode

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 68
  • Views 9216
  • 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

Debugging constraints with tcl interactive debug mode

chetan somana
chetan somana over 2 years ago

I'm trying to disable the constraint through tcl using "deposit -constraint_mode constraint_name [=] 0|1"

Here is the snippet from Systemverilog in Simulation pdf"

The -rand_mode and -constraint_mode options
■ Are available only when stopped inside a randomize() call.
■ Are available for class randomize calls; they are not supported for scope randomize calls.
■ Must appear first in the Tcl command line, and cannot be used with other deposit
options. "

From my understanding i'm trying to create a stop at line 26 where randomize() is being called. And i'm setting the scope to top.c1 to satisfy the two conditions. check the attachment for the code and document

xmsim: *W,DBGCMD: The constraint_mode could not be set for this reason: Not in a class randomize method call.

When the simulation is completed my goal is that r2 should be different from what is constrained. But i dont see the same behavior in the simulation

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

    You've asked this in a forum related to questions and suggestions about the forum itself, so you wouldn't expect to get answers to technical questions. I'll move this to a more appropriate forum.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • chetan somana
    chetan somana over 2 years ago in reply to Andrew Beckett

    Thankyou Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • chetan somana
    chetan somana over 2 years ago in reply to Andrew Beckett

    Thankyou 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