Simulating a Design Using Eldo

 

Eldo is an analog circuit simulator that allows you to test the design you created in Design Architect in a Spice flavor fashion. By just substituting the lowest level gate cell in the spice netlist, it is quite convenient to perform timing analysis using the same gate design. A CMOS inverter is going to be used as an example to illustrate the steps for building and verifying analog components. Since procedures for DC and AC analysis are similar to those of time transient analysis, transient analysis and DC sweep analysis will be focused in this tutorial.

 

Note: Section added after Sweep Analysis for Monte Carlo analysis.

 

 

. 11. Setting the Working Directory. 5

2. Opening your design. 5

3. Entering Simulation Mode. 5

3. Configuring the Simulator 9

4. Setting up a Transient Analysis. 15

5. Forcing Signals. 17

6. Adding Waveforms to Viewer 18

7. Running the Simulation. 19

8. Invoking EZwave. 20

9. Using Ezwave Features. 21

10. Setting up Sweep Analysis: 27

 

 

1. Setting the Working Directory

 

From the UNIX terminal, navigate to the directory where your Design Architect Schematic is located.  In this case we have called the design “inv” and it should be located in your home directory, i.e. just under your user name.

 

disk2/acc/xxx

 

Where “xxx” represents your user name.

 

If you are not already in this directory, navigate to this directory.  Set this as the working directory using the “swd” command.

 

2. Opening your design

 

Invoke “daic” from your working directory using the following command

adk_daic

To open your design select

file -> open

Navigate to the appropriate filename and click “ok” to accept the design.

3. Entering Simulation Mode

 

Once design architect has opened open your design by navigating to

simulation -> ami05

This will create your design viewpoint.

Next click “ok” when prompted for a simulation configuration.

Click “ok” again when prompted again to accept default configuration settings.

 

The following window should now appear.  This window is a hierarchical view of your system and its components.

 

Right click on the hierarchy window and select “open schematic.”

 

 

Your schematic should now be open in the simulator window.

3. Configuring the Simulator

Once you have the schematic open in simulator mode you must complete a few tasks to configure the simulator.  

Witch your cursor anywhere in the schematic window type the following command.

dofile $ADK/unh_eldo_ami05.dofile

This file sets parameters such as lambda for the simulator to use to interpret your schematic.

Press “enter” to execute the dofile.

The next step is to link to the spice models necessary for the simulator to interpret devices such as the transistors.

To link to these models go to

Library/ Temp/Include Files->Libraries

Browse to the following library path

$ADK/technology/accusim/ami05.mod

Now choose:

Library/ Temp/Include Files->Include Files

Browse to the following file:

$ADK/technology/accusim/unh_vdd.spi

This include file defines the value of the VDD symbol.

Click “ok” to accept this choice.

Change the name of the GROUND to GND in the spice netlister.

In the right hand palette menu go to

Session->Netlister

change GROUND to GND

Finally go to

Session -> Simulator/Viewer

In the dialog box that follows click the “advanced” button

The following dialog box should appear.  Make sure your dialog box looks exactly like the one below.

If “MGC_WD” is not entered enter in the location shown below.

4. Setting up a Transient Analysis

Click the “analysis” button

Choose “transient” as the type of analysis to perform.

Choose the “setup” button.

Setup your transient analysis as shown below, and select “ok.”

5. Forcing Signals

Select the input signal within the schematic window.

In the right hand palette window go to.

Forces/Ics -> Add

The following dialog should now be displayed.  Choose the “Pulse” tab.

Set up the input signal according to the values shown below.  This should create a pulse signal with a 50% duty cycle.

6. Adding Waveforms to Viewer

To add waveforms to the “ezwave” viewer select

Wave Outputs -> Save All

When prompted with the save all dialog click “ok.”

7. Running the Simulation

Click the “Run Eldo” button.  Check the simulation log for errors.

8. Invoking EZwave

To invoke Ezwave select.

View Waves -> New Window 

Ezwave should appear featuring the IN and OUT signals as shown below.

Note: If the signal come out plotted on the same axis, simply delete them and reselect them one at a time from the left hand selection.

9. Using Ezwave Features

 “EZWave” has many useful features including a measurement tool.

 

Click on the signal you wish to measure.

 

Select the Input Signal from the wave window.

 

Invoke the measurement tool by clicking

 

Tools -> Measurement Tool

 

The following dialog box will appear.

 

Select the signal you wish to measure from the drop down box.

 

Check all measurement boxes so that all types are measured.

 

 

Click apply to begin measuring.

 

The image below shows the wave with min, max, average and peak to peak values.

 

 

Clear the signal of all measurements by deleting the measurement text boxes.

 

Go back to the measurement tool and select “rise time” from the pull down menu.

 

Select “apply” to measure the rise time.  Repeat this process with “fall time” selected.

 

 

The rise and fall times are now displayed in text boxes as shown below.

 

 

To find the delay time between the two signals, double click the input signal on the left hand pane.  This should bring the input signal back into the wave viewer.

 

Next go back to the measurement tool and select “Delay” from the pull down menu. 

 

Select V(IN) for signal #1

Select V(OUT) for signal #2

 

 

Click the “Apply” button to generate the delay measurement.

 

The delay between the two signals should appear as below.

 

 

10. Setting up Sweep Analysis:

A sweep analysis varies the parameters of a given device over time.

To set up a sweep analysis choose.

Multiple Runs -> Sweep

The following dialog will be displayed.

Choose the “Add Sweep” button.

Setup the sweep by varying the width of the MP1 transistor from 2u to 10u.  Increment in units of 1u. 

Make sure that newly created sweep is enabled.

Click “OK” to save changes.

 

Press the Run Eldo” button to rerun the simulator with all 9 runs.

To add waveforms to the “ezwave” viewer select

Wave Outputs -> Save All

When prompted with the save all dialog click “ok.”

To invoke Ezwave select.

View Waves -> New Window 

Ezwave should appear, with 9 versions of every signal, representing the 9 different outcomes of varying the transistor width.

The image below shows the 9 output signals on the left hand palette.

 

11. Monte Carlo Analysis

To set up a Monte Carlo analysis session you must perform a number of steps that are not part of the normal "push button"

command sequence in Eldo.  The SPICE netlist file will be changed by editing the command file which coordinates all

the inputs to the SPICE netlist file.

 

 

 

 

 

 

 

 

 

 

Click here to continue to Schematic Driven Layout Using IC - Station