Wednesday, February 08, 2012     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Skill equivalent commands for....
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
rimser9
Posts: 0
Online: User is Offline
8/09/2007 11:54 PM  
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.
adbeckett
Posts: 248
Online: User is Offline
8/10/2007 1:08 AM  
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.
ian.dobinson@matrixone.com
Posts: 5
Online: User is Offline
8/12/2007 2:01 AM  
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.
Posting to forums is available to community members only.
Login or Register

Forums > Custom IC > Shared code - SKILL > Skill equivalent commands for....


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.