• 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. I want to assign an element of list to some pointer/attribute...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 1017
  • 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

I want to assign an element of list to some pointer/attribute to access that element easily instead of using car/cdr ???

RAGHU2634
RAGHU2634 over 7 years ago

Hi ,

I am using following procedure to have a result I needed in list format.

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

procedure(abNetInfolist(@optional (cellView geGetEditCellView()))

NetInfo=list()
foreach(conns cellView~>conns

t_Netinfo=list(nil)

t_NetInfo=list(conns~>name conns~>net~>name)

NetInfo=append1(NetInfo t_NetInfo)

) printf("%L" NetInfo));

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

If Result for some selected instance looks something like this in list format :

(("s" "vss"))

Now I want to assign first element in each list i.e: "s" to some pointer eg; TERMNAME & second element of list i.e; ("vss") to some pointer eg: NETNAME. Is there a way to do this ?

Thanks,

Raghu

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago

    Raghu,

    Not really. You always refer to a sub-list and then access that again and again - so entry=car(yourResult) - then you can you use car(entry) or cadr(entry) - so you don't need to find the sub-list each time. However, there's no real pointer to a value.

    By the way, it's not a good idea to use your own functions with "ab" as the prefix, since that's confusing - that's the prefix I normally use for my own code, and so others might think it was written by me.

    Why do you want to do this? It probably suggests that you're not doing things in a particularly SKILL (or LISP) way...

    Regards,

    Andrew.

    • Cancel
    • Vote Up +1 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