You are on page 1of 11

ENEE408D

Cadence Installation
Manual
Pavan Bhargava and Timothy Lee

The Manual
1. System Requirements

40GB+ of free hard drive space


Windows 7, Windows 8, Red Hat Enterprise Linux 5.10, or Mac OSX 64-bit operating systems.
4GB of RAM
Internet connection

2. Overview

Cadence includes a large suite of tools and is the industry standard electronic design automation (EDA).
Use of Cadence software is provided for free to UMD students. The university has Cadence installed on
the Glue file system and it can be run from the servers that are part of Glue. For the purposes of
ENEE408D only two of the Cadence tools are used, IC615 for schematics and layout, and MMSIM111 for
simulation (important to know if you are installing Cadence). Although Cadence is available to all UMD
students through the Glue system, the servers often become slow when many users are logged in at
once. This manual will show you how to install the Cadence tools that are required for this class on your
own personal computer. You will still use the UMD license and will be required to have a campus IP
address while using the software. You can either use your personal computer to run Cadence while you
are on campus, or you can use a VPN to connect to the campus network. We recommend that you use
Cisco AnyConnect VPN which is available on terpware.umd.edu. Cadence will not be able to checkout
licenses if it doesnt think that it is on the UMD network.
The following steps outline the installation procedure:
1. Install Linux within a virtual machine.
2. Download, install, register and update Red Hat Eneterprise Linux 5.1 Server edition.
3. Download and install the various files required to run Cadence.

3. Virtual Box and Red Hat Setup

Cadence runs natively on a Linux environment. We focus this guide on installing Cadence in Red Hat,
which is a type of Linux operating system. This section is dedicated to outlining the installation process
for VirtualBox, which is a way of having a Red Hat operating system virtually on your Windows or Mac
OSX installation. Red Hat can also be installed using other software such as Parallels or VMware, or
natively as a separate partition on your hard drive. We will not be covering these other installation
methods. If one of these methods is used, skip to the Pre-installation setup section.

Downloads

Visit the VirtualBox software installer website: https://www.virtualbox.org/wiki/Downloads


Make sure to download the 4.3.4 version for your Windows or Mac OSX version.
If you cannot find version 4.3.4 on the main download page here are direct links:
Mac OS:http://download.virtualbox.org/virtualbox/4.3.4/VirtualBox-4.3.4-91027-OSX.dmg
Windows: http://download.virtualbox.org/virtualbox/4.3.4/VirtualBox-4.3.4-91027-Win.exe
Visit UMDs Terpware page and navigate to the Linux Operating Systems:
http://terpware.umd.edu/Linux/Package/2318
Download the Red Hat Enterprise Linux Server 5.10 operating system, making sure to select the
64-bit version of the software.

Creating a New Virtual Machine

Find your installation of VirtualBox and start the installer.


Accept the permission requests from the installer as they appear. Open the program once it has
finished installing.
Click on the New button in the top-left corner:

Figure 1: VirtualBox Startup Window


Change the installation type to Linux. Confirm
that the selected version is Red Hat (64-bit). Finally,
name your virtual machine.

Figure 2: Selecting an Operating System

Select the amount of RAM to be allocated to the


Red Hat installation when running. Select values of
around 2-4 GB so that large Cadence simulations can
run comfortably. Note: that this value can be modified
at any time. I have chosen 8GB, or 8192MB, of my
available 16GB of RAM.
Figure 3: Determining RAM allocation

Choose the Create a virtual hard drive now option, then choose VDI (VirtualBox Disk
Image), we prefer dynamically allocated hard drives to minimize space usage.

Here you need to choose the size of the virtual hard drive for your Red Hat installation. We
recommend that you use at least 40GB in order to have enough space for Cadence and your
simulations. We suggest that you allocate more space if you have more available on your hard
drive. Note: This space is VERY difficult to increase; we suggest that you choose at least 60GB
for a Cadence-only installation of Red Hat.

Figure 4: Hard Drive Allocation and Options

Installing Red Hat


Next, we will use the downloaded Red Hat files to install the operating system on the VirtualBox. Click
the settings button, then navigate to the storage tab. After highlighting the Empty option, click on the
picture of a CD. Click the Choose disk option on the new dialog:

Figure 5: Loading Red Hat Installation CD

Navigate and select the downloaded Red Hat ISO.

We will now change some of the settings in VirtualBox. In the General tab, select Advanced and
change the Shared Clipboard and DragnDrop options as desired. In the Display tab, add
more video memory and activate 3D acceleration.

Figure 6: Changing Virtual Machine Settings

The virtual machine should see the bootable ISO image and run it automatically. The screen in
Figure 7 should appear. If it doesnt, and you have an error about hardware virtualization, please
refer to the following guide: http://askubuntu.com/questions/256792/how-do-i-enablehardware-virtualization-technology-vt-x-for-use-in-virtualbox

Figure 7: Initiating the Red Hat Installation Wizard

Press the Enter key to install in the graphical mode


After the CD is found, press Tab to select Skip and Space to skip the media test

Figure 8: Starting the Red Hat Installation

When the installation prompts for an installation number, select Skip entering Installation
Number

Erase all data on the virtual hard drive in order to prepare the system for partitioning Note: This
erases your virtual hard drive created just for Red Hat (not your entire real computer hard drive)

Figure 9: Erasing the Virtual Hard Disk

Select Remove the linux partitions on selected drives and create default layout
Configure your network devices as shown in Figure 11

Figure 10: Configuring Network Devices

Select Software Development and Customize Later


Disable the firewall
Disable SELinux
Do not enable Kdump
Ensure that the date and time are correct
Do not register now, we will register the OS with the UMD server after completing the setup
Create your user name and password
Test the sound card and accept the settings
The system will now reboot

Figure 11: Customizing the Software Selection

Installing Guest Additions


Next, we will install VirtualBox Guest Additions. These are utilities provided by VirtualBox that allow
Ubuntu to interface better as a virtual machine. For example, once the guest additions are installed, the
resolution of the window will automatically adjust as you resize it. This will also set up file sharing
between the native operating system and the virtual machine. This is critical for you to move simulation
results back and forth between the operating systems.

In the VirtualBox toolbar at the top of the screen, click on Devices and Install Guest
Additions or Insert Guest Additions CD image (in the VitualBox window).
Open a terminal by right clicking the desktop and clicking Open in Terminal and navigate to
/media/ then enter the directory beginning with VBOXADDITIONS_
Type su and enter your password
Type ./VBoxLinuxAdditions.run, and let the installation run
Reboot the virtual system

Figure 12: Installing Guest Additions

Register and update your installation of Red Hat

Follow the bootstrap script instructions at


https://www.itsc.umd.edu/MRcgi/MRTicketPage.pl?USER=&MRP=0&MAJOR_MODE=DETAILS&
MAXMININC=&MRNUMBERLIST=185680&LASTID=93055&ABN=&GRPDETAIL=&HISTORYKEY=&C
USTM=&MR=185680&PROJECTID=1
o This will activate your software with the UMD servers and allow you to update the OS,
which is critical for the Cadence install.
To update your software,
type:
yum update
yum install elfutils elfutils-libelf libXp

Finally we will configure the shared folders. This will designate which files to share between the host and
the guest operating systems.

Go back to your VirtualBox settings and click the Shared Folders tab. Add a shared folder on
your host system, making sure to check the auto-mount box.

Figure 13: Adding Shared Folders in VirtualBox

You will now need to add yourself to the group vboxsf so that you can access the shared folder
from within Red Hat. This is done by going to System -> Administration -> Users and Groups.
Then double click your username, click on the Groups tab, scroll down to vboxsf and check the
box.
You will then need to restart Red Hat. This can be done by going to System -> Shutdown ->
Restart. You will be able to access the shared folder once the system has rebooted. The location
of the shared folder will be in /media/whatever_name_you_chose. You can access it from the
desktop by double clicking Computer -> Filesystem -> media.

4. Cadence File Setup and First Use

The Cadence installation will involve downloading the Cadence compressed file. Uncompressing it in
your /opt folder. Then you will create a CadenceIC6 folder in your home directory and run Cadence from
within that folder.

You can download the Cadence compressed file on your host computer and move it to the
shared folder, or you can directly download into the Red Hat OS. You will be decompressing it in
your /opt folder so its best to download it directly to there.
Open a Terminal, by going to Applications -> Accessories -> Terminal
Change directory to /opt. Then become root, this is necessary because /opt is a system folder.
cd /opt
su

Download the Cadence installation, this file is about 4 GB.


wget http://www.ece.umd.edu/class/enee408d.S2014/Cadence.tar.bz

Decompress it, this will take 20-40 minutes!!


tar xjf Cadence.tar.bz

You are done installing Cadence, change back to your home directory.
cd ~

Download the CadenceIC6 file (home version).


wget terpconnect.umd.edu/~tdatta/CadenceIC6_home.tar.gz

Untar the folder.


tar xvf CadenceIC6_home.tar.gz

Starting Cadence
When you start Cadence you will have to run a script that will update your environmental variables and
add the Cadence executable to you path. Note that this only has to be done once within a terminal
instance. You can then run the executable.

Change to the CadenceIC6 directory.


cd CadenceIC6

Source the environmental variables. (Do this only once for a particular terminal)
. virtuoso.env

Note: The . is a very important prefix for this command to work.


Start Cadence.
virtuoso &

UNIX Guide

If youve ever seen a UNIX based operating system, you might be familiar with the terminal. If you
havent, the blank space and lack of windowed navigation might be daunting. The GUI that comes with
your installation of Red Hat doesnt give you the full access and privileges that you will need. This
section will remind you of a few simple commands to help you get started.
Opening a terminal instance, in Red Hat this is done by clicking on Applications -> Accessories ->
Terminal. You will run all your commands in a terminal window.
Important Keywords:
sudo - When added to the beginning of certain lines, this prefix gives administrative powers to the
command. This is important for accessing files in protected areas of the system or changing their access.
(note that this is not automatically enabled in Red Hat, use the su command instead)
su changes you to the super user, you will be prompted for your password. Although you need to be
the super user (aka root) to run certain commands in this guide, you can damage your Red Hat
installation if you edit or delete the wrong files. For this reason it is good to type exit and change back to
your normal user when you are done running the commands.
source or . - Adding this command, either the words source or the period . before executing a
script such as virtuoso.env is important. The scripts goal may be to change environmental variables, but
without this before the command, the changes will not be permanent.
Commands:
Format: COMMAND (-ALTERNATIVE FLAGS) [OTHER INPUTS]
ls (-la) - Lists all the files in the current directory. Adding -la includes showing hidden files such as
.cdsenv.
cd [destination] - Changes the directory to the destination. Using .. moves one directory up.
cd ..
mkdir [name] - Makes a directory with the specified name within the current working directory.
cp [original-file] [destination] - Copies a designated file to the destination.
gedit [file-name] (&) - Opens the file with gedit, which comes with the Ubuntu installation.
pwd - Outputs the current working directory to help you keep track of where you are.
rm (-f) [name] - Deletes a file named name. This cannot be undone so be careful.
tar (-xjf) [file-name] [destination] - Unzips the file name into the destination folder. The qualifiers -xjf
are specific for unzipping .bz2 folders.

chmod [777] [file or directory] - Changes the permissions of a file or directory to give full access for all
users.
grep [search term] - Searches an input for the search term and outputs the corresponding line (details
below)
env - Displays a list of the environmental variables
Tip: It might be helpful to use grep to narrow the results of the env output.
Ex: env | grep [search terms] - The pipe | keyword feeds the results of env into grep
export [variable-name]=[value] - Changes the value for an environmental setup such as $CDS_LIC_FILE,
which is declared with a $ in front, to the inputted value.
ps (-eaf) - Displays a list of running processes. Sometimes, the process you need is hidden, and adding
the qualifier -eaf shows all the information. Again, it might be helpful to pipe | the output to a grep
to narrow down the results.
kill [process-ID] - Forcibly terminates a process with the inputted process ID obtained through a ps
command.
perf_test (-f 111) - Tries to access the license and ping the proper server. 111 is the license number
associated with Cadence
virtuoso (&) - Opens Cadence Virtuoso. If all the setup was done properly and the environmental
variables set, then the software will take a minute and open.

You might also like