Table of Contents

3. Introduction to MODELZEN: An Automatic Generation Tool for Bottom-Up SystemVerilog Models

Introduction to MODELZEN: An Automatic Generation Tool for Bottom-Up SystemVerilog Models

Overview

This tutorial covers the basics of using MODELZEN to model and simulate various analog/mixed-signal systems. For instance, one can learn how to compose model schematics, generate XMODEL source netlists, run simulations, and plot waveforms all in a GUI environment provided by Cadence® Virtuoso®. The final chapter covers an example of modeling a successive approximation register analog-to-digital converter (SAR-ADC), which is composed of both analog and digital components.

How To Get Started

1. Install the latest XMODEL package as explained in the XMODEL Installation Guide.

2. Properly setup your Unix shell & Cadence® Virtuoso® environments as explained in the XMODEL Installation Guide or XMODEL Setup Summary documents.

3. Copy the tutorial files to your local directories, for instance:

cp -R ${XMODEL_HOME}/tutorial/modelzen_basic ~/modelzen_basic

4. Set additional environment variables for the tutorials by sourcing the setup files located in the etc/ directory.

For instance, on bash-like shells:

cd ~/modelzen_basic
source etc/setup.bashrc

And on csh-like shells:

cd ~/modelzen_basic
source etc/setup.cshrc

You may need to modify these setup files according to your own environment.

5. Try a quick model generation using MODELZEN:

cd quick_start
modelzen circuit.sp -c tech_config.py -o model.sv --gui

6. For further information, learn the tutorial materials in the ~/modelzen_basic/doc directory. Enjoy!

Exercise Package