ADVance MS Tutorial

 

Disclaimer:   This tutorial is only meant to get you started.  For more information refer to adms_gs.pdf.

 

 

Create a file called "MG.setup" containing following text:

 

     set DIR_SPEC=H-sparc-sun-solaris2.7

            setenv CYGNUS_COMPILER_PATH /usr/cygnus

            setenv COMPLETE_GCC_PATH $CYGNUS_COMPILER_PATH/mentor-98r2p26

            setenv GCC_EXEC_PREFIX $COMPLETE_GCC_PATH/$DIR_SPEC/lib/gcc-lib/

            set path = ( $COMPLETE_GCC_PATH/$DIR_SPEC/bin $path )

            setenv LD_LIBRARY_PATH "$COMPLETE_GCC_PATH/$DIR_SPEC/lib:$LD_LIBRARY_PATH"

 

            setenv anacad /usr/nikola/groups/vlsi/pkgs/adms

            source $anacad/com/init_anacad

 

Source this file ("source MG.setup") before using the Mentor Graphics package, or add it to your .cshrc file.

 

To check of your system is setup properly change to a temporary directory and type the following command:

 

     /bin/sh $anacad/adms/$admsver/examples/test.adms

 

The test script will run and inform you of any components that are not working properly.

 

Create a subdirectory to contain your project files and cd to that directory.  Create a library to contain the current project by typing:

 

valib my_library_name

 

The directory "my_library_name" will be created, this only needs to be done once for every library you create. 

 

Before compiling any VHDL-AMS files, set your library to be the working library using the command:

 

vasetlib my_library_name

 

The directory "my_library_name" will be used as the working library.  This needs to be done every time you want to change libraries.

 

Using a text editor create your VHDL-AMS code, for example example.vhd.  Compile the code using the command:

 

vacom my_file.vhd

 

Once the code has compiled start the simulator using the command:

 

vasim

 

The simulator will start and the "Load Design" window will appear.  In the "Library" field make sure your library is selected.  In the "Design Unit Selection" box select the unit to load.  In the "Command File" box select the command file to load, if you don't have one create a new command file by selecting "new".  Press the "load" button to finish loading the design.

 

In the Main window text should scroll down ending with "load done" indicating that your design was successfully loaded.  In the main window select VIEW->ALL, this will open several new windows.  In the Structure window you can highlight entities in your design and their nets will appear in the Nets window.  To plot a net select it in the Nets window and go to VIEW->WAVE->SELECTED NET.

 

To run your design, go to RUN->RUN-ALL in the main window.  The simulation should run and display the selected nets in the Xelga window when finished.

 

For more information try the following documents:

Getting Started with ADVance MS (contains a tutorial)

ADVance MS Quick Reference Guide

VHDL-AMS Quick Reference Guide