• 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

    I agree with what Andrew said.
    In addition, SKILL has the capability to "modify" a list, which TCL does not: the reason the functions above "return a new list" is because TCL cannot modify the existing list.

    So, for example, would you want an linsert that inserts into the current list, which could be done efficiently, or one that has to make a copy of the original list, which would be inefficient?

    It depends on exactly what you are trying to do.


    Originally posted in cdnusers.org by ian.dobinson@matrixone.com
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 18 years ago

    I agree with what Andrew said.
    In addition, SKILL has the capability to "modify" a list, which TCL does not: the reason the functions above "return a new list" is because TCL cannot modify the existing list.

    So, for example, would you want an linsert that inserts into the current list, which could be done efficiently, or one that has to make a copy of the original list, which would be inefficient?

    It depends on exactly what you are trying to do.


    Originally posted in cdnusers.org by ian.dobinson@matrixone.com
    • 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