Faculty of Engineering 4 th Year, Fall 2010

Similar documents
UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

EECS 312: Digital Integrated Circuits Lab Project 1 Introduction to Schematic Capture and Analog Circuit Simulation

LAB-2 (Tutorial) Simulation of LNA (Cadence SpectreRF)

DC Operating Point, I-V Curve Trace. Author: Nate Turner

Course Project Topic: RF Down-Conversion Chain Due Dates: Mar. 27, Apr. 15 (Interim reports), May. 11 (Final report)

Lab 2: Basic Boolean Circuits. Brittany Duffy EE 330- Integrated Electronics Lab Section B Professor Randy Geiger 1/31/13

Figure 1. Main window (Common Interface Window), CIW opens and from the pull down menus you can start your design. Figure 2.

LNA Design Using SpectreRF. SpectreRF Workshop. LNA Design Using SpectreRF MMSIM6.0USR2. November

ETIN25 Analogue IC Design. Laboratory Manual Lab 2

Simulation using Tutorial Verilog XL Release Date: 02/12/2005

VCO Design Using SpectreRF. SpectreRF Workshop. VCO Design Using SpectreRF MMSIM6.0USR2. November

Course Project Topic: RF Down-Conversion Chain Due Dates: Mar. 24, Apr. 7 (Interim reports), Apr. 28 (Final report)

Operational Amplifiers: Theory and Design

Texas A&M University Electrical Engineering Department ECEN 665. Laboratory #4: Analysis and Simulation of a CMOS Mixer

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

MultiSim and Analog Discovery 2 Manual

EE140: Lab 5, Project Week 2

A Brief Handout for Introduction to

Introduction to PSpice

ETI063 - Analogue IC Design Laboratory Manual

INF4420 Switched capacitor circuits Outline

EE140: Lab 5, Project Week 2

Schematic and Layout Simulation Exercise

EEC 116 Fall 2011 Lab #2: Analog Simulation Tutorial

LC VCO Structure. LV VCO structure

High-Speed Serial Interface Circuits and Systems

TSEK03 LAB 1: LNA simulation using Cadence SpectreRF

Design and Simulation of RF CMOS Oscillators in Advanced Design System (ADS)

INF4420. Switched capacitor circuits. Spring Jørgen Andreas Michaelsen

LT Spice Getting Started Very Quickly. First Get the Latest Software!

Engineering 3821 Fall Pspice TUTORIAL 1. Prepared by: J. Tobin (Class of 2005) B. Jeyasurya E. Gill

Lecture 8. Jaeha Kim. Seoul National University

LTSpice Basic Tutorial

PA Design Using SpectreRF. SpectreRF Workshop. Power Amplifier Design Using SpectreRF MMSIM6.0USR2. November

14:332:223 Principles of Electrical Engineering I Instructions for using PSPICE Tools Sharanya Chandrasekar February 1, 2006

ECEN 474/704 Lab 1: Introduction to Cadence & MOS Device Characterization

Lab 3: Circuit Simulation with PSPICE

An Oscillator Puzzle, An Experiment in Community Authoring

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

Ansys Designer RF Training Lecture 3: Nexxim Circuit Analysis for RF

NOVEMBER 28, 2016 COURSE PROJECT: CMOS SWITCHING POWER SUPPLY EE 421 DIGITAL ELECTRONICS ERIC MONAHAN

INF4420. Outline. Switched capacitor circuits. Switched capacitor introduction. MOSFET as an analog switch 1 / 26 2 / 26.

AC Analyses. Chapter Introduction

EDA-BASED DESIGN PRACTICAL LABORATORY SESSION No. 4

ENGI0531 Lab 2 Tutorial

University of Michigan EECS 311: Electronic Circuits Fall 2008 LAB 2 ACTIVE FILTERS

Integrated Radio Electronics. Laboratory 3: Mixer

Lab 15: Lock in amplifier (Version 1.4)

ECE 201 LAB 6 INTRODUCTION TO SPICE/PSPICE

ECE 415/515 ANALOG INTEGRATED CIRCUIT DESIGN

Introduction to SwitcherCAD

OrCAD 17.2 Pspice Tutorial. High-Speed Circuits & Systems Lab. Yonsei University

0.85V. 2. vs. I W / L

UMAINE ECE Morse Code ROM and Transmitter at ISM Band Frequency

Introduction to VLSI design using Cadence Electronic Design Automation Tools

Analog CMOS Interface Circuits for UMSI Chip of Environmental Monitoring Microsystem

High-Speed Serial Interface Circuits and Systems

Operational Amplifiers: Theory and Design

Comparison And Performance Analysis Of Phase Frequency Detector With Charge Pump And Voltage Controlled Oscillator For PLL In 180nm Technology

Lab 3: Very Brief Introduction to Micro-Cap SPICE

CMOS Inverter & Ring Oscillator

Common-Source Amplifiers

Capacitive Touch Sensing Tone Generator. Corey Cleveland and Eric Ponce

An Analog Phase-Locked Loop

EE320L Electronics I. Laboratory. Laboratory Exercise #2. Basic Op-Amp Circuits. Angsuman Roy. Department of Electrical and Computer Engineering

1. Hand Calculations (in a manner suitable for submission) For the circuit in Fig. 1 with f = 7.2 khz and a source vin () t 1.

EK307 Active Filters and Steady State Frequency Response

Other Effects in PLLs. Behzad Razavi Electrical Engineering Department University of California, Los Angeles

Problem three helps in changing the biasing of the circuit to operate at a lower VDD but it comes at a cost of increased power.

Introduction to RF Simulation and Its Applications

ECE 683 Project Report. Winter Professor Steven Bibyk. Team Members. Saniya Bhome. Mayank Katyal. Daniel King. Gavin Lim.

Elad Alon HW #1: Circuit Simulation EECS 141 Due Thursday, Aug. 30th, 5pm, box in 240 Cory

Mentor Analog Simulators

A Novel Continuous-Time Common-Mode Feedback for Low-Voltage Switched-OPAMP

Chapter 2 Signal Conditioning, Propagation, and Conversion

Introduction to Modeling of Switched Mode Power Converters Using MATLAB and Simulink

EE 230 Lab Lab 9. Prior to Lab

SPICE SIMULATION TUTORIAL

EE 105 MICROELECTRONIC DEVICES & CIRCUITS FALL 2018 C. Nguyen. Laboratory 2: Characterization of the 741 Op Amp Preliminary Exercises

ECEN 474/704 Lab 6: Differential Pairs

To learn S-parameters, eye diagram, ISI, modulation techniques and their simulations in MATLAB and Cadence.

1.3 An Introduction to WinSPICE

An Introductory Guide to Circuit Simulation using NI Multisim 12

ECEN 474/704 Lab 8: Two-Stage Miller Operational Amplifier

Since transmission lines can be modeled using PSpice, you can do your analysis by downloading the student version of this excellent program.

Xcircuit and Spice. February 26, 2007

Introduction to NI Multisim & Ultiboard Software version 14.1

ECE 310L : LAB 9. Fall 2012 (Hay)

TTL LOGIC and RING OSCILLATOR TTL

EE 210 Lab Exercise #3 Introduction to PSPICE

NGSPICE- Usage and Examples

Simulating Circuits James Lamberti 5/4/2014

Audio Power Amplifiers with Feedback Linearization

LAB #7: Digital Signal Processing

Getting Started with Cadence

Introduction to LT Spice IV with Examples

Single Switch Forward Converter

EECS 312: Digital Integrated Circuits Lab Project 2 Extracting Electrical and Physical Parameters from MOSFETs. Teacher: Robert Dick GSI: Shengshuo Lu

Homework 2 Summary. at the differential amplifier s inputs and sweeping V in

Submission date: Wednesday 21/3/2018

Transcription:

4. Inverter Schematic a) After you open the previously created Inverter schematic, an empty window appears where you should place your components. To place an NMOS, select Add- >Instance or use shortcut i : Page 4 of 15

b) Click on Browse->tsmc13rf->MOSFETs->nmos1v->symbol. (Note: check the Show Categories button in the top left corner) Now, you can modify the transistor parameters, e.g. the width W, Length L, No. of fingers N, and Multipliers M for the NMOS. c) Repeat b) for the PMOS. d) Then, to connect your components, you need wires. To add wires, select add ->wires, or simply use the shortcut w. e) Any circuit should have ports. Three types of ports exist: IN, OUT and INOUT. Our inverter schematic needs one input port IN, one output port OUT, and two input/output VDD and GND. To add a port: press p, then choose the name and the direction. The final schematic should be like this: Page 5 of 15

5. Inverter Symbol An auto-generation option for the symbol is integrated in Cadence s Virtuoso: a) To do so, go to Inverter schematic, select Design->Create Cellview->From Cellview then press OK on the Cellview From Cellview window. b) The Symbol Generation Options window appears where you can choose where you want to put your pins, to the left, right, top and bottom of the symbol and my choices are as in the following figure: c) The basic symbol is shown next: Page 6 of 15

d) You can edit the symbol shape, select Add->Shape->... and draw the traditional inverter symbol as shown below: 6. Test bench of inverter simulation To simulate the inverter example, we simply need a DC source which will be connected between VDD and GND and a pulse source(square wave) that is connected to the input: a) Create a new schematic cell view called tb_inverter. b) Add our previously created inverter to it: press i, then choose your inverter and add it to the schematic. c) To add the pulse source, press i, and click on Browse -> analoglib -> Sources -> Independent -> vpulse -> Symbol. In the following window, you can choose the characteristics of your square wave: Page 7 of 15

d) To add a DC source repeat 3 but with vdc from the analoglib. Don't forget to set its value to 3V e) In electronics, we like to have VDD rails and GND rails which should be connected the DC source and these rails are connected to VDD and GND of each symbol. To add rails, press i, then, Click on BROWSE -> analoglib -> Global -> vdd -> Symbol, and the same for gnd. f) You can label input and output nets by press i. You should end up with the following figure: 7. To begin simulation, select Tools->Analog Environment, the ADE window appears where we can handle simulations like below: Page 8 of 15

g) Click on Choose Analysis icon in the right panel, a window appears where you can make TRAN, AC, DC, PSS, PAC,... analyses as you want, for the inverter exmaple, we ll use TRAN only and Stop time will be 10ms. h) To begin simulation, click on Netlist and Run icon (the green traffic light). i) To see the waveform at input and output nets, you need to plot them. To do so, select Results->Direct Plot->Plot Outputs & click on the nets you wish to plot. Don't forget to check the Add to outputs option as in figure: j) The plot of in and out nets is shown in the following figure: Page 9 of 15

7. More tips a) You can declare a variable and use it to assign values to component parameters. To do so, in the ADE window, the simulation window, select Variables->Edit and the following window appears where you can declare a variable and set its value. My variable is vdd and its value equals 3 and then press OK. Then, in the tb_inverter schematic, set the DC source value to vdd and and re-simulate it. It should be ok. b) The cadence simulator is called spectre. c) You can invoke Tools->Parametric Analysis... from the ADE window. The parametric analysis tool is a powerful tool that is used to do the same simulations with changing some specific variable. For example, you may need it to change the length of MOS and see the gain each time until you reach the desired value. Page 10 of 15

8. Periodic Steady-State (PSS) Analysis This analysis computes the steady-state response of the circuit with only the clock and a transient input applied. This analysis is also a prerequisite to the periodic small-signal analyses that follow because it sets the periodic operating point. Page 11 of 15

The fundamental frequency of the steady-state response (called beat frequency) is usually the smallest frequency pertaining to all of the applied sources. For example, in a switched-capacitor filter, we may have two main sources with frequencies: f in and f clk. The output will have a fundamental frequency = f in < f clk. If you need to change the beat-frequency, uncheck the Auto-Calculate option: (This is not usually needed) The number of harmonics (multiples of fin) in the output spectrum can also be set using the corresponding parameter: The PSS analysis, like a conventional transient analysis, starts off from an initial condition. If you do not specify an initial condition, then Spectre uses a DC analysis to determine the initial condition. During a DC analysis, the clocks are not operating, so the opamps have no feedback, causing their outputs to get stuck at the rails. The initial condition computed during the DC analysis causes the filter to react wildly in transient analysis, bouncing off the rails several times before it settles. This can cause convergence difficulties during PSS analysis that could be resolved in several ways. One approach that works in this case is to simply specify zero initial conditions for all capacitors in the circuit. This avoids a bad starting point. Another approach that is widely applicable when confronting convergence problems in PSS analysis is to use the tstab parameter, which delays the start of the PSS shooting loop: For example, if tstab = 1.5 ms, this causes the transient analysis to be performed to at least t = 1.5 ms before the PSS analysis attempts to compute the steadystate solution. Waiting until t = 1.5 ms allows the simulator to get beyond the difficult time when the filter is bouncing off the rails, which results in PSS analysis converging easily. In order to further improve the efficiency of the PSS analysis, the phasing of the clock signals relative to the simulation interval is chosen carefully. It is best to have the simulation interval begin and end at points where the signals are not changing abruptly. Page 12 of 15

9. Periodic-AC (PAC) and Periodic-XF (PXF) Analyses With Spectre there are two analyses commonly used to measure small-signal gain. They are referred to as the PAC and PXF analyses. We will be more concerned with the PAC analysis: The gain is measured by applying a small sinusoid at the input and measuring the amplitude of the signal at the output. This is somewhat complicated by two factors. First, the signal at the output may only approximate a sinusoid. Remember that it is being sampled at the clock rate. This means that care must be taken when defining what is meant by the output amplitude. With Spectre, the output amplitude is defined by first performing a Fourier analysis on the output signal and taking the amplitude to be Page 13 of 15

the amplitude of the first harmonic. Second, the input and output sinusoids may be at different frequencies. If the input frequency is small relative to the clock frequency, then generally the input and output are at the same frequency. But it is also common for the input frequency to near or above the clock frequency, in which aliasing acts to down convert the input signal to baseband. In this case, designers are purposely exploiting aliasing to down-convert a signal. Spectre handles both cases. The PAC (periodic AC) analysis is similar in concept to SPICE s AC analysis, with the difference being that Spectre s PAC analysis performs a small-signal analysis about a periodically-varying operating point whereas SPICE s AC analysis assumes a time-invariant operating point. Thus, with SPICE the clock is effectively disabled before running an AC analysis, whereas Spectre s PAC analysis effectively performs the AC analysis with the clock present. With the clock applied, the circuit naturally translates signals from one frequency to another. A signal applied at frequency f in can be translated to any frequency f out = kf clk + f in (1) where k is any integer. Similarly, a signal observed at a frequency f out could have been injected into the circuit at any frequency f in = kf clk + f out (2). As such, the PAC and PXF analyses compute the transfer functions. In particular, they compute the transfer functions associated with a range of values of k as defined by the Maximum Sideband parameter, where PAC computes the transfer functions described by (1) and PXF computes the ones described by (2). The circuit is linearized before performing the PAC analysis, so the output amplitude will scale linearly with the input amplitude, so generally one simply uses the most convenient value for the input amplitude, in this case 1 since it allows us to directly compute the gain at the output. The PAC magnitude option is adjusted by clicking on the source, viewing its properties (by pressing Q) and scrolling till you find PAC Magnitude. A sweep range is then set as in a conventional AC analysis. The last parameter specified on the PAC analysis is Maximum Sideband: This parameter specifies how many output sidebands should be computed. Remember that the output frequency need not be the same as the input frequency. The output frequencies are given by f out (k) = kf clk + f in (3) where k is the sideband index. In the case where we are computing the direct gain, the output frequency is the same as the input frequency, so k = 0. The PAC analysis will compute all of the sidebands for k Maximum Sideband since we are only interested in the case where k = 0 the Maximum Sideband parameter is set to 0. Page 14 of 15

The result usually consists of two components, a direct feed through piece due to the signal in track mode, and a sin(x)/x piece due to the signal in hold mode. Often, one is only interested in the hold mode component. Spectre naturally considers the whole signal, to get it to ignore the track mode component one has to create a new signal that does not contain the track mode component. To do so, an idealized sampleand-hold is constructed with Verilog-A. It is used to sample the output of the track-andhold during the hold phase. The PAC analysis allows one to specify a particular signal at a particular frequency at the input and then to determine the response at the output at any sideband. If the opposite is occurring, i.e. the transfer functions from the various sidebands at the input to a single output sideband are desired. This would require running many PAC analyses, each with the input set to run over a different range of frequencies and the output produced for a different sideband. Instead, one can use a PXF analysis. Whereas the PAC analysis computes the output signal at every node and every sideband given a single input, the PXF analysis computes the transfer function from every input source at every sideband to a single output. With the same analysis one could also determine the transfer function from each source. For example, the power supply rejection is available for free with a PXF analysis because it computes the transfer function from the supply source (at all sidebands) to the output. Page 15 of 15