• 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. unbound variable

Stats

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

unbound variable

vagaobr
vagaobr over 15 years ago

Hi,

My name is Vagner, this is the first time I am accessing this forum.

I created a small sklill script to load  different "cdsinit" file, through of the environment variable "TEC_PROC", but when I start icfb tool, I have a error message:

*Error* eval: unbound variable - xc06

<<< Stack Trace >>>

(TEC_PROC == xc06) .

See below my skill script. Do you known where my script is wrong?

TEC_PROC = getShellEnvVar("TEC_PROC")

if(TEC_PROC==xc06 then
      printf( "Starting technology customization load.\n" )
load("/tools/site/ic/5141_ISR201003011550/tools/dfII/local/cdsinit_xfab/cdsinit_xc06")
     printf( "Done technology customization load.\n" )

      else
      if(TEC_PROC==xc06_m3 then
          printf( "Starting technology customization load.\n" )
      load("/tools/site/ic/5141_ISR201003011550/tools/dfII/local/cdsinit_xfab/cdsinit_xc06_m3")
          printf( "Done technology customization load.\n" )

              else
              if(TEC_PROC==xc06m3pin then
              printf( "Starting technology customization load.\n" )
              load("/tools/site/ic/5141_ISR201003011550/tools/dfII/local/cdsinit_xfab/cdsinit_xc06m3pin")
              printf( "Done technology customization load.\n" )
   
   
            else
            if(TEC_PROC==xc06ml then
                      printf( "Starting technology customization load.\n" )
            load("/tools/site/ic/5141_ISR201003011550/tools/dfII/local/cdsinit_xfab/cdsinit_xc06ml")
                     printf( "Done technology customization load.\n" )
   
   
                else
                if(TEC_PROC==xc06pin then
                          printf( "Starting technology customization load.\n" )
                load("/tools/site/ic/5141_ISR201003011550/tools/dfII/local/cdsinit_xfab/cdsinit_xc06pin")
                         printf( "Done technology customization load.\n" )
)))))

 

Thanks,

 

Vagner 

  • Cancel
  • dmay
    dmay over 15 years ago

    You are comparing TEC_PROC (a variable) to xc06 (a variable). You set TEC_PROC to be the result of getShellEnvVar("TEC_PROC"), but xc06 is unbound. You should put it in quotes so that you will be checking for a specific string value:

    if(TEC_PROC == "xc06"  then
    ...
      if(TEC_PROC == "xc06_m3" then
       ...

    Derek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • vagaobr
    vagaobr over 15 years ago

    Hi Derek,

    Thank very much for your help. The problem is solved.

    Vagner

    • 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