+ All Categories
Home > Documents > INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR...

INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR...

Date post: 29-Aug-2020
Category:
Upload: others
View: 9 times
Download: 0 times
Share this document with a friend
24
INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED WORKSHOP 1 Note: These commands can be run remotely via ssh to one of the DSIL machines. If running remotely, ignore the references to FVWM, and there's no need to start up an xterm if you're in an ssh session. However, once you're physically in the DSIL lab, you MUST run the FVWM window manager. Log into a DSIL workstation. Make sure that at the login screen, you choose "FVWM" under the "Session" pulldown menu. The FVWM window manager is lightweight and will not take system resources away from the Mentor tools. Start up a terminal/xterm window. At the command prompt, type "cd" and hit the Enter key to make sure that you're in your home directory. Create a subdirectory for the mentor workshop files with this command: mkdir mentor-work Change to the new subdirectory: cd mentor-work Use the following command to copy the demo tar file to your workshop directory: cp /home/software/mentor/workshop/mentor/spt_050505_90n_s.gtar.gz . Run the following command to copy the workshop PDF file to your workshop directory: cp /home/software/mentor/workshop/Self_paced_tutorial_2005_May.pdf . Use the following command to expand the tar file: gtar xzvf spt_050505_90n_s.gtar.gz 1 Prepared by Heather L. Sarik, Duke University ECE Department System Administrator
Transcript
Page 1: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS

Mahmut Yilmaz

09.11.2005

1. RUNNING MENTOR GRAPHICS SELF-PACED WORKSHOP1 Note: These commands can be run remotely via ssh to one of the DSIL machines. If running remotely, ignore the references to FVWM, and there's no need to start up an xterm if you're in an ssh session. However, once you're physically in the DSIL lab, you MUST run the FVWM window manager.

• Log into a DSIL workstation. Make sure that at the login screen, you choose "FVWM" under the "Session" pulldown menu. The FVWM window manager is lightweight and will not take system resources away from the Mentor tools.

• Start up a terminal/xterm window.

• At the command prompt, type "cd" and hit the Enter key to make sure that you're

in your home directory.

• Create a subdirectory for the mentor workshop files with this command:

mkdir mentor-work

• Change to the new subdirectory:

cd mentor-work

• Use the following command to copy the demo tar file to your workshop directory:

cp /home/software/mentor/workshop/mentor/spt_050505_90n_s.gtar.gz .

• Run the following command to copy the workshop PDF file to your workshop directory:

cp /home/software/mentor/workshop/Self_paced_tutorial_2005_May.pdf .

• Use the following command to expand the tar file:

gtar xzvf spt_050505_90n_s.gtar.gz

1 Prepared by Heather L. Sarik, Duke University ECE Department System Administrator

Page 2: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

• Run the "ls" command. You should see the following files and one directory called cicd:

README cicd start_cicd_demo start_middle_sp Self_paced_tutorial_2005_May.pdf spt_050505_90n_s.gtar.gz start_middle_dspf

• Run the following command to intialize the standard ECE Mentor environment:

source /opt/digital/setup_mentor_new

• To initialize the demo and start up icstudio, run the following command:

./start_cicd_demo

IMPORTANT: Re-running the ./start_cicd_demo command will re-initialize your workshop and wipe out your project data. Though this may be desireable if you want to start over, you should not do this if you have project data you want to preserve. To resume working on a project after you log off a machine, run the "source /opt/digital/setup_mentor_new" command, then run "icstudio" and re-open your project.

• To start up Acrobat Reader with the tutorial PDF file loaded, use the following command:

acroread Self_paced_tutorial_2005_May.pdf &

2. USING ICSTUDIO

• Open the .cshrc file in your root directory. Add the following lines:

source /opt/digital/setup_mentor_new source /ece/digital/share/mgc_hep/technology/ic/AMI_5um_mentorkit/source_me

Note: Add them in this if-block: if ( `uname` == SunOS ) then ... endif

• Create a folder named EE261CLASS in your user directory: Open terminal window and type: mkdir EE261CLASS

• Open a terminal window and type: icstudio

You will see the icstudio window. (Figure-1)

Page 3: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Figure 1

• Go to File->New->Project New project wizard will pop-up. (Figure-2) Click "Next".

Figure 2

• As project name, enter EE261CLASS (or anything you want)

Page 4: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

As project location, select the folder you have just created (EE261CLASS) Note: Folder name is not important. Click "Next". (Figure-3)

Figure 3

• You need to set the location map in this step.

Click on "Open Location Map Editor". (Figure-4)

Figure 4

Click on "Import" button. (Figure-5) Go to /ece/digital/share/mgc_hep/technology/ic/AMI_5um_mentorkit and select the file named mgc_location_map (Figure-6)

Page 5: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Figure 5

Figure 6

Page 6: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Click on "Open". Then, click on "OK". (Figure-7)

Figure 7

Click on "Next". (Figure-8)

Figure 8

• In this step, process rule files will be selected.

Click on "Open Settings Editor". (Figure-9)

Page 7: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Figure 9

For the fields shown in figure-10, enter/select the following values:

Process File: /ece/digital/share/mgc_hep/technology/ic/AMI_5um_mentorkit/process/ami_c5

DRC Rules File: /ece/digital/share/mgc_hep/technology/ic/AMI_5um_mentorkit/rule_deck/DRC/calAnaDRCc5.rul

LVS Rules File: /ece/digital/share/mgc_hep/technology/ic/AMI_5um_mentorkit/rule_deck/LVS/calibreEXT.rul

SDL Rules File: /ece/digital/share/mgc_hep/technology/ic/AMI_5um_mentorkit/process/sdl_process_rules

Figure 10

Then, click on OK. (Figure-11)

Page 8: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Figure 11

• Click on "Next" and then "Finish". (You can see the project configuration before

clicking finish button) (Figure-12)

Figure 12

Page 9: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

NOTE: If you need to change some settings of the project:

Go to Tools -> Preferences -> Click on Project tab Go to Tools -> Location Map Editor

NOTE: ICStudio opens the last project at start-up. If you want to change this option,

Go to Tools -> Preferences -> Click on General tab Change the option for "When starting, open most recently opened project"

NOTE: You don't need create a new project for each homework or project. You can work in a single project environment, by adding different libraries. (File->New->Library) 3. DESIGN EXAMPLE: NAND3 1- In ICStudio, go to File New Library. Enter "test_library" as the library name. (Figure-13) ICStudio will create a folder for your library under the project folder.

Figure 13

2- Select the newly created test_library folder from Library window. (Figure-14) Then, go to File Import Verilog

Figure 14

Page 10: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

3- Select "Verilog/Symbol" option for "Views to be created". (Figure-15) View Name: nand3 Verilog Netlist: /ece/digital/share/mgc_hep/technology/ic/mahmutkit/verilog/nand3.v Language: Verilog Click on "Import". (Figure-16)

Figure 15

Figure 16

NOTE: The folder /ece/digital/share/mgc_hep/technology/ic/mahmutkit/verilog includes verilog codes for some basic cells. If you are familiar with verilog, you can create your own verilog code and import it. If in the future, you need a verilog code for a cell that is not given in this folder, please contact your TA for help.

Page 11: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

4- In the "create symbol options" window, select AND as shape type. Click "Create Symbol". (Figure-17)

Figure 17

5- Double click on "Symbol" in the "View" pane. (Figure-18)

Figure 18

6- The generated symbol is AND-3. We need to convert it to NAND-3. (Figure-19)

Figure 19

Go to Setup Select Filter and select all options, then click OK.

Page 12: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Use Add Circle button (on the right side of the window) to create a small circle. Move the PIN at the output of the gate to right, and place the circle before the PIN. (Figure-20)

Figure 20

Then, connect the circle and the PIN using Add Polyline button. Delete vl_logic texts (Select and press Del) Click on Check&Save button (on the right side of the window). NOTE: You can use F2 key to deselect a selected object. Close DA-IC window and return to ICStudio. You will see in the "View" pane that the verilog code is now shown in red color for nand3 (Figure-22). Since we have changed the symbol, we need to compile the verilog code again to check for consistency. Right click the verilog code and select Check HDL.

Figure 22

7- Creating schematic of NAND3: Right click nand3 in the Cell pane, and select "New View". Select "Schematic" as view type and click "Finish". (Figure-23)

Figure 23

Page 13: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

A DA-IC window will be opened. (Figure-24)

Figure 24

Click on "Library" button (on the right side of the window). Then, click on "MOS" button. (Figure-25)

Figure 25

Page 14: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Click on NMOS, and enter the following values: W=9, L=1, M=1 (Figure-26)

Figure 26

Place 3 NMOS transistors in this way. (Figure-27)

Figure 27

Page 15: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Similarly, click on MOS, select PMOS, and enter the following values: W=6, L=1, M=1 Place 3 PMOS transistors above NMOS ones. (Figure-28)

Figure 28

Page 16: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Click on "Basic Library" button (on the right side of the window). Then, click on "Generic Library". (Figure-29)

Figure 29

Click on "Ground" and place it below the NMOS transistors. Click on "VDD" and place it above the PMOS transistors. (Figure-30)

Figure 30

Page 17: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Click on "portin" and place three input ports on the left side. Click on "portout" and place an output port on the right side. (Figure-31)

Figure 31

Select the first input port, press "l" (el) to change its properties, and name it as A. (New Value=A) Similarly, name other input ports as B,C and output port as Q. (Figure-32-33) NOTE: Port names should be the same as stated in the verilog code. This was also the case for symbol, but for symbol, all ports were created automatically. Press "w" key to start wiring mode. Then, make the connections. (Figure-32-33) Then, press check&save button (3rd button under the menu bar) Close DA-IC.

Page 18: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Figure 32- 33

Page 19: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

8- Digital Simulation of NAND3: Return to ICStudio. In the Cell pane, right click and select new view. (Not on nand3) Enter the name "nand3_digitaltest" and type Schematic. DA-IC window will be opened. Press "i" key to add instance. Select test_library : nand3 symbol (Figure-34)

Figure 34

Add a portin to the left side, rename it as IN[2:0], add a portout to the right side, rename it as OUT. (Figure-35)

Figure 35

(To add ports, either use the procedure described above or use Add Port button on the right side of the window. You can also use the toolbox on the left side.)

Page 20: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Press to "W" key (bus) and add a bus starting from input port (Figure-36).

Figure 36

Press to "w" key (wire) and connect the input ports of NAND to the bus. You will asked for bit numbers. Enter 0,1, and 2. Then, press "w" and connect the output of NAND3 to OUT. (Figure-37)

Figure 37

Click on "Check&Save" button. Then, click on "Simulation" button. (Figure-38)

Figure 38

Page 21: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Select "Digital Simulation" and enter the name "digitalSim". Click OK twice to enter simulation mode. (Figure-39)

Figure 39

In the simulation mode, click on Session button (right of window) under Setup, and select Simulator Options. Select ns time unit. (Figure-40)

Figure 40

Click on "Netlist" button. Then, click on "Run" to start simulation. Both EZWave (Figure-41) and Modelsim (Figure-42) windows will be opened. You will do your simulations in Modelsim and see the waves in EZWave.

Figure 41

Page 22: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Figure 42

In ModelSim, in the Objects pane, right click the signal names IN and OUT and select Add to Wave Selected Signals. You have added these signals to wave window. Go to EZWave window and see. (Figure-43)

Figure 43

Page 23: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

Return to ModelSim, go to Objects pane again. Right click the signal name IN, click "Force" and enter the signal values 101. Click OK. In ModelSim, set the run length as 1 ns (100fs default value). Press on "Run" button which is on the right side of Run Length box. Go to EZWave, and see the results in wave window. (Figure-44)

Figure 44

Return to ModelSim, go to Objects pane again. Right click the signal name IN [2], click "Clock" and enter period 1 ns. Click OK. (Figure-45) Right click the signal name IN [1], click "Clock" and enter period 2 ns. Click OK. Right click the signal name IN [0], click "Force" enter value 1. Click OK. Now, click Run button in ModelSim several times, then go to EZWave and see the results.

Figure 45

Page 24: INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLSkrish/teaching/LAB_MANUALS/...INTRODUCTION TO MENTOR GRAPHICS DESIGN TOOLS Mahmut Yilmaz 09.11.2005 1. RUNNING MENTOR GRAPHICS SELF-PACED

NOTE: Adding timing to digital simulations: - Go to Simulation window in DA_IC and see that NAND3 gate has properties called like: TDR_A_Q : A to Q rising signal delay TDF_A_Q : A to Q falling signal delay - Right click on NAND3, click "Edit Properties" (Figure-46) and enter the wanted delay values there. Click Apply-OK.

Figure 46

- Restart the simulation and observe the delay on signals. - If changing the cell properties does not add delays, you need to change your verilog code, and define delays in it. (Default values are set to 0.00ns) NOTE: If you don't want to use EZWave to view the waves, in DA_IC simulation mode, go to Session Simulator, and uncheck the option to see the waves in EZWave. Then, you can see the waves in ModelSim. 9- AMS Simulation: For AMS simulation, follow the steps given in the workshop pdf file.


Recommended