• 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. question about loading functions

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 142
  • Views 14085
  • 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

question about loading functions

archive
archive over 18 years ago

Hi,all: I am new to Cadence, and right now I am learning how to use skill language. I typed one file I found online and saved it to /home/user/1.il. The file is as following: procedure( rectanglefury( num_rect ) cvID = geGetWindowCellView() for( i 1 num_rect llx = random( 1000 ) lly = random( 1000 ) urx = random( 1000 ) ury = random( 1000 ) x = random( 10 ) if( ( x > 6 ) dbCreateRect(cvID list("L0" ) list( llx:lly urx:ury ) ) ) if( ( x>3 && x"L1" ) list( llx:lly urx:ury ) ) ) if( ( x "L2" ) list( llx:lly urx:ury ) ) ) ) ) then I go back to load this to cadence,using: >load( "/home/user/1.il") but I always got error as following: if( ( x > 6 ) dbCreateRect(cvID list("L0" ) list( llx:lly urx:ury ) ) ) SYNTAX ERROR found at line9 column 26 of file /home/user/1.il *Error*lineread/read:syntax error encountered in input ***Error in rountine load: Entering new debug toplevel due to error Can anyone tell me what is wrong with this?Thanks in advance! --sophia


Originally posted in cdnusers.org by sophia_song
  • Cancel
  • archive
    archive over 18 years ago

    Rather hard to tell, since the formatting has got completely messed up.

    If I cut and paste the above, into a file, I don't get any syntax errors, Did you try looking at line 9 column 26 of your file?

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    Hello,Andrew:
    Thanks for your response.
    Yes, I did. Line 9 column 26 is this line : if( ( x > 6 ) dbCreateRect(cvID list("L0" ) list( llx:lly urx:ury ) ) ) and the column is ' ( ' inbetween ' dbCreateRect(cvID ' . Can you check on this again? ----sophia


    Originally posted in cdnusers.org by sophia_song
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    That looks perfectly OK. Is there a space between the dbCreateRect and the open parenthesis?

    The other thing to try is to do (in UNIX):

    cat -vet code.il

    to look if there are any strange characters in the file.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    1.
    if( x > 6 then
    dbCreateRect(cvID "L0" list(llx:lly urx:ury))
    ); if

    2.
    if( x > 3 && x < 6 then
    dbCreateRect(cvID "L1" list(llx:lly urx:ury))
    ); if

    if there is only one condition, change it to when instead of if.

    Try to see if it works.


    Originally posted in cdnusers.org by mvu
    • 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