How to Insert s File for Transistor in to MWO

Embed Size (px)

Citation preview

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    1/23

    Microwave Office Training

    Linear Simulation Low Noise Amplifier

    2 Linear Simulation

    Summary

    Linear Simulation

    S parameters at Ports - and derived parameters ... Gain, NF

    Low Noise Amplifier as an Example to show:

    Creating schematics

    Data libraries

    Editing schematic symbols (adding explicit ground nodes)

    Creating graphs and adding measurements

    Measurements: S parameters, Noise, Gain

    Tuning Parameters

    Step Response (Optional)

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    2/23

    3 Linear Simulation

    Linear Simulation

    Linear Simulation solves for S parameters in thefrequency domain at ports. Internally, it solves the Y matrix.

    It is an ideal choice for: Linear Amplifier Analysis

    Linear Noise Analysis

    Interconnect / Passive elements

    It Cannot: Show currents and voltages at nodes. (Use linear HB)

    Show time domain transients and start up conditions.

    It Can: Show step/pulse response for passive circuits.

    Work with biased devices - if they have a model, not just Sparameter data. (For example - Gummel Poon)

    4 Linear Simulation

    Example - A Low Noise Amplifier

    Design Goals of a 5 GHz amplifier are:

    Gain > 10 dB.

    Noise Figure < 1.15 (1.2 in dB)

    We will learn:

    Insert S parameter file for a transistor.

    Add graphs and measurements to look at:

    S parameters

    Noise figures - NF and NFmin

    Stability figures: K, B1

    Smith Chart Graphs and Circle Measurements Stability Circles, Gain Circles, Noise Figure Circles

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    3/23

    5 Linear Simulation

    Example - A Low Noise Amplifier -2

    Step 1: Create a Schematic Device in a new project

    Step 2: Import the S parameter data set for

    the HEMT transistor - FHX35LG.s2p

    Tip: Make sure youre looking for Touchstone files -

    or you might not see the file in the directory.

    6 Linear Simulation

    Example - A Low Noise Amplifier -

    3Step 3: Look at the S parameter for the device.

    double click on the data file - to see the S parameters and the the

    Noise data.

    The S parameters are

    from 100 MHz to 20

    GHz

    The noise data are

    from 2 to 18 GHz.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    4/23

    7 Linear Simulation

    Example - A Low Noise Amplifier -4

    Step 4: Insert the data set as a sub-circuit into the schematic Device.

    Note: You can insert a sub-circuit

    by:

    Draw - Insert Sub-circuit

    Hotkey is: Ctrl K

    Subcircuits in Elements Library

    Tip: Make sure you select Explicit Ground

    Node. This is used for transistor S

    parameter data - so you expose the 3rd port

    (Usu. the source in common source.) For

    interconnect S parameter data - use

    Normal.

    8 Linear Simulation

    Example - A Low Noise Amplifier -

    5Step 5: Change the Symbol to a FET.

    It looks more like a transistor and is less confusing which port is which.

    Select the Sub-Circuits

    Properties

    Right Click (RC)

    Select the FET symbol

    Tip: Make sure the port numbers of the symbol - match what you expect.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    5/23

    9 Linear Simulation

    Example - A Low Noise Amplifier -6

    Step 6: Complete the amplifier by attaching ports.

    Tip: Useful Hot Keys:

    Add a port: Ctrl P

    Add a ground: Ctrl G

    You can rotate, flip, and mirror the port before placing it.

    To rotate - right click (RC)

    To Flip About the Horizontal Axis - Shift RC.

    To Flip About the Vertical Axis - Alt Shift RC.

    10 Linear Simulation

    Example - A Low Noise Amplifier -

    7Step 7: Set the simulation frequencies from 0.1 to 20 GHz - in steps of 0.1GHz.

    Select Project Options

    A very common error is to forget the Apply Button.

    Note: This sets the

    frequencies for all project

    simulations - unless youoverride them. You can do

    so at the individual circuit

    level, or EM simulation

    level.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    6/23

    11 Linear Simulation

    Example - A Low Noise Amplifier -8

    Step 8: Create the Graphs and Measurements

    Create a Graph called Input Port

    Create a Measurement - S11

    Measurement

    Added to the Graph

    12 Linear Simulation

    Example - A Low Noise Amplifier -

    9Add a measurement S22 to the same Graph.

    Data source name

    Various Control

    Fields

    We are sweeping the x - axis

    with Frequency

    This is a linear measurement.

    Measurements in MWO are carried

    out in the Graphs.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    7/23

    13 Linear Simulation

    Example - A Low Noise Amplifier -10

    Step 9: Run the simulator. Three ways to do this:

    Lightning Bolt in the Toolbar

    Simulate > Analyze

    F8

    You will get a warning

    message. Its saying you

    dont have any noise data

    at 20 GHz - so its

    extrapolating.

    Standard Toolbar

    14 Linear Simulation

    Example - A Low Noise Amplifier -

    11

    Tip: You can RC on the graph - and bring up properties.

    There you can change the Graphs appearance: traces, axes, fonts, etc.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    8/23

    15 Linear Simulation

    Example - A Low Noise Amplifier -12

    Step 10: Change the graph to a Smith Chart.

    RC on the Graph in the Browser

    16 Linear Simulation

    Example - A Low Noise Amplifier -

    13Step 11: Add a graph - Two Port Gain.

    -Add measurement: S21 (Measurement type Linear > Port Parameters)

    -Add measurement: Maximum Stable Gain (MSG) (Measurement Type -

    Linear > Gain)

    Maximum Stable Gain is in dB.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    9/23

    17 Linear Simulation

    Example - A Low Noise Amplifier -14

    Step 12: Make the Graph Look Nicer.

    RC on the Graph > Properties

    Change the x axis limits to 0 to 20GHz.

    We will use the left axis for S21 and the right axis for MSG.

    18 Linear Simulation

    Example - A Low Noise Amplifier -

    15

    Setting the MSG to the right axis.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    10/23

    19 Linear Simulation

    Example - A Low Noise Amplifier -16

    Tip - Interpolation between datapoints

    The wiggle in the S21 curve

    is because we are using

    linear interpolation.

    This can be changed in Project Options

    > Interpolation.Change it to Spline or Rational

    Its Smoother!

    20 Linear Simulation

    Example - A Low Noise Amplifier -

    17Step 13: Make a Graph Two Port Noise Parameters

    -Add measurements for Noise Figure (NF) and Noise FigureMinimum (NFmin)

    (The measurement type is Noise.)

    - Make the graph nice by resetting the lower frequency to 0.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    11/23

    21 Linear Simulation

    Example - A Low Noise Amplifier -18

    Step 14: Create a graph Stability Data

    - Add measurements for K and B1. (Measurement type is -

    linear.)

    Note: Dont use dB.

    22 Linear Simulation

    Example - A Low Noise Amplifier -

    19Step 15: Add a marker to the trace for K.

    RC on the graph and select

    Add Marker ( Ctrl M).

    Select the K trace and add the marker.

    RC on the marker and select search - for

    1.

    Remember K < 1 and/or B1 < 0 is unstable.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    12/23

    23 Linear Simulation

    Example - A Low Noise Amplifier -20

    Step 16: Stabilize the amplifier by adding resistance.

    Copy the schematic and rename the copy Stable Device.

    Tip: The easiest way to do this is drag Device into Circuit Schematics

    - and Copy of Device will be created.

    This line takes out the resistor R3 at 5

    GHz.

    Stable Device

    24 Linear Simulation

    Stable Device

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    13/23

    25 Linear Simulation

    Example - A Low Noise Amplifier -21

    Step 17: Update the graphs with the new Stable Device Sparameters, Gain, Nose, and Stability measurements.

    Tip: A quick way to do this - is any measurement can be dragged on top of the

    graph in the browser - creating a copy. Then open it, and change the Data

    Source Name to Stable Device.

    K and B1

    K > 1 and B1 > 0

    Note: Autoscaling is

    turned off for the left

    axis, as K gets verylarge near DC.

    26 Linear Simulation

    Example - A Low Noise Amplifier -

    22

    S11 and S22

    S22 has gotten smaller

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    14/23

    27 Linear Simulation

    Example - A Low Noise Amplifier -23

    The Gain is lower - as expected.

    28 Linear Simulation

    Example - A Low Noise Amplifier -

    24Step 18: Stability Circles

    Create a graph - Smith Chart type, named Stability Circles

    -Add the measurement: SCIR1 (Measurement Type - Circle).

    -Use the Source Name Device. (Its more interesting - not stable.)

    A circle has been added for

    each frequency.

    Unstable regions.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    15/23

    29 Linear Simulation

    Example - A Low Noise Amplifier -25

    What if I want only a few circles?

    Method 1: Have fewer frequencies.

    - You can do this in Options at the Project level or the circuit level.

    Method 2: In the Device Schematic - insert a SWPFREQ block.

    - For values: stepped(1.0e9,10.0e9,1e9) - 1 to 10 GHz in 1 GHz increments

    In the measurement dialog box

    - Change the Sweep Freq to

    SWPFRQ.FWP1

    Now we can use these frequencies - instead of all the project frequencies.

    Click the arrow to select FSWP1.

    Optional

    Located under Simulation Control.

    30 Linear Simulation

    Example - A Low Noise Amplifier -

    26

    Fewer Circles - Much Easier to Read.

    Tip: The dotted side of the circles is the unstable region.

    Optional

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    16/23

    31 Linear Simulation

    Example - A Low Noise Amplifier -27

    Method 3: Create a dummy sweep variable.

    Circle measurements require a swept variable - which by default is frequency.

    Idea: Create a dummy sweep variable - and sweep on that - in effect disabling

    the sweep.

    Insert the SWPVAR into the

    schematic device and create a

    variable foo.

    Create an equation for foo.

    To insert an equation - Ctrl E or

    Draw > Insert Equation

    Optional

    Located under Simulation Control.

    32 Linear Simulation

    Example - A Low Noise Amplifier -

    28

    Change the measurement settings

    The swept variable

    foo is set to the xaxis. (So - we are

    using a dummy for

    the x axis sweep.)

    The frequency is

    selected by the

    tuner.

    Optional

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    17/23

    33 Linear Simulation

    Example - A Low Noise Amplifier -29

    The Tuner

    You can now use the tuner to shift through

    frequencies and stability circles.

    OptionalEquations Toolbar

    34 Linear Simulation

    Example - A Low Noise Amplifier -

    30Step 19: Add a graph called Noise and Gain

    Circles. We will work with the Stable Device data.

    Set the Project Frequency to

    1 point - 5 GHz. This is where we want totune.

    Add NFCIR (Linear > Circle) with

    2 circles and 0.5 dB steps.

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    18/23

    35 Linear Simulation

    Example - A Low Noise Amplifier -31

    Add GAC_MAX - Available Gain (Linear > Circle)

    with a Gain step 1 and 2 circles.

    36 Linear Simulation

    Example - A Low Noise Amplifier -

    32Lets make a matching input circuit.

    Step 20: Create a schematic Input Matching Circuit

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    19/23

    37 Linear Simulation

    Example - A Low Noise Amplifier -33

    Step 21: Create a schematic - Amp

    - Include Stable Device and Input Matching Circuit as

    subcircuits.

    Amp Schematic

    38 Linear Simulation

    Example - A Low Noise Amplifier -

    34

    Window in Window Technology

    Allows you to see other circuits, and graphs in your schematic.

    Open up Amp.

    LC on Stable Device in the browser and drag it into the schematic.

    Drag - to create the area. You see the window Stable

    Device.

    Optional

    Looks Pretty!

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    20/23

    39 Linear Simulation

    Example - A Low Noise Amplifier -35

    Step 22: Tune the Ls to get a good compromise between Gain and NF.

    In Input Matching select L1 and L2 for tuning.

    -Method 1: Use the tuning tool. Select each of them.

    -Method 2: Select Properties for each of them.

    Equations Toolbar

    Set to tune 0 to 10 nH.

    When selected for tuning - the parameters

    turn blue.

    40 Linear Simulation

    Example - A Low Noise Amplifier -

    36Step 23: Tune the Ls to get a reasonable compromise between NF and Gain.

    - Add S22 of Input matching to the graph Noise and gain Circles.

    TunerTune until there is a

    reasonable compromise

    between Gain and NoiseFigure.

    S22 of your input

    matching will equal S11

    of your stable device.

    Equations Toolbar

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    21/23

    41 Linear Simulation

    Example - A Low Noise Amplifier -37

    Step 24: Add an Output Matching Circuit.Optional

    Tune the values to get maximum gain.

    Note: We have not used simultaneous, conjugate match

    designs - so the output circuit will influence the design

    of the input circuit.

    You can add - S21 of the Amp to

    the Two Port Gain for example,

    and tune over the C and Ls.

    42 Linear Simulation

    Example - A Low Noise Amplifier -

    38

    Step 25: Set the simulation frequencies back to 1 to 20 GHz

    and look at the Gain and NF.

    Optional

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    22/23

    43 Linear Simulation

    Example - Step Response

    Step 1: Make a new schematic - Test Loads.

    Step Response to the input of the device

    These are some test loads for us to try to make sure we understand step

    response.

    Optional

    44 Linear Simulation

    Example - Step Response - 2

    Step 2: Make a graph - Step Response

    Add step response measurements: (Linear > TDR) TDR_LPS.

    - Try S11, S22, and S33 of Test Loads.

    Select Real

  • 7/29/2019 How to Insert s File for Transistor in to MWO

    23/23

    45 Linear Simulation

    Example - Step Response - 3

    The results are the same as a Time Domain Reflectometer.

    A short circuit

    A 100 Ohm Load

    Tip: Linear analysis can do this because its taking the

    FFT of the S parameters.

    An RC circuit.

    46 Linear Simulation

    Example - Step Response - 4

    Step 3: Add the Step Response of the Device. Convinceyourself it looks like an RC curve.