• 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. Assura Directory Creation

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 15049
  • 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

Assura Directory Creation

Patrick1982
Patrick1982 over 14 years ago

Hello,

I'm new to Assura (in the past I used Hercules) and I have found the form quite annoying, so what I would like to is automatically load the Run Directory, while also create the Run Directory from cadence using the Library name and Cell Name.  So what I was think is creating a bindKey that would take the library and cell name of the current layout and create the verification directories required i.e. ~/verification/libName/cellName/lvs. What is the Cadence command to create a directory in UNIX? OR even better does anyone have something simillar already wrintten?

Secondly, I would like the assura form automatically open with the current layout Run Directories already loaded?  I have a bindkey to open the form and load the new Run Name (which is the cellName) but I am having trouble trying to automatically load the libName and cellName into the Run Directory path. Does anyone have the command to do this?

 I hope this is clear but please if you have any questions please let me know.

Thanks very much.

  • Cancel
  • skillUser
    skillUser over 14 years ago

    Hi Patrick,

    I don't really work with Assura much, but I think that I can answer your first question - it seems that you are asking for a SKILL command to create a directory, if so the answer is simple, the command createDir() is the one that you want.  Just as Derek noted in an earlier (unrelated) post; I found this by typing "dir" into the Find/Search field of the Finder (SKILL Finder, cdsFinder) utility - one of the many results was "createDir" and clicking on it tells you that it creates a directory.  This can be obtained by typing "startFinder()" in the CIW, or by typing "cdsFinder" at the Unix prompt where the Cadence tools are set up to run from.

     

    Finder results:

    createDir(
      S_name
     )
         => t | nil

    Creates a directory.

     

    If I get more time I will look into the other questions.

    I hope this helps!

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 14 years ago

    Hi Patrick

    I have modified one of my skillscripts to give the output which you have requested. Hope that the script can solve your problem. : )

    Best regards
    Quek

    procedure( vuiUserDefinedSetupCB(formHandle)
       let( (newDir libName cellName runType)
          if(formHandle->layoutSource->value=="DFII" then
             libName=formHandle->layLibrary->value
             cellName=formHandle->layCell->value
          else ;Stream/Oasis input
             libName="streamFiles"
             cellName=formHandle->layCellName->value
          ) ;if
          case( formHandle->hiFormSym
             (vuiLVSForm runType="lvs")
             (vuiDRCForm runType="drc")
             (vuiERCForm runType="erc")
          ) ;case
          unless( isDir("~/verification")
        csh("mkdir ~/verification")
          ) ;unless
          unless( isDir(strcat("~/verification/" libName))
        csh(strcat("mkdir ~/verification/" libName))
          ) ;unless
          unless( isDir(strcat("~/verification/" libName "/" cellName))
        csh(strcat("mkdir ~/verification/" libName "/" cellName))
          ) ;unless
         
          newDir=strcat("~/verification/" libName "/" cellName "/" runType)
          formHandle->runDir->value=newDir
       ) ;let
    ) ;procedure

    assuraSettings.il
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Patrick1982
    Patrick1982 over 14 years ago

    Thanks for your help Quek, however, I am getting the following error:

    *Error* def: function is write protected and cannot be redefined - vuiUserDefinedSetupCB

     And I've edited your code a bit, can you see anything wrong with this?

    procedure( vuiUserDefinedSetupCB(vuiLVSForm)
       let( (newDir libName cellName runType)
          if(vuiLVSForm->layoutSource->value == "DFII" then
             libName = vuiLVSForm->layLibrary->value
             cellName = vuiLVSForm->layCell->value
          ) ;if
          case( vuiLVSForm->runsetField
             (vuiLVSForm runType = "LVS")
          ) ;case
          unless( isDir("/projects/Endeavour/poriorda/Cadence/verification")
        csh("mkdir /projects/Endeavour/poriorda/Cadence/verification")
          ) ;unless
          unless( isDir(strcat("/projects/Endeavour/poriorda/Cadence/verification" libName))
        csh(strcat("mkdir /projects/Endeavour/poriorda/Cadence/verification" libName))
          ) ;unless
          unless( isDir(strcat("/projects/Endeavour/poriorda/Cadence/verification" libName "/" cellName))
        csh(strcat("mkdir /projects/Endeavour/poriorda/Cadence/verification" libName "/" cellName))
          ) ;unless

          newDir = strcat("/projects/Endeavour/poriorda/Cadence/verification" libName "/" cellName "/" runType)
          vuiLVSForm->runsetField->value = newDir
       ) ;let
    ) ;procedure

    Thanks again,

    Patrick.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Quek
    Quek over 14 years ago

    Hi Patrick

    I think perhaps the cmd "sstatus(writeProtect t)" exists somewhere in your setup and hence is preventing a procedure from being redefined. Would you please restart Virtuoso and reload the edited file? It should be fine. The edits look ok

    Best regards
    Quek

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Patrick1982
    Patrick1982 over 14 years ago

    Thanks very much for your help Quek and Lawrence.

    Here is what I have come with, I've created a skill file for each verification Run and I've assigned each run it's own Bindkey (F4-LVS, F5-DRC, F6-ANTENNA, F7-DENSITY) and the following is the code I've used.  Thanks again for your help.

    ibmPdkRunAssuraLVS()

       let( (libName cellName)
          if(vuiLVSForm->layoutSource->value == "DFII" then
             libName = vuiLVSForm->layLibrary->value
             cellName = vuiLVSForm->layCell->value
          ) ;if
        csh(strcat("mkdir -p /projects/Endeavour/poriorda/Cadence/verification/" libName "/" cellName "/lvs"))

       ) ;let

    hiiSetCurrentForm('vuiLVSForm) vuiLVSForm->runName->value = vuiLVSForm->layCell->value
    hiiSetCurrentForm('vuiLVSForm) vuiLVSForm->runDir->value = "/projects/Endeavour/poriorda/Cadence/verification"
    vuiLVSForm->fileSelector = t   vuiRcxFileSelect(?returnVar vuiLVSForm->runDir->value ?startingDir _vuiGetRunDirBrowsePath(vuiLVSForm) ?mode 'dirs)   vuiLVSForm->fileSelector = nil
    hiiSetCurrentForm('vuiRcxFileSelectForm)
    vuiRcxFileSelectForm->dirList->value = list(vuiLVSForm->layLibrary->value)
    vuiRcxDirDoubleCB(vuiRcxFileSelectForm)
    vuiRcxFileSelectForm->dirList->value = list(vuiLVSForm->layCell->value)
    vuiRcxDirDoubleCB(vuiRcxFileSelectForm)
    vuiRcxFileSelectForm->dirList->value = '("lvs" )
    vuiRcxDirDoubleCB(vuiRcxFileSelectForm)
    hiFormDone(vuiRcxFileSelectForm)

    • 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