• 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. Reading and changing CIW input line

Stats

  • Locked Locked
  • Replies 13
  • Subscribers 145
  • Views 19782
  • 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

Reading and changing CIW input line

PatrikOsgnach
PatrikOsgnach over 8 years ago

Hello,

are there any functions that allows me to know what is currently typed on the input line of CIW and change it, eventually? My goal is to write an autocompletion script.

As an example, if I type 'a' and press Ctrl+Up I want the input line to be substituted with the latest line that begins with an 'a' character.

Best regards,

Patrik

  • Cancel
Parents
  • skillUser
    skillUser over 8 years ago
    Hi Patrik,
    There are two things that already exist that are close to what you are asking for, but it may depend on which version you are using. ALWAYS STATE THE VERSION YOU ARE USING.

    Try this in the CIW:
    envGetVal("ui" "ciwNameCompletion")
    If it returns "Off" then you have a version that has automatic command completion built-in but turned off. You can try either "Automatic" or "Manual" to test the feature. For automatic, when you start typing in the CIW a pop-up box will display with possible matches, functions are shown in blue (by default) and you can scroll through the matches. For Manual mode the Ctrl-Space key combination (by default) will open the search matches box. You can use 'envSetVal("ui" "ciwNameCompletion" 'cyclic "Manual")' or 'envSetVal("ui" "ciwNameCompletion" 'cyclic "Automatic")' to turn on the feature if it is available in your version (I can't remember when it was added, sorry). The search finds even custom functions that you have created yourself, including those that just have autoloads set but the function is not loaded yet. Look for the variables that control this in the 'ui' .cdsenv file:

    more `cds_root virtuoso`/tools/dfII/etc/tools/ui/.cdsenv

    The CIW also has a history mechanism built-in and it has been around for years, but you had to turn it on in older versions, but I think it is just on by default now (since at least IC61x?). For example, in combination with the above, you could now try typing "!env" and hit return, and the most recent matching command will execute, in this case it would be the envGetVal() command. There is a section "Repeating Commands from the CIW" in the documentation about it, Virtuoso Design Environment User Guide->Using the Command Interpreter Window->Working With SKILL Commands->Repeating Commands from the CIW.

    Try these out and save yourself some coding!

    Best regards,

    Lawrence.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • skillUser
    skillUser over 8 years ago
    Hi Patrik,
    There are two things that already exist that are close to what you are asking for, but it may depend on which version you are using. ALWAYS STATE THE VERSION YOU ARE USING.

    Try this in the CIW:
    envGetVal("ui" "ciwNameCompletion")
    If it returns "Off" then you have a version that has automatic command completion built-in but turned off. You can try either "Automatic" or "Manual" to test the feature. For automatic, when you start typing in the CIW a pop-up box will display with possible matches, functions are shown in blue (by default) and you can scroll through the matches. For Manual mode the Ctrl-Space key combination (by default) will open the search matches box. You can use 'envSetVal("ui" "ciwNameCompletion" 'cyclic "Manual")' or 'envSetVal("ui" "ciwNameCompletion" 'cyclic "Automatic")' to turn on the feature if it is available in your version (I can't remember when it was added, sorry). The search finds even custom functions that you have created yourself, including those that just have autoloads set but the function is not loaded yet. Look for the variables that control this in the 'ui' .cdsenv file:

    more `cds_root virtuoso`/tools/dfII/etc/tools/ui/.cdsenv

    The CIW also has a history mechanism built-in and it has been around for years, but you had to turn it on in older versions, but I think it is just on by default now (since at least IC61x?). For example, in combination with the above, you could now try typing "!env" and hit return, and the most recent matching command will execute, in this case it would be the envGetVal() command. There is a section "Repeating Commands from the CIW" in the documentation about it, Virtuoso Design Environment User Guide->Using the Command Interpreter Window->Working With SKILL Commands->Repeating Commands from the CIW.

    Try these out and save yourself some coding!

    Best regards,

    Lawrence.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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