• 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. Digital Implementation
  3. Tcl Scripting encounter

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 90
  • Views 14923
  • 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

Tcl Scripting encounter

archive
archive over 19 years ago

Hi all,

I'm developing custom tcl scripts in Encounter for block floorplanning.
I can't execute the addStripe command with variables as "area parameters"

Example:
addStripe ....  -width $wid ......  -area{100 200 500 1000}......              is OK

but
addStripe ....    -width $wid  ...  -area{$inita $initb $initc $initd }......   doesn't work

I guess  the problem comes from the curly brackets because the $wid is applied
but the extension of the stripes is totally wrong.

Can anyone help me?
Bye



Originally posted in cdnusers.org by giohdl
  • Cancel
  • archive
    archive over 19 years ago

    change you -area{..}

    to -area [list ${x1} $[y1} ${x2} $y{2}] should fix your problem.

    li siang


    Originally posted in cdnusers.org by lisiang
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Hi Giohdl,

    Not sure if the following can work, but worth trying as it illustrate an important property of TCL:

    addStripe .... -width $wid ... -area '$inita $initb $initc $initd "......

    Please refer to a TCL book on the amazing differences between {}, "" and [], if not you might run into this type of problem again!. Basically, anything inside {} are taken "as it is", so what TCL see is the number "$inita $initb $initc $initd" which of course is invalide. For LiSiang soluation, the [] force the TCL parser to do an "re-evaluation of the expression". For "", the tool do variable subsitation.

    Regards,
    Eng Han


    Originally posted in cdnusers.org by EngHan
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Hi,
    Your solutions are OK.
    This way any list of {coordinates} in
    Encounter commands can be replaced by variables.

    Regards,
    Giohdl


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