EE4111 Advanced Analog Electronics Design Spring 2009 Experiment #4 April 6 ~ April 17
Setup Cadence in VLSI Lab 1) Copy files $ cp r /home/grads/ee4111ta ~/ 2) Edit your.cshrc file -- Include the following line in your ~/.cshrc file: source ~/ee4111ta/.cshrc_ncsu -- save & close your.cshrc file -- $ source ~/.cshrc 3) Check files $ cd ee4111ta $ ls la (should have.cdsinit,.cdsplotinit, cds.lib files and models directory in your ee4111ta directory) 2
Setup Cadence in VLSI Lab 4) Invoke cadence in your ee4111ta directory $ icfb 3
Create a library for a new design 1 1) In V irtuoso Window File -> New -> Library 2) In New Library Window Name: OPM Technology File : Attach to an existing technology library 3) In Attach Library Window Technology Library: NCSU_TechLib_tsmc03d 4) OK 2 2 3 4 4
Create a schematic for a new design 1 1) In Library Manager Window File -> New -> Cell View 2) In New File Window Libray: OPM Cell: DIFF 3) OK 2 3 5
Design A Differential Amplifier 6
Placing components 1) Add Instance 2) Add Wire 3) Add Pin 1 2 3 7
Add A MOS Instance 1) Browse 2) NCSU_Analog_Parts 3) N_Transistors 4) nmos4 5) Width: 60u 6) Length: 1.2u 7) Click the right button of the mouse in Virtuoso Schematic Editor Window 3 2 5 6 1 4 8
Add Components (1/3) All basic components are in the library, NCSU_Analog_Parts There are several groups as shown below: Group Name P_Transistors N_Transistors R_L_C Supply_Nets Voltage_Sources Current_Sources components pmos4 nmos4 res, cap, vdd, gnd vdc,vsin, idc, 9
Add Components (2/3) Implement a schematic using the following parameters Resistance: 4KOhm NMOS: W=60um, L=1.2um Input voltage: DC = 770mV, AC = 1V, phase = 0/180 Supply voltage: DC = 3.3V Use wire to connect all components 10
Add Components (3/3) 11
Add Pins 4 1 Pin Names INN INP OUTN OUTP Direction input input output output 2 3 4) Save & Check Error If there is no error or warning, you implement the schematic successfully. 12
Useful Commands & Keyboard Shortcuts Edit Delete Rotate Move Stretch Properties -> Objects ESC Cancel command Add component: i Add wire label: l Add wire: w Add pin: p Copy: c Check and Save: X Delete: Delete Edit properties: q Fit: f Hierarchy->Descend: E Hierarchy->Return: ^e Move: M Redraw: F6 Redo: U Rotate: r Stretch: m Undo: u Zoom in: z Zoom in by 2: [ Zoom out by 2: ] 13
Cadence Analog Design Environment 1 1) Launch -> ADE L 2) Virtuoso Analog Design Environment Window pop up 3) Setup -> Design 4) Simulator : spectre 3 5) OK 4 5 14
Setup Model Libraries 1) Setup -> Model Libraries 2) Model File (double clicks) 3) Select : models.scs 4) Select: C0 1 2 4 3 15
Setup Analyses (1/3) 1) Analyses -> Choose 2) In Choosing Analyses Window 1. Analysis dc 2. DC Analysis Save DC Operating Point 3. Analysis ac (see the next page) 4. AC Analysis -- Sweep Variable : Frequency -- Sweep Range Start-Stop Start: 1K Stop: 1G -- Sweep Type Logarithmic -- Select : Point Per Decade 10 -- OK 16
Setup Analyses (2/3) 17
Setup Analyses (3/3) After choosing analyses, you could see the dc & ac analyses setting and enable in Virtuoso Analog Design Environment Window 18
Setup Outputs 1) Outputs -> Save All 2) In Save Options Window -- Select signals to output (save) -- OK select : all 19
Run Simulation & Check Results 1) Simulation -> Netlist and Run 2) Results -> Annotate -> DC Node Voltage 3) Results -> Annotate -> DC Operating Points 4) Check your schematic & See what s changed 5) Tools -> Calculator 20
Plot the output results (1/3) 1) Select ac 2) Select vf 3) Move your mouse to the schematic Window 4) Select the net OUTP 5) See what happen in your Calculator Window 21
Plot the output results (2/3) 1) Fill out VF( /OUTP )-VF( /OUTN ) 2) Select --db20 3) Select -- plot 1 3 2 22
Plot the output results (3/3) 1) Check the Frequency Response in Graph Window 2) Find the 3dB Frequency 23
Build the symbol from the schematic In Virtuoso Schematic Editor Window 1) Delete the input voltages and the supply voltage 2) Save & Check 3) Create -> Cellview -> From Cellview 4) Click : OK in Cellview From Cellview and Symbol Generation Options Windows 24
1) After you implement this simple differential amplifier, you should understand: Building a schematic Simulating a design Checking the simulation results Creating a symbol from the schematic 2) You don t need to write a report for this Lab. However, you need to tell the TA after you have done this example. 3) After the TA checks your results, you are finished with this lab. 25