• 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. Custom IC SKILL
  3. Can we use interactive functions inside a procedure..?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13503
  • 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

Can we use interactive functions inside a procedure..?

IC Layout
IC Layout over 15 years ago
Hi, All ! I am using cadence IC514 version... right now we don't have layoutXL feature in our company ... So for drawing gaurding I have written a code .. This code is working fine when it is loaded as it is. But when I place this code inside a procedure its not giving good results... I thought this is because of using interactive functions inside procedure ... If it is so, please someone guide me to do this kind of tasks.. I am attaching my code snippet below... ;;;;;;;;;;;;;;starts here;;;;;;;;;;;;;;;;;;;;; ll = lowerLeft( css()~>bBox ) ur = upperRight( css()~>bBox ) llx = xCoord(ll) urx = xCoord(ur) X = urx-llx lly = yCoord( ll ) ury = yCoord( ur ) Y = ury - lly leHiCreateMPP() leRodMppForm->rodMPPTemplate->value = mpp leRodMppForm->pathJustify->value = "left" mouseAddPt() `(,(X/2.0) ,lly) mouseAddPt() `(,urx ,lly) mouseAddPt() `(,urx ,ury) mouseAddPt() `(,llx ,ury) mouseAddPt() `(,llx ,lly) mouseAddPt() `(,(X/2.0) ,lly) mouseApplyOrFinishPoint() hiiToggleEnterForm(leRodMppForm) ;;;;;;;;;;;;;;;;end here;;;;;;;;;;;;;;;;;;;;; Thanks in advance... Prabhakar. K -- Layout Engineer
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    OK. I reformatted  your code so I could read it - it is completely scrambled above.

    Anyway, this code isn't inside a procedure, but I think the point is that you've written it as a set of function calls as you'd get in a replay file. When you execute some of these functions, they block until some interactive operation has occurred - and hence the subsequent statements in code won't work. It works if replayed as a replay file (e.g. using hiReplayFile() ), but that's not a very elegant solution.

    In this particular case, you'll probably be best using my Sourcelink Solution 11323850, which provides a function to draw an MPP using a named template. This can easily be used in procedural code.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • IC Layout
    IC Layout over 15 years ago

     Thank you Mr. Andrew... It is working well.. Hats off to your ideas...

    Prabhakar.K -- Layout Engineer 

    • 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