• 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 equivalent commands for....

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 142
  • Views 14814
  • 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 equivalent commands for....

archive
archive over 18 years ago

Hi , There are few commands (lists) which make tcl very flexible to use. I was hoping if some of them already exist in custom skill or some one can write those commands in skill. those tcl commands I want in skill are... lrange list i j Returns the i th through j th elements from list. linsert list index arg arg .. Insert elements into list before the element at position index. Returns a new list. lreplace list i j arg arg ... Replace elements i through j of list with the args. Returns a new list. lsearch mode list value Return the index of the element in list that matches the value according to the mode, which is -exact, -glob, or -regexp. -glob is the default. Return -1 if not found. lsort switches list Sort elements of the list according to the switches: -ascii, -integer, -real, -increasing, -decreasing, -command command. Returns a new list. Hope some one can tell me if there are any skill equivalent of the above or any functions that can be written. Thanks, Sathya. ASIC Engr.


Originally posted in cdnusers.org by rimser9
  • Cancel
Parents
  • archive
    archive over 18 years ago

    In fact, given that SKILL is really a LISP variant, support for lists is _much_ greater than in Tcl. That said, some of the Tcl commands are effectively treating a list as an array, which is not a good way to use them in SKILL (since lists are truly sequential).

    Rather than me trying to give you equivalents of the above (there aren't quite direct replacements for lrange, linsert, lreplace; lsearch is either member() or exists(); lsort is sort() with particular arguments), best is to read the SKILL User Guide and think about how you're manipulating lists. If you're doing a lot of list ranging and splicing, then that's not going to be so efficient to do in SKILL - there would almost certainly be better ways of doing this - or to use different structures.

    Regards,

    Andrew.


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

    In fact, given that SKILL is really a LISP variant, support for lists is _much_ greater than in Tcl. That said, some of the Tcl commands are effectively treating a list as an array, which is not a good way to use them in SKILL (since lists are truly sequential).

    Rather than me trying to give you equivalents of the above (there aren't quite direct replacements for lrange, linsert, lreplace; lsearch is either member() or exists(); lsort is sort() with particular arguments), best is to read the SKILL User Guide and think about how you're manipulating lists. If you're doing a lot of list ranging and splicing, then that's not going to be so efficient to do in SKILL - there would almost certainly be better ways of doing this - or to use different structures.

    Regards,

    Andrew.


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