running cadence once the cadence environment has …prokop/mnai/.../cadence_sim... · running...

50
1 Running Cadence Once the Cadence environment has been setup you can start working with Cadence. You can run cadence from your directory by typing Figure 1. Main window (Common Interface Window), CIW opens and from the pull down menus you can start your design. Figure 2. To create your own library, select from File-> New -> Library, the pop-up window shows up as shown in the Figure 3.

Upload: truonglien

Post on 15-Jun-2018

305 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

1

Running Cadence

Once the Cadence environment has been setup you can start working with Cadence. You

can run cadence from your directory by typing

Figure 1.

Main window (Common Interface Window), CIW opens and from the pull down menus

you can start your design.

Figure 2.

To create your own library, select from File-> New -> Library, the pop-up window

shows up as shown in the Figure 3.

Page 2: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

2

Figure 3.

In the Name section write the name of library. You need add a technology file to your

new library. You can attached or compile a tech file to the library. In this case you will

attach an existing tech. file. You can attach the technology file from the “gpdk” library as

shown in the Figure 4.

Figure 4.

After creating the working library, you can start creating various views to simulate your

design.

Page 3: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

3

I-V Characteristics of Diode

First we start by creating the new cell view for the diode. From File-> New -> Cellview

Figure 5.

This creates the schematic view as shown in the Figure 5. You will be using a voltage

supply, resistor, and a diode to create the schematic view as shown in the Figure 6.

Figure 6.

Page 4: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

4

To add any of the components in the schematic:

From Add-> Instance ->

Figure 7.

Select the diode, voltage supply, resistance and ground as shown in the Figures 7, 8, 9

and 10.

Page 5: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

5

Figure 8.

Page 6: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

6

Figure 9.

Figure 10.

Page 7: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

7

Place the components as shown in the Figure 6. At this point you are ready to start the

simulation.

From Tools-> Analog Environment

Figure 11.

Write the path for the model libraries

Figure 12.

Page 8: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

8

Choose dc type of analysis from Analysis -> Choose

Figure 13.

Page 9: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

9

Variables to be plotted are selected from the schematic

Figure 14.

To plot voltages select the wire, and to plot current select the red square nodes or select

on the component. Figure 15 shows how the selected voltages and current nodes look

line after being selected for simulation.

Figure 15.

Page 10: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

10

Now we are ready to perform simulation. After clicking on Simulation-> Netlist and Run

simulation starts.

Figure 16, shows the spectre output log file that gets generated for simulation.

Figure 16.

Page 11: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

11

The waveform created looks like :

Figure 17

To display Current (I) versus Voltage (V) we start by setting the axis.

From Axis-> X Axis

Figure 18.

Page 12: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

12

Change the X axis to be the voltage drop on the diode or /net5 voltage as shown in the

Figure 19.

Figure 19.

After changing the X axis, the waveform looks like, as shown in Figure 20:

Figure 20.

Page 13: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

13

Because we are interested only on the I-V plot for the current and voltage of the diode,

we can select only the D1/PLUS current node and /net5 voltage drop of the diode. The

new waveform will look like shown in Figure 21.

Figure 21.

Page 14: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

14

I-V Characteristics of BJT

Initially start a new schematic cellview for the bjt circuit. Figure 22, displays the circuit

used for simulation. After adding all the necessary components, connect them together

and the last part is editing the variables.

The power supply “vdc” is identified with a variable voltage “VBB”. You can do this by

editing the properties of the power supply.

Figure 22.

After complting the schematic, we are ready to start simulation.

From Tools -> Analog Enviroment, and the pop-up window as in Figure 23 shows up.

Page 15: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

15

Figure 23.

Setting the Variables

Figure 24.

Page 16: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

16

Setting the type of Analysis

Figure 25.

After completing these steps you can start simulation by clicking on

Simulation-> Netlist and Run.

At this point you can see the spectre output log file that is created.

After this point you will perform parametric analysis as shown in Figure 26, to view

multiple curves in a single waveform.

Page 17: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

17

Figure 26.

Go to Analysis -> Start in the Parametric Analysis window. When the simulation is

complete go to Results -> Direct Plot -> DC and then click on the terminal of the V1

supply, then hit ESC. Now you should again get a nice family of IV curves as shown in

Figure 27.

Figure 27.

Page 18: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

18

Generating C-V Plots for MOS Capacitor Device

Figure 28.

Page 19: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

19

Figure 29.

Page 20: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

20

Figure 30.

Page 21: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

21

Figure 31

Perform simulation from Simulation -> Netlist and Run

Figure 32

Then perform Parametric Analysis

Figure 33

Page 22: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

22

Figure 34

Parametric Analysis Form

Select output to be displayed: From Output -> Setup

Figure 35

The Form will look like:

Figure 36

Page 23: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

23

By clicking on “Open” , the Calculator will open

Figure 37

By clicking on “ OP” and then selecting the device from the schematic view, you will

see a list of variables

Figure 38

Page 24: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

24

Figure 39

Page 25: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

25

After selecting the variables to be plot, then just click on ERPLOT in the Calculator to

plot.

Figure 39

The waveform will look like:

Page 26: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

26

Figure 40

Page 27: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

27

Figure 41

Page 28: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

28

Variation of the Bandgap Reference Voltage with respect to Temperature

The example below is the classical Widlar Bandgap Voltage Reference

Figure 42

Page 29: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

29

By clicking on Tools -> Analog Environment

Figure 43.

The type of analysis is dc as in Figure 44.

Page 30: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

30

Figure 44

Page 31: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

31

The output signals to be observed during the simulation are:

Figure 45

To start simulation from click on “Netlist and Run”

Figure 46

Page 32: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

32

The waveforms for the output signals as we perform dc analysis on variable temperature:

Figure 47

Page 33: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

33

Bandgap Temperature Reference (Version 2)

Figure 48

Page 34: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

34

Figure 49

Page 35: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

35

Figure 50

Page 36: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

36

Single Stage Amplifiers

Figure 51

This is a common-source single-transistor amplifier.

Page 37: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

37

Type of analysis performed:

Figure 52

Page 38: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

38

There are two voltage variables set in this circuit. One is for the VDD voltage and the

other is for Vin source.

Figure 53

The output selected is as highlighted below:

Figure 54

Page 39: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

39

This is the waveform obtained form the common-source amplifier.

This waveform plots the output versus the VDD range as Vin is varying from 0->2V.

This waveform plots the Vin vs Vout as VDD varies.

Figure 55 and 56

Page 40: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

40

MOS Differential Amplifier with a Current Mirror Load

Figure 57

This is a MOS current mirror load differential amplifier.

Page 41: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

41

The type of analysis performed is DC.

Figure 58

Page 42: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

42

The analysis is performed on Variable V2 which is the input voltage.

Figure 59

Page 43: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

43

The variables used for this simulation are:

Figure 60

Where V1 is for the input voltage and V2 is for the VDD voltage source. Check

schematic for more information.

The parametric analysis performed for variable V1 after performing Dc simulation.

Figure 61

Page 44: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

44

The waveform obtained looks like below.

This waveform is Vin vs Vout plot.

Figure 62

Page 45: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

45

High Frequency Response in Diff. Pairs

In order to estimate the frequency response of the differential pair with active current

mirror the schematic model shown below is used where all capacitances are neglected.

Figure 63

Page 46: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

46

Performing Transient Analysis: The selected nets are input and output nets.

Figure 64

Transient analysis is performed.

Page 47: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

47

Figure 65

The waveforms obtained are: Figure 66

Page 48: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

48

Noise in Differential Pairs

Figure 67

This type of modeling accounts for 1/f noise and input-referred noise.

Page 49: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

49

Performing Transient Analysis: Nets selected are input and output nets.

Figure 68

Transient Analysis

Figure 69

Page 50: Running Cadence Once the Cadence environment has …prokop/MNAI/.../Cadence_sim... · Running Cadence Once the Cadence environment has been setup you can start working with Cadence

50

The waveforms obtained;

Figure 70