• 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 Design
  3. strange error message in running adexl

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 125
  • Views 18854
  • 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

strange error message in running adexl

Joe Black
Joe Black over 12 years ago
 Here is the msg found in the log file (NOT spectre.out under psf. psf direcotry is empty actually).

Error* Error during netlisting of design for the point ID (0 1).
\e ("ls" 0 t nil ("*Error* ls: too many arguments (0 expected, 1 given)" ("/prj/qct/scratch/sandiego/quboz/cadence_test/adexl_hackNetlist/adexl_new/results/data/Interactive.0")))
\e

 

 it ran through with ADEL.

My cadence version is IC615_isr12

Thanks,

Joe
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Joe,

    Sounds strange.  In the CIW can you type:

    ls()

    arglist('ls)

    and see what it says? My guess is that you have something in your environment which has redefined the function ls() which is part of the ADE environment.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Joe Black
    Joe Black over 12 years ago
    Hi, Andrew,

    Cadence returned 0 for ls, and nil for arglist(‘ls)

    I did redefine the ls function, but it was working fine for a long time. Here is how I redefine it.
     

    procedure( ls()

      if(isFile("/pkg/gnu/bin/ls") then

        system("/pkg/gnu/bin/ls --color -al")

        else

          system("ls --color -al")

      )

    )


    And the same adexl was working couple of days ago, but told me this ls error yesterday.

     

    Thanks,

    Joe

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

    Joe,

    Well, you're redefining a Cadence private function, with a function with the same name which doesn't accept the same arguments, and doesn't return the same value.

    Can you try removing your customization and seeing if that makes a difference? I don't know whether maybe you are either using a different version, or using some different functionality - maybe something specific inside ADE XL is using this internal "ls" function (it was added many years ago by the ADE team, so it's not surprising that somewhere in the code it gets used).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Joe Black
    Joe Black over 12 years ago

     Andrew,

     

    my ls function was working, and printed out one file per line with color information.

    I don't what causes it stop working.

     the strange thing is 

    adexl didn't complain it for a long time,  with many cadence versions i have used.

    then for the current cadence version, it didn't complain either for many months, then it started complain couple days ago.

    then i tried a even newer version of cadence (ic615_isr15), no complain either.

     

    btw, after I rename the ls to something else and restart cadecne with current version (isr12), adexl runs now.

    but I'd like to know where the problem is, so I can keep using my colored ls function.

     

    thanks,

    Joe

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago
    Joe,

    I already explained why this is failing, but maybe I wasn't clear enough so let me try again.

    Cadence has a function called "ls" which has been defined for many years, although is private (ie we haven't documented it and so you should not use it in your code). It accepts either no arguments or one argument and returns a list of files in the working or specified directory.

    Somewhere in the ADE code it is using this function (which is fair enough, as it is one of our functions), and is calling it with a single argument.

    Now, you've replaced our private function with your own with the same name, and it doesn't accept an optional argument, nor does it return the list of files in the directory (it will print the working directory contents in the terminal window).

    So when our code calls ls, it breaks, because it doesn't behave as the code expects.

    Now I don't know why it suddenly stopped working in ADE XL but I can imagine that maybe you used a different calculator function, or you used some different part of the functionality in ADE XL, or it loaded your modified function from the .cdsinit which it hadn't done before. But regardless of this, you're asking for trouble redefining our functions, especially if they have different semantics from the original.

    We generally advise that customer SKILL code should define functions which have a prefix, where that prefix begins with an uppercase letter, since Cadence functions either don't have a prefix or have a lowercase prefix (in general).

    So if you called your function LS you'd be ok...

    Regards,
    Andrew
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Joe Black
    Joe Black over 12 years ago

     Thanks. that is super clear, :)

     

    .

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Joe Black
    Joe Black over 12 years ago

    Hi,  Andew,

    now, without the ls function, i have new error in the same bench, here is the message,

    \ e *Error* Error during netlisting of design for the point ID (4 2).
    \e ("error" 1 t nil ("*Error* Netlist directory \"/................/results/data/Interactive.4/2/sdm_top/netlist\" does not exist"))
    \e
    \e
    \o
    \o *Error*   Error ID  = 5025
    \o *Error*   Error Msg = Error while preparing to run the simulation.

    Joe.

     

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

    Joe,

    Not sure why that would happen - maybe something earlier in the Job log might give a clue? Perhaps it ran out of disk space/quota?

    I suggest you contact customer support.

    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