• 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. hiSaveAsViewFile() trouble in Virtuoso v6

Stats

  • Locked Locked
  • Replies 6
  • Subscribers 143
  • Views 14762
  • 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

hiSaveAsViewFile() trouble in Virtuoso v6

jaleco
jaleco over 12 years ago

 I have a script (www.cadence.com/.../1317148.aspx that will save the design tree file to a shell to run a shell script on, working in Virtuoso v5, but is breaking in Virtuoso v6 on the command hiSaveAsViewFile.

The Save File As form looks quite different in v6, but I cannot figure out Cadence's documentation to search for (anything..) something like this.

In v5 I use:

hiSaveAsViewfile->file->value-> = Newfilename

hiFormDone(hiSaveAsViewfileForm)

However, in v6,  I get the error message " eval: unbound variable - hiSaveAsViewfile".

Since testing with print statements is able to show me that the variable Newfilename is properly defined, and the command hiSaveAsViewfile() works in v6, I can only guess that the form itself is different in v6, and the format hiSaveAsViewfile->file->value is not the same.

2 Questions -

1. how can I test for the version of Virtuoso as an environment variable so I can handle this save function accordingly?

2. what is the v6 format for hiSaveAsViewfile->file->value??

many thanks in advance!

  • Cancel
Parents
  • jaleco
    jaleco over 12 years ago

    Hello Derek, or others who may see this thread,

    I am running the script below to operate on the Design Tree saved out to the shell as an ascii file, but the hiSaveAsViewFile() cmd does not overwrite an existing file.

    Is there a way to force hiSaveAsViewFile() to overwrite an existing file?

    If not, I can always do it with a shell script, but using SKILL would be simpler.

    Any help with this would be much appreciated!!!

    procedure( TreeInvList()
          9      printf(">>>>>>>>  Creating a tree inventory from current level to bottom.  <<<<<<<\n")
         10      printf("*****************  Note:  *************\n")
         11      printf("This will strip out all symbolic links in the tree, most of which are contact or via cells created by the \"Create Contact\" function.\n")
         12      printf("An inventory is a unique list of layout files in the tree, including standard cells.\n")
         13      hiGetCurrentWindow()->stopLevel = dbGetMaxHierDepth()
         14      CellName = geGetEditCellView()->cellName
         15      printf("Cell name is %s.\n" CellName)
         16      printf("Tree File is %s_tree.\n" CellName)
         17      printf("Inventory file is %s_tree_inv.\n" CellName)
         18      WritePath = geGetEditCellView()->cell->writePath
         19      printf("Write path where files will be created is:\n")
         20      printf("%s\n" WritePath)
         21      TreeFile = strcat(WritePath "/" CellName "_tree")
         22      printf("TreeFile full path is %s\n" TreeFile)
         23      InvFile = strcat(TreeFile "_inv")
         24      printf("InvFile full path is %s\n" InvFile)
         25      printf("Wait for results....................................\n")
         26      printf("File is being created...............................\n")
         27                  leHiTree()
         28      hiFormDone(leTreeForm)
         29 ;     hiSaveAsViewfile->file->value = TreeFile                          ; version 5 input form code
         30      hiSaveAsViewfile(hiGetCurrentWindow() TreeFile)                    ; version independent code
         31 ;     hiFormDone(hiSaveAsViewfileForm)                                                          ; version 5 code
         32      hiFormDone(leTreeForm)
         33      ipcWait(ipcBeginProcess(strcat("./scripts/treeinv " TreeFile)))
         34      view(InvFile)                                                      ; view prior to response from BeginProcess displays blank window
         35 ) ; proc

    James

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • jaleco
    jaleco over 12 years ago

    Hello Derek, or others who may see this thread,

    I am running the script below to operate on the Design Tree saved out to the shell as an ascii file, but the hiSaveAsViewFile() cmd does not overwrite an existing file.

    Is there a way to force hiSaveAsViewFile() to overwrite an existing file?

    If not, I can always do it with a shell script, but using SKILL would be simpler.

    Any help with this would be much appreciated!!!

    procedure( TreeInvList()
          9      printf(">>>>>>>>  Creating a tree inventory from current level to bottom.  <<<<<<<\n")
         10      printf("*****************  Note:  *************\n")
         11      printf("This will strip out all symbolic links in the tree, most of which are contact or via cells created by the \"Create Contact\" function.\n")
         12      printf("An inventory is a unique list of layout files in the tree, including standard cells.\n")
         13      hiGetCurrentWindow()->stopLevel = dbGetMaxHierDepth()
         14      CellName = geGetEditCellView()->cellName
         15      printf("Cell name is %s.\n" CellName)
         16      printf("Tree File is %s_tree.\n" CellName)
         17      printf("Inventory file is %s_tree_inv.\n" CellName)
         18      WritePath = geGetEditCellView()->cell->writePath
         19      printf("Write path where files will be created is:\n")
         20      printf("%s\n" WritePath)
         21      TreeFile = strcat(WritePath "/" CellName "_tree")
         22      printf("TreeFile full path is %s\n" TreeFile)
         23      InvFile = strcat(TreeFile "_inv")
         24      printf("InvFile full path is %s\n" InvFile)
         25      printf("Wait for results....................................\n")
         26      printf("File is being created...............................\n")
         27                  leHiTree()
         28      hiFormDone(leTreeForm)
         29 ;     hiSaveAsViewfile->file->value = TreeFile                          ; version 5 input form code
         30      hiSaveAsViewfile(hiGetCurrentWindow() TreeFile)                    ; version independent code
         31 ;     hiFormDone(hiSaveAsViewfileForm)                                                          ; version 5 code
         32      hiFormDone(leTreeForm)
         33      ipcWait(ipcBeginProcess(strcat("./scripts/treeinv " TreeFile)))
         34      view(InvFile)                                                      ; view prior to response from BeginProcess displays blank window
         35 ) ; proc

    James

    • 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