• 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. Defining functions with a file load into a skill++ let ...

Stats

  • Locked Locked
  • Replies 0
  • Subscribers 125
  • Views 12940
  • 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

Defining functions with a file load into a skill++ let context

markbeck
markbeck over 13 years ago

Greetings all,

I'm using IC 6.1.500.5

I'm trying to load a file which contains a function definition into a skill++ context without polluting the skill or skill++ top level context.

 Things I've tried:

  • Load Command
    • If I execute a 'load' command on it while in skill++, it defines that function at the skill global level.  The file doesn't have a .il or .ils extension, so I think that by default load uses the .il toplevel.
  • evalstring
    • I can specify that the string language is in fact 'skill++', but when using evalstring, you end up defining the function definiton at the global level again
  • Write a macro to expand in-line
    • With this in that I can create a function that works 1 time, but I can't call it within a loop since the first time it's called, it expands and is 'stuck' thereafter.
  • lineread / progn
    • I've tried capturing the file and then using : (apply 'progn l_ret) but that again defines the funtion at the top level.

Any ideas?  Essentially, the file may or may not contain function definitions and I only want to execute the function if the last load defines the function.

Thanks,

Mark

 p.s. I realized after posting that this should be in the Skill forum, but I don't know how to move it and I didn't want to double-post.

  • 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