SlideShare a Scribd company logo
1 of 7
Download to read offline
How To Plot Transconductance and Even More

                                              By Ruida Yun

gm/Id based methodology is preferred for short-channel length analog circuit design however there is no
GUI support for this method in the current Cadence release. The process can be tedious and requires
much more insight understanding about Cadence. This tutorial will walk through the process on how to
generate the gm/ID curves that can be used as a guide for future designs.

First of all, you need to create a simple schematic to simulate the device. Here NMOS transistor, N0,
has a W/L = 10um/0.6um. The gate and drain voltages are both set to 1.5 volts.




.

In order to use gm/Id methodology, one needs to know transconductance (gm), gate capacitance (Cgs),
output impedance (ro) and well as other parameters. These parameters can be determined by performing
a DC analysis of the circuit in the above figure. Unfortunately, Spectre/SpectreS usually does not save
operating point parameters during a DC or transient simulation to keep the output PSF file slim.
Spectre can be forced into saving these parameters by the following steps.

First of all, change the simulator to Spectre and create a saveop.scs (any save file name is ok as long as
you remember to save the extension as *.scs) from your favorite text editor. It is important to remember
the directory that you created the file in. Open the file using any text editor. Type in on the first line:

       save N0:oppoint

 The final file, saveop.scs, should look like the figure below:
Note that N0 is the instance name of the NMOS you just created. The option oppoint directs Spectre to
save all DC operation point parameters for N0. You can find more about the command save from
Spectre user guide.

Add this file as a model library file just like what you usually do to setup Spectre. Make sure the path
to saveop.scs is correct.




      It is important to know that AWD waveform tool was used for this tutorial rather than
wavescan. In order to change from the default waveform tool, in the Analog Design Environment
window, click on the session tab and click on options. On the option that says “waveform tool” select
AWD and save/apply the changes.
.

Now, setup a DC simulation and sweep the gate voltage from 0 to 3V. Run the simulation and open the
Results Browser from Analog Design Environment. The results browser can be found in the Analog
Design Environment by clicking on the tools tab and then selecting the results browser.
If you go to schematic-> psf/->Run1->dc-dc-> N0, you can see all the DC operating point parameters
are saved and you can plot directly from Cadence. If you would like to plot the gm of the transistor for
instance, right click gm and you should see a graph like this:
This is very cool because you can find the gm for different gate voltages; however, you need process the
data to obtain the advanced curves. In order to generate these curves, you have to use OCEAN to save
all these data. The data can be processed using any other software such as Matlab/Octave or Excel later
on.

Go to Analog Design Environment and click menu session, then save script. A window will pop up and
that is the first OCEAN script you are going to use. Please note that this ocean script file will be saved
in your default cadence directory. From the script file, you can find out that all these setups you made
for simulation in here. OcnWaveformTool set the wave viewer to AWD. Command Simulator selects
Spectre as the simulation engineer, so on and so forth.

You have to add few lines to this simple script file to save the DC operating point parameters you are
interested in (copy this text exactly):

               selectResult('dc)
               plot(getData("N0:gm"))

               ocnPrint(?output "~/gmid.dat" ?numberNotation 'scientific
               getData("N0:gm"),getData("N0:id"),getData("N0:vdsat"),getData(“N0:cgs”))

Here, ?output means all data will be saved to a file called gmid.dat. You can modify the tag line
"~/gmid.dat" in order to have the gmid.dat file saved any directory of your choice; otherwise the
gmid.dat file will be saved in your root directory:

getData select the parameter you want to save. The resulting ocn file should look like this:
*Please note that getData(N0:cgs) is missing a set of quotation marks in the figure above. Please do not
forget to add those in your *.ocn script file.

Now you can load this file and run the simulation again from CIW window by typing:

              load(“gmid.ocn”)




      Go to the root directory (or where ever you saved the file) and you can find gmid.dat. All the
parameters you want, gm, Cgs, Id, Vdsat (Defined as vd) are saved here as shown in the figure below:
The data can then be plotted using any program. A sample figure generated from Matlab is shown
below.

More Related Content

Similar to Gmid ruida

SPHARM-PDM_Tutorial_July2015
SPHARM-PDM_Tutorial_July2015SPHARM-PDM_Tutorial_July2015
SPHARM-PDM_Tutorial_July2015
Jonathan Perdomo
 
Vavo app irdrop_em_analysis_flow
Vavo app irdrop_em_analysis_flowVavo app irdrop_em_analysis_flow
Vavo app irdrop_em_analysis_flow
Alan Tran
 
Express pcb tutorial
Express pcb tutorialExpress pcb tutorial
Express pcb tutorial
awazapki
 
20081114 Friday Food iLabt Bart Joris
20081114 Friday Food iLabt Bart Joris20081114 Friday Food iLabt Bart Joris
20081114 Friday Food iLabt Bart Joris
imec.archive
 
LabReport-Autodesk Inventor 2008-MasterCam X4
LabReport-Autodesk Inventor 2008-MasterCam X4LabReport-Autodesk Inventor 2008-MasterCam X4
LabReport-Autodesk Inventor 2008-MasterCam X4
Kienho Chan
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
amitsarda3
 

Similar to Gmid ruida (20)

Dsp lab manual 15 11-2016
Dsp lab manual 15 11-2016Dsp lab manual 15 11-2016
Dsp lab manual 15 11-2016
 
Training Storyboard
Training StoryboardTraining Storyboard
Training Storyboard
 
Dtmf robot
Dtmf robotDtmf robot
Dtmf robot
 
INET for Starters
INET for StartersINET for Starters
INET for Starters
 
Tutorial-Auto-Code-Generation-for-F2803x-Target.pdf
Tutorial-Auto-Code-Generation-for-F2803x-Target.pdfTutorial-Auto-Code-Generation-for-F2803x-Target.pdf
Tutorial-Auto-Code-Generation-for-F2803x-Target.pdf
 
Cadence Design Systems is a of electronic design automation (EDA) software, ...
Cadence Design Systems is a  of electronic design automation (EDA) software, ...Cadence Design Systems is a  of electronic design automation (EDA) software, ...
Cadence Design Systems is a of electronic design automation (EDA) software, ...
 
SPHARM-PDM_Tutorial_July2015
SPHARM-PDM_Tutorial_July2015SPHARM-PDM_Tutorial_July2015
SPHARM-PDM_Tutorial_July2015
 
Vavo app irdrop_em_analysis_flow
Vavo app irdrop_em_analysis_flowVavo app irdrop_em_analysis_flow
Vavo app irdrop_em_analysis_flow
 
Computer Graphics - Lecture 01 - 3D Programming I
Computer Graphics - Lecture 01 - 3D Programming IComputer Graphics - Lecture 01 - 3D Programming I
Computer Graphics - Lecture 01 - 3D Programming I
 
Magazine awr-ims-3
Magazine awr-ims-3Magazine awr-ims-3
Magazine awr-ims-3
 
Express pcb tutorial
Express pcb tutorialExpress pcb tutorial
Express pcb tutorial
 
20081114 Friday Food iLabt Bart Joris
20081114 Friday Food iLabt Bart Joris20081114 Friday Food iLabt Bart Joris
20081114 Friday Food iLabt Bart Joris
 
LabReport-Autodesk Inventor 2008-MasterCam X4
LabReport-Autodesk Inventor 2008-MasterCam X4LabReport-Autodesk Inventor 2008-MasterCam X4
LabReport-Autodesk Inventor 2008-MasterCam X4
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
USBASP
USBASPUSBASP
USBASP
 
Computer graphics
Computer graphicsComputer graphics
Computer graphics
 
Tower design using etabs- Nada Zarrak
Tower design using etabs- Nada Zarrak Tower design using etabs- Nada Zarrak
Tower design using etabs- Nada Zarrak
 
how to create scada offline with comap applications
how to create scada offline with comap applicationshow to create scada offline with comap applications
how to create scada offline with comap applications
 
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery BoardProgramming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
Programming the ARM CORTEX M3 based STM32F100RBT6 Value Line Discovery Board
 

Recently uploaded

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 

Gmid ruida

  • 1. How To Plot Transconductance and Even More By Ruida Yun gm/Id based methodology is preferred for short-channel length analog circuit design however there is no GUI support for this method in the current Cadence release. The process can be tedious and requires much more insight understanding about Cadence. This tutorial will walk through the process on how to generate the gm/ID curves that can be used as a guide for future designs. First of all, you need to create a simple schematic to simulate the device. Here NMOS transistor, N0, has a W/L = 10um/0.6um. The gate and drain voltages are both set to 1.5 volts. . In order to use gm/Id methodology, one needs to know transconductance (gm), gate capacitance (Cgs), output impedance (ro) and well as other parameters. These parameters can be determined by performing a DC analysis of the circuit in the above figure. Unfortunately, Spectre/SpectreS usually does not save operating point parameters during a DC or transient simulation to keep the output PSF file slim. Spectre can be forced into saving these parameters by the following steps. First of all, change the simulator to Spectre and create a saveop.scs (any save file name is ok as long as you remember to save the extension as *.scs) from your favorite text editor. It is important to remember the directory that you created the file in. Open the file using any text editor. Type in on the first line: save N0:oppoint The final file, saveop.scs, should look like the figure below:
  • 2. Note that N0 is the instance name of the NMOS you just created. The option oppoint directs Spectre to save all DC operation point parameters for N0. You can find more about the command save from Spectre user guide. Add this file as a model library file just like what you usually do to setup Spectre. Make sure the path to saveop.scs is correct. It is important to know that AWD waveform tool was used for this tutorial rather than wavescan. In order to change from the default waveform tool, in the Analog Design Environment window, click on the session tab and click on options. On the option that says “waveform tool” select AWD and save/apply the changes.
  • 3. . Now, setup a DC simulation and sweep the gate voltage from 0 to 3V. Run the simulation and open the Results Browser from Analog Design Environment. The results browser can be found in the Analog Design Environment by clicking on the tools tab and then selecting the results browser.
  • 4. If you go to schematic-> psf/->Run1->dc-dc-> N0, you can see all the DC operating point parameters are saved and you can plot directly from Cadence. If you would like to plot the gm of the transistor for instance, right click gm and you should see a graph like this:
  • 5. This is very cool because you can find the gm for different gate voltages; however, you need process the data to obtain the advanced curves. In order to generate these curves, you have to use OCEAN to save all these data. The data can be processed using any other software such as Matlab/Octave or Excel later on. Go to Analog Design Environment and click menu session, then save script. A window will pop up and that is the first OCEAN script you are going to use. Please note that this ocean script file will be saved in your default cadence directory. From the script file, you can find out that all these setups you made for simulation in here. OcnWaveformTool set the wave viewer to AWD. Command Simulator selects Spectre as the simulation engineer, so on and so forth. You have to add few lines to this simple script file to save the DC operating point parameters you are interested in (copy this text exactly): selectResult('dc) plot(getData("N0:gm")) ocnPrint(?output "~/gmid.dat" ?numberNotation 'scientific getData("N0:gm"),getData("N0:id"),getData("N0:vdsat"),getData(“N0:cgs”)) Here, ?output means all data will be saved to a file called gmid.dat. You can modify the tag line "~/gmid.dat" in order to have the gmid.dat file saved any directory of your choice; otherwise the gmid.dat file will be saved in your root directory: getData select the parameter you want to save. The resulting ocn file should look like this:
  • 6. *Please note that getData(N0:cgs) is missing a set of quotation marks in the figure above. Please do not forget to add those in your *.ocn script file. Now you can load this file and run the simulation again from CIW window by typing: load(“gmid.ocn”) Go to the root directory (or where ever you saved the file) and you can find gmid.dat. All the parameters you want, gm, Cgs, Id, Vdsat (Defined as vd) are saved here as shown in the figure below:
  • 7. The data can then be plotted using any program. A sample figure generated from Matlab is shown below.