Configuring Cadence Virtuoso to enable VersIC
Prerequisites
The following setup steps assume you have completed Downloading and installing VersIC and Downloading, Installing and Setup of Subversion or Downloading, Installing and Setup of Perforce installation. Therefore, the following settings will be assumed for these steps.
% setenv VSC_INSTALL_DIR <VersIC installation root dir>
Auto-loading VersIC during Cadence Virtuoso startup
Cadence Virtuoso has the ability to load .cdsinit and .cdsenv files from a number of locations upon invocation allowing any 3rd party applications and project user code to be automatically instantiated. The default location is -
- $CDS_INSTALL_DIR/share/local
This can be changed by modifying the file -
- $CDS_INSTALL_DIR/share/cdssetup/setup.loc
- Note that setup.loc can be configured to have Cadence search in a number of locations for startup files.
; Feel free to make a copy of the default setup.loc file in
; $(compute:THIS_TOOL_INST_ROOT)/share/cdssetup/setup.loc to any of the other locations
; and add additional places to search (e.g. to setup up a site specific
; search list).
;
; Format: one entry per line, everything after the first blank or
; tab is a comment, ';' or '#' or '--' at the start of a line is a comment.
; $envvar, ${envvar}, ~, and ~user are expanded as needed.
;
; If an environment variable is not defined, then that entry is ignored.
; No errors are generated.
. cwd should always be searched first
@LIBRARY look in the design libraries for the file
$CDS_WORKAREA user workarea if defined
$CDS_SEARCHDIR this is set by various tools during tool startup
$HOME
$CDS_PROJECT project storage area, ignored if not defined
$CDS_SITE Site Setup Info - default is $CDS_INST_DIR/share/local
$(compute:THIS_TOOL_INST_ROOT)/share Cadence Default Setup Info
;
; $CDS_INST_DIR/share Old entry for Cadence Default Setup Info
1. Setup Auto-loading of VersIC Startup and Environment Files
Copy the VersIC initialization file to the $CDS_INSTALL_DIR/share/local directory.
% cp $VSC_INSTALL_DIR/config/cadence/dot_cdsinit $CDS_INSTALL_DIR/share/local/.cdsinit
If the .cdsinit file already exists, you can either include the contents of the VersIC dot_cdsinit or copy it to a different filename and load.
You may also want to copy some of the environment information in the dot_cdsenv_* template files in the config/cadence directory.
2. Setup Auto-loading of VersIC Library Manager File
VersIC also needs the file cdsLibMgr.il to be loaded automatically. To ensure that the version of this file is consistent with the version of VersIC being used it should be loaded from the$VSC_INSTALL_DIR/config/cadence directory.
As Virtuoso looks for cdsLibMgr.il to load, we need to have a file of that name in the $CDS_INSTALL_DIR/share/local directory that loads the $VSC_INSTALL_DIR/config/cadenceversion.
Create the file $CDS_INSTALL_DIR/share/local/cdsLibMgr.il and paste the following skill code into it.
when( VSC_INSTALL_DIR = getShellEnvVar("VSC_INSTALL_DIR")
load(strcat(VSC_INSTALL_DIR "/config/cadence/cdsLibMgr.il"))
)
Summary
VersIC should now load automatically when Virtuoso starts. Note that it will only affect libraries that are managed by VersIC. All other data should behave normally.
However, if your wish to disable VersIC before starting Virtuoso, just unset the VSC_INSTALL_DIR environment variable.