Schematic Tutorial
Schematic Tutorial
Select SSH
To Start Mentor Graphics - From Your Personal
Computer in MobaXterm (Method I)
To Start Mentor Graphics - From Your Personal
Computer in MobaXterm (Method I)
To Start Mentor Graphics - From Your Personal
Computer in MobaXterm (Method I)
csh
mkdir ~/mentor_designs
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
There must be 9 entries asfollows
MGC_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_MACROLIB /cad/Mentor_tools/ICFlow/2008.2o/2008.2o_linux_x86_64
/icflow_home/mgc_icstd_lib/mgc_ic_macrolib
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
Press OK
Press ‘Next’
Press ‘Open Settings Editor’
There you must fill the entries asfollows
Process File /cad/Mentor_tools/ADK_3.1/technology/ic/process/tsmc018
LVSFile /cad/Mentor_tools/ADK_3.1/technology/ic/process/tsmc018.calibre.rules
Whatever present in this field should be replaced with this text and
press Enter. Continue following steps from slide 80.
Whatever present in this field should be replaced with this text and
press Enter.
Must not be followed if steps in method I is already followed.
• 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
Type the name of
port here
Provide
appropriate
waveform
Ensure that reference node is
set to GROUND, not GND,
before adding force.
Force added
• Force will appear as...
• Now we have to set nature of analysis likeAC,
DC, Transientetc
• Click ‘Analyses...’ on right sidebar & select
appropriate one
• Then click on setup to enter detail ofanalysis
• Finally click ‘OK’
• For transient simulation we always put
starting time as0
• Keep Stop time as per the requrements
• Max time step should be kept as low as
possible to get higher accuracy but thisleads
to more simulation time
• 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
• Now we can initiate simulation
• Toinitiate the simulation press button ‘Run
ELDO’
• Toview waveforms select arrow on the side of
“View Waves" & click on “Reload”
• Select correct analysis type & appropriate
signals
• Can change color scheme for waveforms
• Monochrome
• White Background
For change of line colour, line width, etc., double click the waveform name.
• On double clicking V(VIN) waveform name.
After change of line width and/or line color of the 2
waveforms.
• We can also put grids & cursor formeasurements
• Right click on the plot in the waveform window (on the empty
portion) and select
• “Grid Lines”
• “Add cursor”
With grid on one of the waveforms, and with a cursor
added.
DCAnalysis
• For DCanalysis select DCfrom Analyses...
• Click on setup
• During DCanalysis we can sweep any voltage
signal between two values with propervoltage
steps
• In shown example input voltage of the
inverter has been swept from 0V to 1.8V & we
got the proper output.
• Note: You have to select the voltage
source from the drop down list in the
source tab, rather than type the name.
• Here, V1 (Name of the voltage source) refers to supply voltage, VDD.
• V1 name can be verified if you check the properties of voltage
source (refer back to slide 57).
• VFORCE_VIN refers to the input force applied.
• Similarly simulate the circuit using ‘RunELDO’
& observe the waveforms appropriately
• ACanalysis basically provides the frequency
response of the circuit
• For ACanalysis we have to force the input
signal as sinusoidal signal of appropriate
magnitude
AC magnitude should be small signal, say 1mV.
DC magnitude is the bias.
• Then we have to set the analysis asAC
• While setup we need to specify start &stop
frequency
• Also we need to specify input port (where
signal freq is varied) & output portwhere we
saw the effect
• Similarly results are seen through View Waves
• db(Vout)=20*log(Vout,dc_magnitude)
• cphase(Vout) implies phase of output signal wrt input.
• Phase of output is 1800. It is correct, as Vout decreases with increase in Vin.
Input and output of inverters are out of phase as expected.
• With increase in frequency, due to input-output coupling capacitance, phase
and gain decreases as expected.
• db(Vin)=-60 because dc magnitude of Vin provided was 0.001. (20log(0.001)=-60)
Calculating gain using waveform calculator
Waveform calculator
Calculating gain using waveform calculator
• Select Vout signal from left hand side of waveform viewer (EZwave)
• Right click the signal and select “Copy Waveform Name(s)”.
Calculating gain using waveform calculator
Ref: https://www.edgefx.in/understanding-cmos-fabrication-technology/
Points to Remember
• Do not use circuits that
require input to be applied on A
body of NMOS transistors
(reason mentioned in
previous slide). B
• Inputs can be applied on
body of PMOS transistors.
Cannot be drawn in
– Those transistors have to be
made in separate n-wells. layout with tsmc018
technology
as body of NMOS transistors cannot be
applied different potentials (in this case
different inputs A and B).
Appendix- III
Prob. I
1 Warning
• Simulation results.
• Inverter output waveform (bottom waveform) is now
correct.
Prob. III – Solution (Method II) - Preferred
• Netlist file
• GND node is removed from the netlist.
Prob. III – Solution (Method II) - Preferred
• Command file
• GND node is removed from both the netlist and
command file.
Prob. III – Solution (Method II) - Preferred
Analysis is AC.
• Command file.
• Analysis and atleast one of the input forces should be the
same.
• Therefore, if AC analysis is to be done, force provided to
Vin should be also AC (solution).
Prob. V- Solution
• V1 is a voltage source.
• Line starts with V => voltage source.
• Next two nodes, VDD and GROUND are positive
and negative nodes, respectively of the voltage
source.
• After that waveform of voltage source is defined.
• In short, the line defines
• A DC voltage source of 1.8V, named V1, is
applied between terminals VDD and GROUND.
Understanding Netlist File Syntax
• M2 is a MOSFET.
• Line starts with M => MOSFET.
• Next four nodes, VOUT, VIN, VDD and VDD are
drain, gate, source and body nodes, respectively of
the MOSFET.
• P denotes that it is PMOS.
• After that, channel length (L) and channel
width(W) of the MOSFET is defined as 0.18u and
0.45u respectively.
Understanding Netlist File Syntax
• M1 is a MOSFET.
• Line starts with M => MOSFET.
• Next four nodes, VOUT, VIN, GROUND and
GROUND are drain, gate, source and body nodes,
respectively of the MOSFET.
• N denotes that it is NMOS.
• After that, channel length (L) and channel
width(W) of the MOSFET is defined as 0.18u and
0.45u respectively.
Understanding Netlist File Syntax
All the device
VDD VDD nodes are marked
in white text
according to the
Vin circuit netlist.
VDD
Vout Can verify
from this that
Vout the netlist
correctly
GROUND
represents the
Vin GROUND inverter
circuit.
GROUND
Understanding Netlist File Syntax
Reference node is defined. GND node is
connected to 0V. It should have been GROUND.
These three lines show that VIN is also not assigned any voltage.
the netlist do represent the However, it is assigned in command
circuit of the inverter. file (will see in the coming slides)
Understanding Command File Syntax
Analysis is done at a
Transient temperature of 27⁰C.
analysis from
0ns to 100ns
Understanding Command File Syntax
Current flowing
into source
terminal of M2
Measuring Current, Energy and Power
Current is negative as current is flowing out of voltage source, and not into the voltage source.
Measuring Current, Energy and Power
Instantaneous power
dissipation in M2, and at
voltage source V1.
Prepared byHIMANSHU(Y11)
Edited and Appended by DINESH(Y15)