• 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. few functions

Stats

  • Locked Locked
  • Replies 11
  • Subscribers 143
  • Views 17632
  • 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

few functions

deep242003
deep242003 over 13 years ago

Hi,

 I have some basic doubts:

1) Is there any skill function which gives greatest number as output among many numbers as input ?

2) For any task / algorithm, what is efficient way to find required skill function?

 3) List of some commonly used skill functions will be highly appreciated.

 

 

 

Thanks

 

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago
    1. max()
    2. Read the documentation (cdnshelp in current versions or cdsdoc in IC5141), or use cdsFinder as a quick starting point 
    3. This is a pretty pointless question. I cannot see how it can be helpful to pick out a few random functions which happened to get used a lot. For example, I could say if(), let(), procedure(), list(), cons(), dbOpenCellViewByType() - but would that teach you anything?

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • deep242003
    deep242003 over 13 years ago

    Thanks for help andrew.

    I will start with understanding  of commonly used functions (using cdsFinder and google) for learning basic scripts and then moving to complex scripts and actively contributing to this forum.

     

    Thanks again to this forum.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tweeks
    tweeks over 13 years ago

    I find listFunctions() combined with help() to be very effective for discovering functions I've never used before (or forgotten about) that might be relevant to the problem at hand.

    Mathematically, the most important SKILL functions are the ones given in McCarthy's paper (commentary here). Those seven (plus lambda()) make up the core of any Lisp system, and are sufficient to program any computable function.

    Amaze your friends by writing a SKILL evaluator for SKILL in one page of code!

     
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • deep242003
    deep242003 over 13 years ago

    It worked for the interger.For List I used as below:

    I used below logic to get minimum x coordinate  in the list :

    e=car(templx) 

    foreach(a templx

    if(e>a e=a)))

    Is there more effective way of doing this?

    Thanks

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    A more succinct way of doing the above is:

    apply('min mapcar('car templx))

    The mapcar function is transforming the list of points to a list of the car of each point, and then this list is being passed as the arguments to the min function.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • deep242003
    deep242003 over 13 years ago

     

     Hi Andrew,

    I tried above suggestions :

    I am getting below error:

    *Error* car: argument #1 should be a list (type template = "l") - 1

    for simple testing I made templx=(1,2,3,4) and then mapcar

    mapcar('car templx)

     is giving above error.

     

    just out of curisity:

    Is there way to mark the query as solved in this forum ?

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eDave
    eDave over 13 years ago

    Use:

     templx=list(1,2,3,4) 

    or

      templx='(1,2,3,4) 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • deep242003
    deep242003 over 13 years ago

    sorry for the typo

    I used templx=list(1,2,3,4) in above case and got error.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • eDave
    eDave over 13 years ago
    Use templx = '((1 2)(3 4)(5 6)) for Andrew's example
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 13 years ago

    Sorry, I misread the question (in my defence, it was ambiguous, because it was talking about finding the minimum x coordinate in the list, so I assumed that what was being last was a list of coordinates (a coordinate is usually represented as a two-element list)).

    If it's just a simple list:

    templx='(2 3 1 5 7)

    you can just do:

    apply('min templx)

    Note you don't need to add commas between list items when defining a list. It's tolerated, but I don't believe it's documented...

    Andrew.

    • 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