• 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. Where is the documentation for the Core Skill function ...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 1129
  • 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

Where is the documentation for the Core Skill function "makeArray()" ?

Daedalus
Daedalus over 1 year ago

I am having trouble finding the documentation for makeArray using the Cadence SKILL API finder or user manual. I know it exists because the interpreter in the CIW recognizes it and it appears to declare multidimensional arrays. Ultimately, I would like to make a 2D array of booleans, and this function seems like a clean way to do it.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    It's a private function (very old, and before we were strict about the naming of private versus public functions), and hence not documented. You should not use it.

    Here's an example implementation of a function to create a multidimensional array easily though:

    /* abMultiDimArray.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Nov 23, 2009 
    Modified   
    By         
    
    Function for creating a multi-dimensional array.
    
    Usage:
    
    data=abMultiDimArray(6 8)
    
    Creates a 6 by 8 array (starting index is from 0). Then you can use:
    
    data[4][5]=23
    data[0][7]=123
    
    You can specify more dimensions by passing more arguments to abMultiDimArray.
    
    ***************************************************
    
    SCCS Info: @(#) abMultiDimArray.il 11/23/09.16:24:27 1.1
    
    */
    
    procedure(abMultiDimArray(@rest dimensions)
        let((arr)
            if(integerp(car(dimensions)) && plusp(car(dimensions)) then
                arr=makeVector(car(dimensions))
                when(cdr(dimensions)
                    for(ind 0 sub1(car(dimensions))
                        arr[ind]=apply('abMultiDimArray cdr(dimensions))
                    )
                ) ; when 
                arr
            else
                error("Dimension %L must be a positive integer\n" car(dimensions))
            ) ; if
        ) ; let
    ) ; procedure

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    It's a private function (very old, and before we were strict about the naming of private versus public functions), and hence not documented. You should not use it.

    Here's an example implementation of a function to create a multidimensional array easily though:

    /* abMultiDimArray.il
    
    Author     A.D.Beckett
    Group      Custom IC (UK), Cadence Design Systems Ltd.
    Language   SKILL
    Date       Nov 23, 2009 
    Modified   
    By         
    
    Function for creating a multi-dimensional array.
    
    Usage:
    
    data=abMultiDimArray(6 8)
    
    Creates a 6 by 8 array (starting index is from 0). Then you can use:
    
    data[4][5]=23
    data[0][7]=123
    
    You can specify more dimensions by passing more arguments to abMultiDimArray.
    
    ***************************************************
    
    SCCS Info: @(#) abMultiDimArray.il 11/23/09.16:24:27 1.1
    
    */
    
    procedure(abMultiDimArray(@rest dimensions)
        let((arr)
            if(integerp(car(dimensions)) && plusp(car(dimensions)) then
                arr=makeVector(car(dimensions))
                when(cdr(dimensions)
                    for(ind 0 sub1(car(dimensions))
                        arr[ind]=apply('abMultiDimArray cdr(dimensions))
                    )
                ) ; when 
                arr
            else
                error("Dimension %L must be a positive integer\n" car(dimensions))
            ) ; if
        ) ; let
    ) ; procedure

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Children
  • Daedalus
    Daedalus over 1 year ago in reply to Andrew Beckett

    Thank you for the response and code!

    • 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