Wednesday, February 08, 2012     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: question about loading functions
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
sophia_song
Posts: 5
Online: User is Offline
6/07/2007 2:12 PM  
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<6 ) dbCreateRect(cvID list("L1" ) list( llx:lly urx:ury ) ) ) if( ( x < 3 ) dbCreateRect(cvID list("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
adbeckett
Posts: 248
Online: User is Offline
6/08/2007 12:53 AM  
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.
sophia_song
Posts: 5
Online: User is Offline
6/08/2007 6:45 AM  
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
adbeckett
Posts: 248
Online: User is Offline
6/08/2007 8:07 AM  
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.
mvu
Posts: 1
Online: User is Offline
6/13/2007 4:51 PM  
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.
Posting to forums is available to community members only.
Login or Register

Forums > Custom IC > Shared code - SKILL > question about loading functions


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.