Friday, March 15, 2013

Installation of Cadence IC6.1 and MMSIM7.1 on Ubuntu 12.04


Some needed packages before installation:
sudo apt-get install libelf1
sudo apt-get install ksh
sudo apt-get install nscd
sudo apt-get install policykit
sudo apt-get install ureadahead
sudo apt-get install csh
sudo apt-get install libc6-i386 lib32gcc1 lib32z1 lib32stdc++6 ia32-libs
sudo ln -s /usr/bin/awk /bin/awk
sudo ln -s /usr/bin/firefox /usr/bin/netscape
sudo ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++-libc6.1-1.so.2
sudo locale-gen en_US
1- Mount image of the Cadence IC6.1 iso
         ->mkdir mnt
         ->mount -o loop -t iso9660 /home/user_name/Cadence/Cadence_IC610.iso mnt/
         ->cd mnt


2- Change directory to CDROM1 and run the setup script
         ->cd IC610_lnx86.Base
         ->cd CDROM1
         ->./SETUP.SH
#When asked for  installation directory , write /home/USER_NAME/IC610
#When asked for a location of Iscape , choose /mnt/IC610_lnx86.Base/CDROM1

3- Install OA from oainstallers
         ->cd /home/USER_NAME/IC610/share/oaInstallers
         ->./oaInstall

4- Copy MMSIM into the installation directory

5- Change .bashrc file
Use the following command:
         ->sudo gedit .bashrc

Then add the following lines:
# Cadence stuff
cadence () {
    CDS_ROOT=/home/USER_NAME/IC610
    export DD_DONT_DO_OS_LOCKS=SET
    export CDS_LIC_FILE=5280@COMPUTER_NAME
    export LM_LICENSE_FILE=$CDS_ROOT/share/license/license.dat

    export SPECTRE_DEFAULTS=-E
    export CDS_Netlisting_Mode=Analog
    export OA_HOME=/home/USER_NAME/IC610/share/oa
    export PATH=$CDS_ROOT/tools/bin:$PATH
    export PATH=$CDS_ROOT/tools/dfII/bin:$PATH
    export PATH=$CDS_ROOT/tools/spectre/bin:$PATH
    export PATH=$CDS_ROOT/share/bin:$PATH
    export PATH=$CDS_ROOT/share/cdsdoc/bin:$PATH
    export PATH=$CDS_ROOT/MMSIM/tools.lnx86/bin:$PATH
    export PATH=$CDS_ROOT/ETS91/tools.lnx86/bin:$PATH
    export CDS_TEST_LIBPATH=/usr/lib:/lib
}
Replace each “USER_NAME” with your user name, and every “COMPUTER_NAME” with your computer name. The computer name is shown on the terminal, when you open the terminal you will find something similar to the following:
user@user-HP-620:~#

where “user” is the user name and  “user-HP-620” is the computer name.

6- The license file:

Open the license file and edit the first few lines:
SERVER COMPUTER_NAME ANY 5280
DAEMON cdslmd /home/USER_NAME/IC610/tools/bin/cdslmd

save the file as “license.dat” then copy it to /home/USER_NAME/IC610/share/license
Go to /home/USER_NAME/IC610/share/license
         ->./configure
         Enter the top installation directory <q to quit>
         [/home/USER_NAME/IC61] ->
#just press enter
         Edit the license file or the startup script now? <y/n/q> [y] ->
#enter
         Override the defaults? <y/n/q> [n] ->
#enter
         Configure license file license.dat? <y/n/q> [y] ->
#enter

         Configuring license.dat...

         Verifying FEATURE lines for daemon cdslmd........
----------------------------------------------------------------
Configure the clients file <y/n/q> [y] ->
#enter
Override the default? <y/n/q> [n] ->
#enter
Enter the path to the license file from all workstations <q to quit>
->
/home/USER_NAME/IC610/share/license/license.dat
Edit COMPUTER_NAME boot script? <y/n/q> [y] ->
#enter




7- Convert .cdb libraries to oa (you can use this website as an example)
http://eda.engineering.wustl.edu/wiki/index.php/How_to_convert_a_CDB_library_to_an_OA_library

8- The following command must be done each time you restart the computer:(Don't run as root)
         ->cd /home/USER_NAME/IC610/tools/bin
         ->./lmgrd -c /home/USER_NAME/IC610/share/license/license.dat
You can make it an alias in your .bashrc file to be easier:
alias lmli='/home/eslam/IC6.1/tools/bin/lmgrd -c /home/eslam/IC6.1/share/license/license.dat'

The above alias allows you to just type “lmli” in the terminal instead of (./lmgrd -c /home/…..)
Now to open Cadence type the following in the terminal:
->lmli
Then switch to root and type:
->cadence
->virtuoso



9-  If you get the following error
         Qt Warning: X Error: BadWindow (invalid Window parameter) 3
         Major opcode: 20 (X_GetProperty)
         Resource id: 0x3e00011
         Qt Warning: X Error: BadWindow (invalid Window parameter) 3
         Major opcode: 18 (X_ChangeProperty)
         Resource id: 0x3e00011 ….etc.

     Try doing this
         cd /etc/X11/
Create the following file in a text editor and save it as “ xorg.conf ” in /etc/X11/

Section "Device"
Identifier "Configured Video Device"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection



To make Fonts better , Try this at the command line :)
         ->sudo apt-get install -y gsfonts-x11 texlive-fonts-extra xfonts-100dpi xfonts-75dpi xfonts-         100dpi-transcoded xfonts-75dpi-transcoded
Then reboot your machine.


11- If the keyboard shortcuts don't work when you open a new cell view do the following:
         ->cp /home/USER_NAME/IC610/tools/dfII/cdsuser/.cdsinit /Your working Directory

for more information check this link
http://getglitched.com/?page_id=143