S-edit manual | Spice | Amplifier

Dept.

of E&CE VLSI LAB

Introduction to Tanner Tool BEGINNER’S GUIDE To begin a project the first step is to create a project To do so click on File in the menu, and select new -> New Design and the following window opens.

Click on the browse button and select the folder were the project has to be saved. Once this is done, give a design name and click ok. To create a cell, click on cell on the menu and select New View the following window opens

Nitte Meenakshi Institute of Technology

Page 1

Dept. of E&CE VLSI LAB

In the cell space give a cell name say “inv” or any name appropriate to the experiment and click OK. Once this is done the following window comes up.

Nitte Meenakshi Institute of Technology

Page 2

Dept. of E&CE VLSI LAB

On the left hand side window click on the add button and the following window comes up.

Nitte Meenakshi Institute of Technology

Page 3

Dept.0/ Libraries / All/ All tanner And click OK Click on the Devices option on the left hand side and the following window comes with a list of devices on the left hand side. My Documents / Tanner EDA /Tanner tool V13. of E&CE VLSI LAB Now select the library by following the path given below. Nitte Meenakshi Institute of Technology Page 4 .

Perform DC Analysis. Hence click on the left hand side device list for NMOS and the following window pops up. of E&CE VLSI LAB I.Dept. Nitte Meenakshi Institute of Technology Page 5 . AC Analysis and Transient Analysis for the Inverter circuit : INVERTER DESIGN To design an inverter a PMOS and an NMOS are required.

Click on Instance button and the following window comes up. The device is selected and pasted on the cell window by click on the right button of the mouse. The size of the device can be reduced or increased by scrolling the window.Dept. To change the name of the device the new name can be changed by giving a new name in the instance name box. Nitte Meenakshi Institute of Technology Page 6 . of E&CE VLSI LAB As is visible on the left hand side an NMOS transistor is displayed. To come out of this mode press ESC button.

of E&CE VLSI LAB Similarly select the pMOS device also and paste it in the cell window as shown in the snap shot given below.Dept. Nitte Meenakshi Institute of Technology Page 7 .

of E&CE VLSI LAB To connect the devices we need a wire which is available by clicking the button on the top menu.Dept. Nitte Meenakshi Institute of Technology Page 8 . Connect the gates and the drains of the PMOS and NMOS devices as shown below.

Now select GND and give it to the nMOS source as shown below and connect it using wire. of E&CE VLSI LAB To select the sources click on the MISC option on the left hand side window. Nitte Meenakshi Institute of Technology Page 9 .Dept.

Nitte Meenakshi Institute of Technology Page 10 . of E&CE VLSI LAB Similarly select VDD and connect it to the source of the PMOS as shown below.Dept.

Nitte Meenakshi Institute of Technology Page 11 . of E&CE VLSI LAB To do DC analysis select DC source from the path given below which is on the left hand side of the window. SPICE _ ELEMENTS -----Voltage source The voltage source is renamed as Vdc and pasted on the cell screen and the +ve terminal is connected to the gates and the –ve terminal is connected to GND as shown below.Dept.

of E&CE VLSI LAB To give a voltage range of your choice take another instance of Voltage source and in the properties window give the voltage range as 3. Connect bulk of PMOS and NMOS transistors to the source of the devices using wire. Also give the labels to the nodes by clicking “L” on the top menu and give appropriate lable name such as where Vdd is given.3 Volts as shown below. Nitte Meenakshi Institute of Technology Page 12 .Dept. where GND is connected give GND and input node name as in” and output node name as “out” as shown below. give the label name as Vdd.

In this case it is in the IN and OUT node as shown below.Dept. of E&CE VLSI LAB To print input and output voltages select “Spice_Commands” on the left hand side window and then select the “printvoltage” option below and paste it on the cell nodes where ever it is required. In the properties of Print Voltage select DC . Nitte Meenakshi Institute of Technology Page 13 .

Then the following window pops up. of E&CE VLSI LAB To conduct DC analysis click on Setup Simulation button which is a on the top menu next to the simulation button.Dept. Nitte Meenakshi Institute of Technology Page 14 .

Dept. the source name will be VVdc. Nitte Meenakshi Institute of Technology Page 15 . In this case it is Vdc. Source or parameter name should be the input source to be sweeped. of E&CE VLSI LAB Select DC sweep analysis on the window and give the following parameters. Since h Spice code by default takes all voltage sources with a V prefixed.

0/Libraries/ Models/Generic _0.sp” file from the folder created by the user.0/Libraries/ Models In the Library files path give the library file path as below.Dept. My Documents/ Tanner EDA /Tanner EDA tools V13.e.1 Click on ‘General’.Here we have to give SPICE File Name. Nitte Meenakshi Institute of Technology Page 16 . Next select the spice file i. “. of E&CE VLSI LAB start value = 0 Stop value = 3. File Search Path and Library Files.25lib TT Do not forget to add TT after selecting the generic file. SPICE File Name is the spice file which is created with the extension ‘. Now the window will look as given below.tanner’. File Search Path is got by selecting the path below by browsing My Documents/ Tanner EDA /Tanner EDA tools V13.3 Step = 0.

Dept. of E&CE VLSI LAB Next click OK button. Run the simulation. Next T Spice will open automatically and will give the spice netlist as shown below Nitte Meenakshi Institute of Technology Page 17 .

W-EDIT which is the waveform editor will open automatically and display the waveform expected as shown below. of E&CE VLSI LAB If there are no errors.Dept. Nitte Meenakshi Institute of Technology Page 18 .

Dept. The rise time. period etc specifications can also be given as per the design specification. Hence in the S-Edit. pulse width. Nitte Meenakshi Institute of Technology Page 19 . fall time. remove the DC source and use the Pulse source by selecting the Spice elements in the left hand side menu and select the Voltage source in the options and in the interface select Pulse instead of DC. one has to use an pulse source. of E&CE VLSI LAB Transient Analysis. For doing the transient analysis.

3 V and vLow as 0 V. Nitte Meenakshi Institute of Technology Page 20 . In the properties window of the Pulse source change the name and give vHigh as 3.Dept. of E&CE VLSI LAB Now paste the pulse source instead of the DC source in the S EDIT window as shown below. Select the print voltage and change the print analysis for both the node in their respective properties and select TRAN option.

Once all the parameters are entered successfully . of E&CE VLSI LAB Select setup simulation option and select transient / fourier analysis option. W-EDIT opens automatically and the waveform is displayed as shown below. Once this is done run the simulation by clicking on the simulation button. Again T Spice opens automatically and runs the spice compilation and if there are no errors.Dept. In that enter the following parameters. Stop Time: 2u Maximum Time step: 1u Print Start Time: 1n Print Time step: 10n Use initial Conditions: False Startup mode: Op Again check for the library file. Nitte Meenakshi Institute of Technology Page 21 . spice file etc in the general option as listed in the DC analysis section. click OK and save the cell design.

AC Analysis. The AC analysis is done by selecting AC input voltage source from the Spice_ Elements options. In the properties window of the AC voltage source enter Nitte Meenakshi Institute of Technology Page 22 . of E&CE VLSI LAB It is clearly visible that the input and output waveforms are inverted.Dept.

The schematic looks as below.Dept. The value of the capacitor is calculated depending on the design specification. This is approximately 1.5V A capacitor has to be put at the output node for AC analysis. of E&CE VLSI LAB Mag = 1m Phase = 90 And Vdc which is the bias voltage and is calculated from dc analysis. Nitte Meenakshi Institute of Technology Page 23 . A capacitor of 1nF or 1pF is sufficient.

select the properties of Print voltage and select AC in the analysis window. Once this is done click on Simulation button. of E&CE VLSI LAB Once these parameters are setup. Nitte Meenakshi Institute of Technology Page 24 . then the W Edit will open automatically and the waveform will be displayed as shown below. If there are no errors. Now select AC analysis and enter the following parameters Start Frequency : 10 Stop Frequency: 100000K Number of frequencies: 20 Sweep Type: dec Analysis Name: AC Again check for the library files and the spice file paths as in the case of previous analysis case and click OK.Spice opens automatically and complies the Hspice code generated automatically. Once all the settings are done.Dept. click on setup simulation icon. T.

Dept. Where this intersect with the ac analysis plot on the x-axis is the cut off frequency.5 and find out that value on the Y axis. of E&CE VLSI LAB To calculate the cutoff frequency calculated Am / (2)0. Nitte Meenakshi Institute of Technology Page 25 .

i. 0. Wp on X. 0. of E&CE VLSI LAB EXPERIMENTS UNDER TRANSIENT ANALYSIS Experiment 1 : Design an Inverter for Symmetric delay.axis and TLH & THL on Y axis. 0. Start from Wp = 0.Dept.35u.55u. Nitte Meenakshi Institute of Technology Page 26 .75u For these different values of Wp plot TLH & THL v/s Wp.25 and change Wp. The point where TLH & THL intersect is the Wp to be chosen for symmetric delay.25u . Total delay Tp = (TLH + THL) / 2 For the above mentioned experiment take the following specification C= 10pF Fall time = 1ps Rise time = 1ps Period = 2us Pulse width = 1us In the simulation set up set the following parameters Stop time = 10u Max time step = 1u Print start = 1n Print time step = 1n As Wp increases TLH should decrease and THL should increase.65u. 0.45u.e TLH = THL Take Wn = Ln = 0. 0.

Lp = 0. 12pF. of E&CE VLSI LAB Experiment 2: Design an Inverter for varying delay by changing the capacitances.25u. 5pF. EXPERIMENTS UNDER DC ANALYSIS Design an inverter for a threshold voltage of given value by manipulating W and L values of the pMoS and nMoS transistors.25u. 10 Pf. Wp = 0. Ln = 0. Total delay Tp = (TLH + THL) / 2 Keep all the parameters of the above experiment constant and vary load capacitances CL = 3pF. Wn =0. 15pF Plot a graph of CL on X axis and Tp on Y axis. Nitte Meenakshi Institute of Technology Page 27 .Dept.55u. EXPERIEMENTS UNDER AC ANALYSIS Design an inverter for a given cut off frequency by manipulating load capacitance CL. 7pF. As CL increases total delay Tp should also increase.25u Plot a graph of CL V/s Cutoff frequency. Keep the following parameters constant.

AC Analysis and Transient Analysis for common source amplifier : COMMON SOURCE AMPLIFIER EXPERIMENT UNDER DC ANALYSIS Draw the following circuit in S.edit Nitte Meenakshi Institute of Technology Page 28 .Dept. of E&CE VLSI LAB II. Perform DC Analysis.

61V. of E&CE VLSI LAB Let W=0.Dept. Nitte Meenakshi Institute of Technology Page 29 .5u and L= 0.Use 10K ohm resistor and do DC sweep analysis as explained in the previous section.61V. The operating point is where the input and output plots intersect each other. Here it is 1. The following waveform should be displayed. Also print the input and output voltages. Thus the result concluded is that the for a transistor with (W /L ) = 2 the operating point is 1.25u .

Dept. Choose Transient analysis in the setup simulation window and give the following parameters. Use an sinusoidal source. of E&CE VLSI LAB EXPERIMENT UNDER TRANSIENT ANALYSIS Draw the circuit for transient analysis as shown in the figure. Give offset the operating point calculated in the DC analysis. Nitte Meenakshi Institute of Technology Page 30 .

Dept. of E&CE VLSI LAB Stop time = 10u Max time step = 1u Print start = 1n Print time step = 1n On running the simulation one will get the following waveform Nitte Meenakshi Institute of Technology Page 31 .

Use 10pF capacitor. draw the following circuit Use AC source and give Magnitude as 1mV and Vdc =1. Select AC analysis in the setup simulation window and set the following parameters.Dept. of E&CE VLSI LAB EXPERIMENT UNDER AC ANLYSIS To plot the ac analysis. Nitte Meenakshi Institute of Technology Page 32 .61V which is the operating point calculated in DC analysis.

of E&CE VLSI LAB Start Frequency : 10 Stop Frequency: 100000K Number of frequencies: 20 Sweep Type: dec Analysis Name: AC On running the simulation the following waveform is displayed.Dept. Change the load capacitance to get a particular cutoff frequency.5 and find out that value on the Y axis. To calculated the cutoff frequency calculated Am / (2)0. Where this intersect with the ac analysis plot on the x-axis is the cut off frequency. Nitte Meenakshi Institute of Technology Page 33 .

Select a DC source.Dept. of E&CE VLSI LAB III. Nitte Meenakshi Institute of Technology Page 34 . AC Analysis and Transient Analysis for common drain amplifier : COMMON DRAIN AMPLIFIER EXPERIMENTS UNDER DC ANALYSIS To conduct the DC analysis of a Common Drain amplifier draw the following circuit. Perform DC Analysis.

of E&CE VLSI LAB Let W=0.5u and L= 0.3V. Also print the input and output voltages. Nitte Meenakshi Institute of Technology Page 35 . The output voltage increases after the threshold voltage is crossed which in this case is 0.Use 10K ohm resistor and do DC sweep analysis as explained in the previous section. The following waveform should be displayed. The output voltage follows the input voltage as shown above.Dept.25u .

Dept. Use a sinusoidal source. of E&CE VLSI LAB EXPERIMENTS UNDER TRANSIENT ANALYSIS Draw the circuit for AC analysis as shown in the figure. Stop time = 10u Max time step = 1u Nitte Meenakshi Institute of Technology Page 36 .61V Choose Transient analysis in the setup simulation window and give the following parameters. Give offset the operating point 0f 1.

of E&CE VLSI LAB Print start = 1n Print time step = 1n On running the simulation one will get the following waveform Calculate and see if the output voltage is a magnified signal of the input voltage and the output voltage should be in phase with the input voltage. Nitte Meenakshi Institute of Technology Page 37 .Dept.

Use a 10pF capacitor.Dept. In setup simulation give the following parameters Nitte Meenakshi Institute of Technology Page 38 . of E&CE VLSI LAB EXPERIMENTS UNDER AC ANALYSIS To conduct AC analysis draw the following circuit and use an AC source.

of E&CE VLSI LAB Start Frequency : 10 Stop Frequency: 100000K Number of frequencies: 20 Sweep Type: dec Analysis Name: AC On running the simulation the following waveform is displayed.Dept. Here it is 5. To calculate the cutoff frequency calculated Am / (2)0.54Mhz Nitte Meenakshi Institute of Technology Page 39 . Where this intersect with the ac analysis plot on the x-axis is the cut off frequency.5 and find out that value on the Y axis.

Nitte Meenakshi Institute of Technology Page 40 . of E&CE VLSI LAB Change the load capacitance to get a particular cutoff frequency.Dept.

3V. AC Analysis and Transient Analysis for Differential Amplifier circuit : DIFFERENTIAL AMPLIFIER EXPERIMENTS UNDER DC ANALYSIS To conduct the DC analysis of a differential amplifier.1v and keep voltagesource_2 constant at 3. Let the current source be 100uA. of E&CE VLSI LAB IV. Nitte Meenakshi Institute of Technology Page 41 . In the setup simulation window sweep voltagesource_1 source from 0 to 3.3V in steps of 0. draw the following circuit.Dept. and resistors of 10kΩ each is chosen. Perform DC Analysis.

This is the operating point. Similarly in the setup simulation window sweep voltagesource_2 source from 0 to 3. Nitte Meenakshi Institute of Technology Page 42 . of E&CE VLSI LAB On proper compilation the following waveform is displayed.1v and keep voltagesource_1 constant at 3.Dept.3V.3V in steps of 0. On proper compilation the following waveform is displayed. The intersection point is approximately 3V.

Dept. of E&CE VLSI LAB Again the intersection point is approximately 3V which is the operating point. If both the voltage sources are swept together. Nitte Meenakshi Institute of Technology Page 43 . the following waveform is displayed.

Nitte Meenakshi Institute of Technology Page 44 . of E&CE VLSI LAB EXPERIMENTS UNDER TRANSIENT ANALYSIS Draw the circuit for transient analysis as shown in the figure below.Dept.

Stop time = 10u Max time step = 1u Print start = 1n Print time step = 1n On running the simulation one will get the following waveform Nitte Meenakshi Institute of Technology Page 45 .Dept. The amplitude of both the sources should be 100mV and one of the voltage sources should have negative amplitude otherwise the difference signal will be zero. of E&CE VLSI LAB Please note the following In the voltage source properties select sinusoidal source. In the setup window give the following settings.

Dept. Nitte Meenakshi Institute of Technology Page 46 . of E&CE VLSI LAB It can be measured and seen that the output waveform is the amplification of the input signal.

Dept. of E&CE VLSI LAB EXPERIMENTS UNDER AC ANALYSIS Draw the following circuit for AC analysis. Nitte Meenakshi Institute of Technology Page 47 . Note that there should be a phase difference of 90 degree between the two sources and a capacitor is to be added at the output node.

of E&CE VLSI LAB Start Frequency : 10 Stop Frequency: 10Meg Number of frequencies: 10 Sweep Type: dec Analysis Name: AC On running the simulation the following waveform is displayed Nitte Meenakshi Institute of Technology Page 48 .Dept.

of E&CE VLSI LAB To calculate the cutoff frequency calculate Am / (2)0. Here it is 15. Nitte Meenakshi Institute of Technology Page 49 .5 and find out that value on the Y axis.93Meg Hz Change the load capacitance to get a particular cutoff frequency. Where this intersect with the ac analysis plot on the x-axis is the cut off frequency.Dept.

Dept. AC Analysis and Transient Analysis for Single Stage Operational Amplifier circuit : SINGLE STAGE OPERATIONAL AMPLIFIER EXPERIMENTS UNDER DC ANALYSIS To conduct the DC analysis of a single stage operational amplifier. Nitte Meenakshi Institute of Technology Page 50 . of E&CE VLSI LAB V. Perform DC Analysis. draw the following circuit.

Nitte Meenakshi Institute of Technology Page 51 . On proper compilation the following waveform is displayed.1v and keep vdc2 constant at 3. of E&CE VLSI LAB In the setup simulation window sweep Vdc1 source from 0 to 3.3V in steps of 0.Dept.3V.

3V. This is the operating point. If both the voltage sources are swept together. Again the intersection point is approximately 3V which is the operating point. the following waveform is displayed Nitte Meenakshi Institute of Technology Page 52 .1v and keep Vdc1 constant at 3.3V in steps of 0. On proper compilation the following waveform is displayed.Dept. Similarly in the setup simulation window sweep Vdc2 source from 0 to 3. of E&CE VLSI LAB The intersection point is approximately 3V.

Dept. Nitte Meenakshi Institute of Technology Page 53 . of E&CE VLSI LAB Where the output node is the node joining nmos_2 and the rd resistors 2.

Dept. Nitte Meenakshi Institute of Technology Page 54 . draw the following circuit. of E&CE VLSI LAB EXPERIMENTS UNDER TRANSIENT ANALYSIS To conduct the transient analysis of a single stage operational amplifier.

of E&CE VLSI LAB Please note the following In the voltage source properties select sinusoidal source. The amplitude of both the sources should be 25mV and one of the voltage sources should have negative amplitude otherwise the difference signal will be zero. In the setup window give the following settings.Dept. Stop time = 100u Max time step = 1u Print start = 1n Print time step = 1n On running the simulation one will get the following waveform Nitte Meenakshi Institute of Technology Page 55 .

Dept. Nitte Meenakshi Institute of Technology Page 56 . Change W/L ratio for different amplification factors. of E&CE VLSI LAB It is clearly visible that the output voltage is the amplified version of the input voltage.

Dept. of E&CE VLSI LAB EXPERIMENTS UNDER AC ANALYSIS Draw the following circuit for AC analysis. Note that there should be a phase difference of 90 degree between the two sources and a capacitor is to be added at the output node. Nitte Meenakshi Institute of Technology Page 57 .

Dept. of E&CE VLSI LAB

Start Frequency : 10 Stop Frequency: 10Meg Number of frequencies: 10 Sweep Type: dec Analysis Name: AC On running the simulation the following waveform is displayed

Nitte Meenakshi Institute of Technology

Page 58

Dept. of E&CE VLSI LAB

To calculate the cutoff frequency calculate Am / (2)0.5 and find out that value on the Y axis. Where this intersect with the ac analysis plot on the x-axis is the cut off frequency

Here it is 239.37KHz Change the load capacitance to get a particular cutoff frequency.

Nitte Meenakshi Institute of Technology

Page 59

Dept. of E&CE VLSI LAB

VI.

Perform DC Analysis, AC Analysis and Transient Analysis for Two Stage Operational Amplifier circuit :

TWO STAGE OPERATIONAL AMPLIFIER
EXPERIMENTS UNDER DC ANALYSIS To conduct the DC analysis of a single stage operational amplifier, draw the following circuit.

Nitte Meenakshi Institute of Technology

Page 60

of E&CE VLSI LAB In the setup simulation window sweep both vVoltageSource_3 source and vVoltageSource_4 from 0 to 3.3V in steps of 0.1V. Nitte Meenakshi Institute of Technology Page 61 .Dept. On proper compilation the following waveform is displayed.

of E&CE VLSI LAB Nitte Meenakshi Institute of Technology Page 62 .Dept.

Dept. Nitte Meenakshi Institute of Technology Page 63 . of E&CE VLSI LAB EXPERIMENTS UNDER TRANSIENTANALYSIS To conduct the transient analysis of a single stage operational amplifier. draw the following circuit.

Stop time = 100u Max time step = 1u Print start = 1n Print time step = 1n On running the simulation one will get the following waveform The yellow waveform is the final output which is having a peak to peak amplitude of 690. In the setup window give the following settings. Nitte Meenakshi Institute of Technology Page 64 . of E&CE VLSI LAB Please note the following In the voltage source properties select sinusoidal source.2mV as shown below.Dept. The amplitude of both the sources should be 10mV and one of the voltage sources should have negative amplitude otherwise the difference signal will be zero.

of E&CE VLSI LAB Where as the green coloured waveform is the input signal which wjen magnified one can measured the peak to peak voltage of 20.99mV as shown below. Nitte Meenakshi Institute of Technology Page 65 .Dept.

Nitte Meenakshi Institute of Technology Page 66 . of E&CE VLSI LAB It is clearly visible that the output voltage is the amplified version of the input voltage. Change W/L ratio for different amplification factors.Dept.

of E&CE VLSI LAB EXPERIMENTS UNDER AC ANALYSIS Draw the following circuit for AC analysis.Dept. Nitte Meenakshi Institute of Technology Page 67 . Note that there should be a phase difference of 90 degree between the two sources and a capacitor is to be added at the output node.

of E&CE VLSI LAB Start Frequency : 10 Stop Frequency: 100Meg Number of frequencies: 10 Sweep Type: dec Analysis Name: AC On running the simulation the following waveform is displayed Nitte Meenakshi Institute of Technology Page 68 .Dept.

Nitte Meenakshi Institute of Technology Page 69 .5 and find out that value on the Y axis.Dept. Where this intersect with the ac analysis plot on the x-axis is the cut off frequency Here it is 6. of E&CE VLSI LAB To calculate the cutoff frequency calculated Am / (2)0.96KHz Change the load capacitance to get a particular cutoff frequency.

Sign up to vote on this title
UsefulNot useful