- To log onto the machine where Synopsys is installed, you need to do this. It can be done from one of the CSIL machines or another Unix machine that can connect to
orion.csil
.- At the Unix prompt type:
ssh orion.csil
- Copy the Synopsys setup file into your home directory. At the Unix prompt type:
cp /gfs1/CMPT/250/.synopsys_vss.setup ~
- Once you're on
orion
, you might want to open a new Console and run this command (it must be run onorion
):/gfs1/CMPT/250/bin/font-cache
You don't have to do this. If you don't, it will be done for you the first time you start the simulation (it's one-time-only). The process of building the font cache takes a few minutes and doing it now will save you time later in the tutorial.
- At the Unix prompt type:
- An Example Used in the Tutorial
- Copy the XOR example into your home directory.
In order to do that, at the Unix prompt type:
cp -r /gfs1/CMPT/250/XOR ~
The
-r
option lets you copy a directory and all of its contents recursively. - Use a text editor to view files that are in the
XOR
directory and read the comments to figure out what each of them does (also see theREADME
file). One local setup file.synopsys_vss.setup
needs special attention: You can set the editor you prefer for variableEDITCMD
, set theTIMEBASE
unit to which you prefer, and look at the mapping from logical directoryWORK
to physical directory "work" - In the
XOR
directory make a new directory called work. In order to do that, first make sure you are inXOR
directory (you can use thepwd
command for that) and then type:mkdir work
This is done because once you compile your files, Synopsys will put the compiled binary files (and other text files) in the default directory called work. So you have to make sure such a directory exists.
- Copy the XOR example into your home directory.
In order to do that, at the Unix prompt type:
- Analyse the VHDL files
- In order to compile a
.vhd
file, you need Synopsys Analyser,vhdlan
. At the Unix prompt simply type:vhdlan filename.vhd
Note: you can also omit
.vhd
and simply typevhdlan filename
.Take some time to familiarize yourself with
vhdlan
. - Be careful! - there is a hierarchy in compiling the files
within a design. In the XOR example, the
and.vhd
andor.vhd
files have to be compiled first before you can compilexor.vhd
, and finallytb.vhd
. Once you change a file, all the files dependent on that have to be compiled again.
- In order to compile a
- Automate the process
- Once you've analyzed all of the files by hand once, you can create a make file that knows how your model fits together and can build it automatically by running the command
simdepends -o Makefile tb
This creates a file called
Makefile
. - Now that you have the make file, you can re-analyze all of the files in the correct order just by typing the command
make
You may have to run
make
a few times if you've changed a few levels below the testbench. - If you're working on a project for a long, this will save a lot of time. You don't have to remember what you changed or the exact command, just type
make
.
- Once you've analyzed all of the files by hand once, you can create a make file that knows how your model fits together and can build it automatically by running the command
[ Go on to part 2 ]