80
Mentor Graphics Tutorial EE610 Prepared by HIMANSHU & ANUJ

Mentor EE610

Embed Size (px)

Citation preview

Page 1: Mentor EE610

Mentor Graphics Tutorial

EE610

Prepared by HIMANSHU & ANUJ

Page 2: Mentor EE610

To start Mentor Graphicsright click on desktopclick on open terminalcshmkdir ~/mentor_designs

last command Required only for first time

Page 3: Mentor EE610
Page 4: Mentor EE610

To use Mentor Graphics

cshcd mentor_designssource /cad/Mentor_tools/ICFlow/2008.cshicstudio&

Page 5: Mentor EE610
Page 6: Mentor EE610

Mentor Graphics icstudio GUI will open

initially the screen will look like

Page 7: Mentor EE610

• Click on File• Then New• Then Project• You will get following window

Page 8: Mentor EE610

02

Page 9: Mentor EE610

• Press Next button to continue• Give appropriate name to your project

Page 10: Mentor EE610

03

Page 11: Mentor EE610

• Again press the Next button• Now press ‘Open Library List Editor...’ button

Page 12: Mentor EE610

04

Page 13: Mentor EE610

• Then click ‘Edit Menu’ button• Select ‘Add MGC Design Kit...’ option• There select ‘/cad/Mentor_tools/ADK_3.1’

Page 14: Mentor EE610
Page 15: Mentor EE610
Page 16: Mentor EE610

Then a row named ‘MGC_DESIGN_KIT’ will be added to the entries

Page 17: Mentor EE610
Page 18: Mentor EE610

• Now again press ‘Edit Menu’ button• Then select ‘Add Standard MGC Libraries’ then

more 5 libraries would be added to entries

Page 19: Mentor EE610
Page 20: Mentor EE610

• Now press ‘New Row’ button thrice to add 3 new rows & fill them as follows

• (you can add rows by browsing appropriate location upto ‘mgc_icstd_lib’ & then write name of perticular library)

MGC_IC_COMMLIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_commlib

MGC_IC_COMMLIB_QS /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_comm_qs

MGC_IC_COMMLIB_RF /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_comm_rf

Page 21: Mentor EE610

There must be 9 entries as followsMGC_DESIGN_KIT /cad/Mentor_tools/ADK_3.1

MGC_IC_GENERIC_LIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/generic_lib

MGC_IC_DEVICE_LIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/device_lib

MGC_IC_SOURCES_LIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/sources_lib

MGC_IC_VERILOG_LIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_verilog

MGC_IC_MICROLIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_microlib

MGC_IC_COMMLIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_commlib

MGC_IC_COMMLIB_QS /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_comm_qs

MGC_IC_COMMLIB_RF /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64/icflow_home/mgc_icstd_lib/mgc_ic_comm_rf

Page 22: Mentor EE610

Press OK

Page 23: Mentor EE610

Press ‘Next’Press ‘Open Settings Editor’There you must fill the entries as follows

Process File /cad/Mentor_tools/ADK_3.1/technology/ic/process/<technologyname>

DRC Rules File /cad/Mentor_tools/ADK_3.1/technology/ic/process/<technologyname>.rules

LVS File /cad/Mentor_tools/ADK_3.1/technology/ic/process/<technologyname>.calibre.rules

PEX Rules Files /cad/Mentor_tools/ADK_3.1/technology/ic/process/<technologyname>.calibre.rules

*Leave ‘SDL rules file’ entry empty*<technology name> are ami05(0.5µm),

tsmc018(180nm)

Page 24: Mentor EE610
Page 25: Mentor EE610

• Press ‘OK’• Then ‘Next’• Then ‘Finish’

Page 26: Mentor EE610
Page 27: Mentor EE610

• Now including the libraries is over• our screen will look like...

Page 28: Mentor EE610
Page 29: Mentor EE610

• Now we can built the circuit• To do this we have create new Library• Right click within Library space & select New

Library• Give appropriate name to the library & press

OK

Page 30: Mentor EE610
Page 31: Mentor EE610

• Select the created Library• Right click within the Cell area• Select ‘New Cell View’• Enter Appropriate cell name• To built the circuit, select View Type as

‘Schematic’• View Name would automatically become

‘Schematic’• Press ‘Finish’

Page 32: Mentor EE610
Page 33: Mentor EE610
Page 34: Mentor EE610

• To place devices select ‘Library’ on side panel• Then ‘Device Lib’• Let us put 4-pin NMOS

Page 35: Mentor EE610
Page 36: Mentor EE610

• Now select the device, right click over it & click over word ‘Properties’ but not on arrow in front

• Select the entry ASIM_MODEL & change the value NCH to N

• Click apply• As per requirement we can also modify other

attributes of NMOS like W, L etc.• Finally press ‘OK’

Page 37: Mentor EE610
Page 38: Mentor EE610

• Similarly place other devices like PMOS• Also through its properties make its

‘ASIM_MODEL’ as P from PCH

Page 39: Mentor EE610
Page 40: Mentor EE610

• Place VDD, GND etc through Generic Lib inside libraries on side panel

• Various sources can be placed through Sources Lib

Page 41: Mentor EE610
Page 42: Mentor EE610

• The value of the source can be modified by selecting it, then right click on it, through properties

• The small branch at the side of circuit is to define VDD

Page 43: Mentor EE610
Page 44: Mentor EE610

• Press W to place the wire• Make appropriate connections

Page 45: Mentor EE610
Page 46: Mentor EE610

• Now we have to add ports• Ports are of 3 types- portin, portout, portbi• through ports only we can vary or sweep the

signal• Ports list available on left sidebar• Place portin wherever we need to apply input

signal• Place portout wherever we need to take

output• By default name of each port is NET

Page 47: Mentor EE610
Page 48: Mentor EE610

• To change the name of the port select the point on port, right click & select properties

• Give appropriate name to the port

Page 49: Mentor EE610
Page 50: Mentor EE610

• Now our circuit is ready for simulation

Page 51: Mentor EE610

SIMULATION

• Click Simulation on right side panel• Press New Configuration• Select AMS_Simulation & press OK• Select default (if any other configuration

comes again press New Configuration and repeat the step)

• Press OK

Page 52: Mentor EE610
Page 53: Mentor EE610

• Now we have to include Library(model) using which we are simulating our circuit

• For this select ADK Sim Palette on right sidebar

• Select Library & include appropriate model file (level1 or BSIM3)

• Press OK• Again press Default Sim Palette

Page 54: Mentor EE610
Page 55: Mentor EE610
Page 56: Mentor EE610
Page 57: Mentor EE610

• Now we have to Force the Input ports• Forcing means applying appropriate input

signal to input port• Select ‘Forces’ from right sidebar & click

manager• Now select the name of port which you want

to force i.e. the ports to which we are applying input signals & select appropriate input signal

• set its attributes

Page 58: Mentor EE610
Page 59: Mentor EE610

• After correctly setting the appropriate attributes of the signal add the signal to Forces list by pressing add button

Page 60: Mentor EE610
Page 61: Mentor EE610

• Force will appear as...

Page 62: Mentor EE610

• Now we have to set nature of analysis like AC, DC, Transient etc

• Click ‘Analyses...’ on right sidebar & select appropriate one

• Then click on setup to enter detail of analysis• Finally click ‘OK’

Page 63: Mentor EE610
Page 64: Mentor EE610

• For transient simulation we always put starting time as 0

• Keep Stop time as per the requrements• Max time step should be kept as low as

possible to get higher accuracy but this leads to more simulation time

Page 65: Mentor EE610
Page 66: Mentor EE610

• Now before simulating we should store our input & output signals

• Select Setup, the Outputs• Add all input & output signals to the list by

clicking add button

Page 67: Mentor EE610
Page 68: Mentor EE610

• Now we can initiate simulation• To initiate the simulation press button ‘Run

ELDO’

Page 69: Mentor EE610
Page 70: Mentor EE610

• To view waveforms select View Waves & click on New Window

• Select correct analysis type & appropriate signals

Page 71: Mentor EE610
Page 72: Mentor EE610

• We can also put grids & cursor for measurements

Page 73: Mentor EE610

DC Analysis

• For DC analysis select DC from Analyses...• Click on setup• During DC analysis we can sweep any voltage

signal between two values with proper voltage steps

• In shown example input voltage of the inverter has been swept from 0V to 3.3V & we got the proper output

Page 74: Mentor EE610
Page 75: Mentor EE610

• Similarly simulate the circuit using ‘Run ELDO’ & observe the waveforms appropriately

Page 76: Mentor EE610

• AC analysis basically provides the frequency response of the circuit

• For AC analysis we have to force the input signal as sinusoidal signal of appropriate magnitude

Page 77: Mentor EE610
Page 78: Mentor EE610

• Then we have to set the analysis as AC• While setup we need to specify start & stop

frequency• Also we need to specify input port (where

signal freq is varied) & output port where we saw the effect

• Similarly results are seen through View Waves

Page 79: Mentor EE610
Page 80: Mentor EE610

• To finish the simulation press End Sim button• Save your work• Close the icstudio• Then type exit in the terminal & press enter• Again type exit & press enter