0% found this document useful (0 votes)
126 views3 pages

Readme PDF

The document describes Matlab scripts for generating lookup tables from transistor DC sweep simulations. The lookup tables store simulation data that can then be used for circuit design in Matlab. The scripts generate netlists for simulation tools like Spectre or HSpice and store the results in .mat files. Configuration files define the simulation parameters and mappings to Matlab variables. Examples are provided for several MOSFET models to generate lookup tables for a designer's own process.

Uploaded by

amitkumar_87
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
126 views3 pages

Readme PDF

The document describes Matlab scripts for generating lookup tables from transistor DC sweep simulations. The lookup tables store simulation data that can then be used for circuit design in Matlab. The scripts generate netlists for simulation tools like Spectre or HSpice and store the results in .mat files. Configuration files define the simulation parameters and mappings to Matlab variables. Examples are provided for several MOSFET models to generate lookup tables for a designer's own process.

Uploaded by

amitkumar_87
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Matlab Scripts for gm/ID Lookup-Table Generation (Standalone Starter Kit)

Boris Murmann, Stanford University


murmann@stanford.edu
Rev. 20190921 (version 2.3)

Updates for version 2.2: (1) Renamed lookup → look_up to solve conflict with Bloomberg Matlab
toolbox. (2) Corrected some typos in techsweep_config files (VGS and VDS were swapped in some
places). (3) Added techsweep_config_bsim4_45_hspice.m.

Updates for version 2.3: Added missing line break in config file netlist sections (thanks to Matthew Hon
for pointing these out).

The scripts provided in this package store DC-sweep simulation data into Matlab files (.mat). These
“lookup tables” can then be used for systematic circuit design in Matlab, as described in the book listed
below. The book’s companion website provides Matlab scripts for the design examples of each chapter,
lookup tables for a 65-nm process, and a “lookup” function (also contained in this package) for convenient
read-in and data interpolation. The scripts provided in this package are for those who want to generate
their own lookup tables. Please refer to Appendix 2 of our book for a more detailed description of the
lookup table generation flow (summarized in the figure below).

P.G.A. Jespers and B. Murmann, Systematic Design of Analog CMOS Circuits: Using Pre-Computed
Lookup Tables, Cambridge University Press, 2017.
https://www.cambridge.org/jespers
What You Need

• A model file for the CMOS technology that you want to characterize. For example, a set of PSP,
BSIM3, BSIM4 or BSIM6 model cards.
• A circuit simulator: Spectre (Cadence) or HSpice (Synopsys)
• A function for reading simulation data in into Matlab (pick one of these two options)
o For Spectre: cds_srr. This function is part of the Cadence Spectre/RF MATLAB Toolbox, see
“Virtuoso Spectre Circuit Simulator RF Theory Manual.” You must ensure that your Matlab
versions and MMSIM versions are compatible.
o For HSpice: loadsig. This function is included in Michael Perrott’s HSpice Toolbox for Matlab
and Octave, http://www.cppsim.com/download_hspice_tools.html.
• It is assumed that you launch the provided code within a Matlab instance running in the same
Unix/Linux environment as your simulator (to enable direct file exchange).
• It is assumed that you have some experience with setting up EDA tools. The provided scripts are far
from “plug and play.” You need to look at each line in the header of the configuration file and
determine appropriate adjustments for your system.

File Descriptions

techsweep_spectre_run.m
techsweep_hspice_run.m
These are the top-level scripts that execute the lookup table generation. You should not have to edit
these files, except for specifying the proper configuration file near the top.

techsweep_config_psp_65_spectre.m
techsweep_config_bsim4_28_spectre.m
techsweep_config_bsim4_45_hspice.m
techsweep_config_bsimcmg_16_spectre.m
techsweep_config_bsim3_180_hspice.m
These are example configuration files that are called by the top-level scripts. The “psp_65” file is what
we used to generate the data files distributed with the book (65nch.mat and 65pch.mat). The other files
are provided as examples for your convenience and can be edited to work with your own BSIM3, BSIM4
or BSIM-CMG models.
The configuration files define all tool and file paths and contain a netlist template near the bottom. This
is where you define the content of the auto-generated simulation netlist (see above figure). Also, the
configuration file defines how the raw simulation parameters are mapped into Matlab variables (for
example: CGG = cgs + cgd + cdb).
It typically takes some time to get all the paths and settings right (especially for cds_srr). In our
experience, things are more easily debugged when using HSpice & loadsig.

techsweep_spectre_debug.m
techsweep_hspice_debug.m
This is a utility script designed for debugging the configuration files. Basically, this is a simplified version
of techsweep_*_run.m files that runs just one single simulation sweep and displays the parameters at
mid-supply. Once this works, the full table generation can be kicked off and should work without any
problems.
Extras

look_up.m
look_upVGS.m
Functions that can read and interpolate the created lookup tables (mat files). See description in Jespers
& Murmann (or type “help look_up” in Matlab)

test_lookup.m
Lookup usage examples.

ee214b_hspice.sp
BSIM3 models for a typical 180-nm CMOS process

180nch.mat
180pch.mat
Lookup tables for the 180nm CMOS process. These files were generated by running
techsweep_hspice_run.m with the model file ee214b_hspice.sp (as defined in
techsweep_config_bsim3_180_hspice.m).

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy