- 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-cacheYou 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
-roption lets you copy a directory and all of its contents recursively. - Use a text editor to view files that are in the
XORdirectory and read the comments to figure out what each of them does (also see theREADMEfile). One local setup file.synopsys_vss.setupneeds special attention: You can set the editor you prefer for variableEDITCMD, set theTIMEBASEunit to which you prefer, and look at the mapping from logical directoryWORKto physical directory "work" - In the
XORdirectory make a new directory called work. In order to do that, first make sure you are inXORdirectory (you can use thepwdcommand for that) and then type:mkdir workThis 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
.vhdfile, you need Synopsys Analyser,vhdlan. At the Unix prompt simply type:vhdlan filename.vhdNote: you can also omit
.vhdand 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.vhdandor.vhdfiles 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 tbThis 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
makeYou may have to run
makea 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 ]