1. Introduction



University of Southern CaliforniaUSC Department of Electrical and Computer EngineeringEE457L: Running QuestaSim on Mac OSX Sudheendra ChennupatiLast Update: Feb 2020Contents TOC \o "1-3" \h \z \u 1. Introduction PAGEREF _Toc33840742 \h 32. Connecting to Server via X-Quartz PAGEREF _Toc33840743 \h 43. QuestaSim setup PAGEREF _Toc33840744 \h 61. IntroductionThere are some programs or simple applications which you can run on your own local machine, such as Pages, KeyNote, etc. But in order to work on the lab assignments, we need to use some software which are available on the UNIX servers. We use QuestaSim? Advanced Simulator for our EE354L/EE457L labs. QuestaSim? is installed on our USC UNIX servers, so it’s ready to for the students to use it directly without the hassle of installing the tools on the local machine. To use them, you should connect to one of the following servers:viterbi-scf1viterbi-scf2To login into one of the servers, we need a USC user name which has been already given to you (take a look into this for more information).This tutorial will teach you how to:1st: Connect to USC UNIX servers from your own machine (e.g. your laptop or USC public PCs at libraries) with Mac OS X using X-Quartz. 2nd: Setup your UNIX user so you can use QuestaSim? with appropriate license file and libraries.Notes:USC Information Technology Service (ITS) customer support service provides support to the USC community for connecting to the USC Network and using supported applications.You can use software freely distributed by ITS for different operating systems here.Being familiar with UNIX system and its commands is necessary. If you are not familiar with UNIX, the following link is a good starting point.2. Connecting to Server via X-QuartzIn order to login to our UNIX servers, we need to install X-Quartz. You can download X-Quartz from here. Steps to install and setup your server:Download X-Quartz from the link above and install it with the default settings. Once the installation is done, go to Applications (Shift+Command+A) and go to the “Utilities” folder. Double Click on the XQuartz icon, which creates an icon on the dock panel as shown below:Right click on the XQuartz icon in the dock window and select the Terminal option from the Applications.This should open a xterm window similar to the one shown below:If you don’t have your “DISPLAY” environment variable setup (Check by running “echo $DISPLAY” on your terminal, if the value is blank, you need to set DISPLAY), run the following command on your terminal: export DISPLAY=“:0.0” Then login to your viterbi-scf server by running the following command:ssh -X -Y <USC_user_ID>@viterbi-scf1.usc.eduRefer to the screenshot below as an example,Enter your USC password and login.3. QuestaSim setup Go to your home directory and open the .cshrc file by running the following commands on your xterm terminal:cd ~gedit .cshrc &At the end of your .cshrc file, add the following snippet.if (! $?LM_LICENSE_FILE) then setenv LM_LICENSE_FILE "1715@lic-modelsim.usc.edu"else setenv LM_LICENSE_FILE "1715@lic-modelsim.usc.edu:$LM_LICENSE_FILE"endifif (! $?PATH) then setenv PATH /usr/local/questa_formal/share/modeltech/binelse setenv PATH /usr/local/questa_formal/share/modeltech/bin:$PATHendifSave <Ctrl+S> the .cshrc file after adding the above lines and close the editor. Source your .cshrc file again and invoke QuestaSim by typing the following two commands on your terminal. source .cshrcvsim &NOTE: You don’t need to repeat these steps again when you open X-Win32 and launch the xterm. Just “vsim &” is enough to launch QuestaSimQuestaSim will be invoked as shown below:Try opening a Verilog file via the QuestaSim editor and see if the font is fine. Sometimes you might run into a problem as shown in the screenshot below: To fix this problem, open your QuestaSim config file by running the following command on your terminal “gedit ~/.modelsim &”. Find “PrefDefault = ... textFontV2 {Courier 12}” (the name of the font may differ). Change 12 to -12, so it will look like this: textFontV2 {Courier -12}. Save your file after making these changes. Close QuestaSim and reopen it by running “vsim &”. ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download