• 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. SKILL program to cycle around a list of instructions, prompted...

Stats

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

SKILL program to cycle around a list of instructions, prompted by the user

DerekH
DerekH over 9 years ago

Hi everyone,

This is my first post. I'm a lowly analogue designer who uses cadence every day, but I've never done any skill programming, so I need the help of some of you power-users! 

My immediate need is for a simple program that does the following: I want to highlight devices consecutively within a schematic, with a user driven prompt that moves on to highlight the next one.

I've got a list of these devices and I have the function which highlights each device in the schematic hierarchy. So far I've put them into a .il file, which looks a bit like this:

FindInHierarchy("<x1>mn1") 

FindInHierarchy("<x1.x2>mn2") 

FindInHierarchy("<x1>mn3") 

where the FindInHierarchy function is already written (not by me!) and takes the user to the device in question in the schematic.

When I load the file into virtuoso it runs through the list super fast and I'm left looking at the final device in the list (which makes sense).

What I'm after is a function which goes in between each of these instructions, that, say, pops up a form or button which prompts the user to push "next" or something and then the program executes the next instruction. Then the user pushes the button again to move on to the next one and so on.  

This would enable me to interrogate each device in turn and then move onto the next one when I'm finished with it, until I get to the end of the list. Ideally the list would wrap around when it got to the bottom, and there would be a finish button or something to push which would exit the program.

I hope this makes sense.

Many thanks!

Derek

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 9 years ago

    You could use hiDisplayAppDBox() with a modal dialogStyle:

    hiDisplayAppDBox(?name 'CCFpromptForNext ?dboxBanner "Next" ?dboxText "move onto next" ?dialogStyle 'modal ?dialogType hicInformationDialog)

    That said, I'm not sure this is quite what you want because it will block the UI. So what you might want is something like this:

    procedure(CCFvisitListOfNames(listOfNames)
      FindInHierarchy(car(listOfNames))
      hiDisplayAppDBox(
        ?name 'CCFmoveToNext
        ?dboxBanner sprintf(nil "Showing %s" car(listOfNames))
        ?dboxText sprintf(nil "Current instance %s.\nOK to move to next?"
          car(listOfNames))
       ?dialogStyle 'modeless
       ?callback sprintf(nil "CCFvisitListOfNames('%L)" cdr(listOfNames))
       ?dialogType hicQuestionDialog
       ?buttonLayout 'OKCancel
      )
    )

    Then do:

    CCFvisitListOfNames('(
     "<x1>mn1"
     "<x1.x2>mn2"
     "<x1>mn3"
    )

    The modeless dialog box should stop it freezing the UI, and using the callback to move onto the next will then be fired if you hit OK. Hitting Cancel will stop it moving onto the next.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • DerekH
    DerekH over 9 years ago

    Hi Andrew,

    That's exactly what I wanted! Thanks very much for your prompt reply. 

    Regards,

    Derek

    • 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