AWR Software Tutorial
AWR Software Tutorial
.............................
.....
Applied Wave Research, Inc. 1960 E. Grand Avenue, Suite 430 El Segundo, CA 90245 Voice 310.726.3000 Fax 310.726.3005 Technical Support support@appwave.com Website www.appwave.com
2005 Applied Wave Research, Inc. All Rights Reserved. Printed in the United States of America. No part of this guide may be reproduced in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the express written permission of Applied Wave Research, Inc. AWR, Microwave Office, Visual System Simulator, Analog Office, EMSight, and AWR Design Environment are trademarks of Applied Wave Research, Inc. All other product and company names mentioned herein may be the trademarks or registered trademarks of their respective owners. The information in this guide is believed to be accurate. However, no responsibility or liability is assumed by Applied Wave Research, Inc. for its use.
...............................
CONTENTS
G e t t i n g S t a r t e d G u i d e iii
.....
CONTENTS
iv MWO/VSS 2004
CONTENTS
CONTENTS
CONTENTS
vii
CONTENTS
The AWR Design Environment comprises two powerful tools that can be used together to create an integrated system and RF design environment: Visual System Simulator (VSS) and Microwave Office (MWO). These powerful tools are fully integrated in the AWR Design Environment and allow you to incorporate circuit designs into system designs without leaving the AWR Design Environment. Microwave Office enables you to design circuits composed of schematics and electromagnetic (EM) structures from an extensive electrical model database, and then generate layout representations of these designs. You can perform simulations using one of Microwave Offices simulation engines -- a linear simulator, an advanced harmonic balance simulator, a 3D-planar EM simulator (EMSight), or an optional HSPICE simulator -- and display the output in a wide variety of graphical forms based on your analysis needs. You can then tune or optimize the designs and your changes are automatically and immediately reflected in the layout. VSS enables you to design and analyze end-to-end communication systems. You can design systems composed of modulated signals, encoding schemes, channel blocks and system level performance measurements. You can perform simulations using VSSs predefined transmitters and receivers, or you can build customized transmitters and receivers from basic blocks. Based on your analysis needs, you can display BER curves, ACPR measurements, constellations, and power spectrums, to name a few. VSS provides a real-time tuner that allows you to tune the designs and then see your changes immediately in the data display.
OBJECT ORIENTED TECHNOLOGY
At the core of MWO and VSS capability is advanced object-oriented technology. This technology results in software that is compact, fast, reliable, and easily enhanced with new technology as it becomes available.
G e t t i n g S t a r t e d G u i d e 1-1
.....
You should be familiar with Microsoft Windows and have a working knowledge of basic circuit and/or system design and analysis. This document is available as a PDF file on your Program Disk (Getting Started.pdf), or you can download it from the AWR website at www.appwave.com. If you are viewing this guide as online Help and intend to work through the examples, you should obtain and print out the PDF version for ease of use.
CONTENTS OF THIS GUIDE
Chapter 2 provides the basic installation procedures. Chapter 3 provides an overview of the AWR Design Environment including the basic menus, windows, components and commands. Chapters 4, 5, 6, and 7 take you through hands-on examples that show you how to use Microwave Office to create circuit designs. Chapters 8, 9, 10, 11, and 12 take you through hands-on examples that show you how to use VSS to create system simulations and to incorporate Microwave Office circuit designs.
CONVENTIONS USED IN THIS GUIDE
Convention
Shown in a bold type. Nested menu selections are shown with a > to indicate that you select the first menu item and then select the second menu item: Choose File > New Project
Shown in a bold type within quotation marks: Enter my_project in Project Name.
1-2
MWO/VSS 2004
Item
Keys or key combinations that you press
Convention
Shown in a bold type with initial capitals. Key combinations are shown with a + to indicate that you press and hold the first key while pressing the second key: Press Alt+F1.
Documentation for MWO includes: Whats New in MWO/AO 2004? presents the new or enhanced features, elements, and measurements for this release. This document is available via the Start button Programs > AWR Suite 2004 menu, or by choosing Help > Whats New while in the program. Microwave Office/Analog Office User Guide describes how to use the Microwave Office windows, menu choices, and dialog boxes to perform linear, nonlinear, and EM design, layout, and simulation, and discusses related concepts. Microwave Office/Analog Office Element Catalog (Volumes 1 and 2) provides complete reference information on all of the electrical elements that you use to build schematics. Microwave Office/Analog Office Measurement Reference provides complete reference information on the measurements (i.e., computed data such as gain, noise, power, or voltage) that you can choose as output for your simulations. MWO/VSS/AO Installation Guide describes how to install the AWR Design Environment and configure it for locked or floating licensing options. It also provides licensing configuration troubleshooting tips. This document is available on your Program Disk as install.pdf, or downloadable from the Applied Wave Research website at www.appwave.com under Support.
G e t t i n g S t a r t e d G u i d e 1-3
Known Issues lists the known issues for this release. This document is available on your program disk as KnownIssues.htm.
Whats New in VSS 2004? presents the new or enhanced features, system blocks, and measurements for this release. This document is available via the Start button Programs > AWR Suite 2004 menu, or by choosing Help > Whats New while in the program. Visual System Simulator System Block Catalog provides complete reference information on all of the system blocks that you use to build systems. Visual System Simulator Measurement Reference provides complete reference information on the measurements you can choose as output for your simulations. VSS Modeling Guide contains information on simulation basics, RF modeling capabilities, and noise modeling.
ON-LINE HELP
All AWR documentation is available as on-line Help. To access online Help choose Help from the main menu or press F1 anytime you are working within the AWR Design Environment. Context sensitive help is available for elements and system blocks in the Element Browser and within schematics or system diagrams. Context sensitive Help is available for measurements from the Add/Modify Measurements dialog box.
WEBSITE SUPPORT
Support is also available from the Applied Wave Research website at www.appwave.com. You can go directly to this site from the AWR Design Environment Help menu. The Support page provides links to the following: the current software version the KnowledgeBase, which contains Frequently Asked Questions (FAQs) from MWO and VSS users, Application Notes, Tutorials, and project examples VSS and MWO documentation
TECHNICAL SUPPORT
1-4
MWO/VSS 2004
Phone: 310.726.3028 / Fax: 310.726.3005 / E-mail: support@appwave.com. For users with current maintenance contracts, Technical Support is also available via an interactive Web-based chat session. To contact Support in this manner, choose Help > Chat with AWR Support .
G e t t i n g S t a r t e d G u i d e 1-5
1-6
MWO/VSS 2004
INSTALLING MWO/VSS
..............................
This chapter describes how to install Microwave Office (MWO) and Visual System Simulator (VSS). You can install them as standalone applications or install them together as integrated partners within the AWR Design Environment. A procedure for obtaining a FLEXlm license with a softwarebased key is also included. The installation procedures are intended for evaluators and licensed users who want to install MWO and VSS with a FLEXlm license dedicated to their particular machine. For alternative licensing configurations, see the MWO/ VSS/AO Installation Guide on your Program Disk (install.pdf). You can also download this guide from the AWR website at www.appwave.com. The file is located under Support.
.....
INSTALLATION OVERVIEW
The AWR Design Environment software is shipped on a program CD-ROM for installation. The installation program installs Microwave Office, Visual System Simulator and Analog Office.
G e t t i n g S t a r t e d G u i d e 2-1
When installing an update, back up any custom libraries you have stored in the \Library subdirectory of the program directory, and any .dll files you have stored in the \cells or \models directories. When installing an upgrade, retain your existing version until you verify that your projects work successfully in the new version. (To uninstall Microwave Office, choose Add/Remove Programs from the Windows Control Panel, select the AWR Design Environment and follow the instructions.)
1.
If you do not want Microsoft Internet Explorer to be your default internet browser, you must choose to NOT associate file types via the Advanced setup options when you install Internet Explorer. Note that you must still have the Web Browser installed, as the AWR Help and XML libraries use it.
2-2
MWO/VSS 2004
Description
Select the directory in which you want to install the AWR Design Environment files. Choose the default units to use in schematics and layouts (as well as affect the default sizes for components such as transmission lines). The default is Microns. You can alternatively set this default within the program; see the Microwave Office User Guide for details. Select this check box to specify that files with a .emp, .em, .sch, or .net extension are opened in the AWR Design Environment. If you use another schematic tool or program that uses these extensions, you may want to disable this option. This check box is selected by default. Enter the name of the Start menu program group to which you want to add the AWR 2004 icons. AWR Suite 2004 is the default. If you accept the default, you start the program by clicking the Start button on your desktop and then choosing Programs > AWR Suite 2004 > AWR Design Environment. In addition, you can specify that these icons display only when you are logged onto the computer, or when anyone logs onto the computer.
When prompted to create one or more Start menu shortcuts, choose from the following list of AWR product numbers based on the product feature set you have purchased.
Option
Evaluation
Description
Select this option to create the appropriate default shortcut.
2-3
Option
MWO-328 MWO-228
Description
All MWO-228 functionality plus HSPICE functionality Linear, nonlinear, and EM simulators, and layout; design rule checking, ability to work with layout components having more than two layers, and access to foundry libraries linear, nonlinear, and EM simulators, and layout Standalone version of Visual System Simulator linear and nonlinear simulators, and layout linear and nonlinear simulators linear and EM simulators, and layout linear and EM simulators linear simulator and layout linear simulator
If the AWR Design Environment was not configured during installation to display from your Start menu, start it by double-clicking My Computer on
1. 2.
Floating licensing allows multiple users to share a license over a network via a client-server architecture, whereas locked licensing dedicates a license to a particular machine. Hardware-based keys are calculated from an AWR-supplied hardware dongle serial number. Such a license can be transferred between machines simply by moving the dongle.
2-4
MWO/VSS 2004
your desktop, opening the folder where you installed the program and double-clicking on MWOffice.exe. 2 The following AWR License Configuration dialog box displays.
3 4
Purchased Licenses
To obtain a valid license file from Applied Wave Research, click Info on and follow the instructions.
You will receive your license within two business days. When you receive it, rename it awr.lic and place it into the program directory.
2-5
2-6
MWO/VSS 2004
..............................
The basic design flow in the AWR Design Environment is shown in the following flow chart.
.....
Create Project
File > New Project
Create Schematics/Diagrams
Project > Add Schem./Sys Diag View > New Schematic View
(MWO) Options > Def. Circuit Options (VSS) Options > Def. System Options
Create Graphs/Measurements
Tuning
Simulate > Tune
G e t t i n g S t a r t e d G u i d e 3-1
This chapter describes the windows, menus and basic operations for performing the following tasks in the AWR Design Environment: Creating projects to organize and save your designs Creating system diagrams, circuit schematics, and EM structures Placing circuit elements into schematics Placing system blocks into system diagrams Incorporating subcircuits into system diagrams and schematics Creating layouts Creating and displaying output graphs Running simulations for schematics and system diagrams Tuning simulations
If the AWR Design Environment was not configured during installation to display in your Start menu, start the application by double-clicking the My Computer icon on your desktop, opening the drive and folder where you installed the program, and double-clicking on MWOffice.exe, the Microwave Office application.
3-2
MWO/VSS 2004
Toolbar
Project Browser
Workspace
Tabs
Description
A set of menus located along the top of the window for performing a variety of MWO and VSS tasks. A row of buttons located just below the menu that provides shortcuts to frequently used commands such as creating new schematics, performing simulations, or tuning parameter values or variables. The buttons available depend on the functions in use and the active window within the design environment (as well as any customization of toolbar button groups). Position the cursor over a button to view a short description of the button.
3-3
Component
Project Browser
Description
Located in the left column of the window, this is the complete collection of data and components that define the currently active project. Items are organized into a tree-like structure of nodes and include schematics, system diagrams and EM structures, simulation frequency settings, output graphs, and more. The Project Browser is active when the AWR Environment first opens, or when you click the Proj tab at the lower left of the window. Right-click a node in the Project Browser to access menus of relevant commands.
Element Browser
Contains a comprehensive inventory of circuit elements for building your schematics, and system blocks for building system diagrams for simulations. The Element Browser displays in the left column in place of the Project Browser when you click the Elem tab at the lower left of the window. The area in which you design schematics and diagrams, draw EM structures, view and edit layouts, and view graphs. You can use the scrollbars to move around the workspace. You can also use the zoom in and zoom out options from the View menu. A set of tabs located at the lower left of the window that allow you to switch the contents of the left column of the window from Project Browser (the Proj tab) to Element Browser or Layout Manager. Click the Elem tab to display the Element Browser and to access a comprehensive inventory of circuit elements and system blocks for simulation. Click the Layout tab to specify options for viewing and drawing layout representations and to create new layout cells.
workspace
tabs
You can invoke many of the functions and commands from the menus and on the toolbar, and in some cases by right-clicking on a node in the Project Browser. This guide may not describe all of the ways to invoke a specific task.
3-4
MWO/VSS 2004
BASIC OPERATIONS
This section highlights the windows, menu choices, and commands available for creating simulation designs and projects in the AWR Design Environment.
Because MWO and VSS are fully integrated in the AWR Environment, you can start a project based on a system design using VSS, or on a circuit design using MWO. The project may ultimately combine both VSS and MWO elements. You can view all of the components and elements in the project in the Project Browser. Modifications are automatically reflected in the relevant elements. A project can include any set of designs and one or more linear schematics, nonlinear schematics, EM structures, or system level blocks. A project can include anything associated with the designs, such as global parameter values, imported files, layout views, and output graphs.
CREATING, OPENING, AND SAVING PROJECTS
When you first start the AWR Design Environment, a default empty project titled Untitled Project is loaded. Only one project can be active at a time. The name of the active project displays in the main window title bar. After you create (name) a project, you can create your designs. You can perform simulations to analyze the designs and see the results on a variety of graphical forms. Then, you can tune or optimize parameter values and variables as needed to achieve the desired response. You can generate layout representations of the designs, and output the layout to a DXF, GDSII, or Gerber file. To create a project choose File > New Project . Name the new project and the directory you want to write it to by choosing File > Save Project As. The project name displays in the title bar. To open an existing project, choose File > Open Project . To save the current project, choose File > Save Project . When you save a project, everything associated with it is automatically saved. AWR projects are saved as *.emp files.
3-5
Create new project Open existing project Open example Save current project Name new project Email the project
3-6
MWO/VSS 2004
Right-click to create new system diagram A system diagram opens in the workspace
You are prompted to name the new system diagram. After you name the system diagram, a window opens in the workspace and the Project Browser displays the new system diagram. Subnodes of the system diagram which contain all of the parameters and options that define and describe the system diagram can also be displayed in the Project Browser by selecting Options > Environment Options > Show options as sub-nodes. After
3-7
you name the system diagram, the menus and toolbar display new selections and buttons for building and simulating systems.
3-8
MWO/VSS 2004
Drag desired model into schematic or system diagram window Click Elem tab to display Element Browser
Subcircuits allow you to construct hierarchical circuits by including a circuit block in a schematic. The circuit block can be a schematic, a netlist, an EM structure, or a data file. To add a subcircuit to a schematic, click Subcircuits in the Element Browser. The available subcircuits display in the lower window pane. These include all of the schematics, netlists, and EM structures associated with the project, as well as any imported data files defined for the project. To add a data file as a subcircuit, you must first import it and add it to the project as a node. To do so, choose Project > Add Data File. Any imported data files are automatically shown in the list of available subcircuits in the Element Browser. To place the desired subcircuit, simply click it and drag it into the schematic window, release the mouse button, position it, and click to place it.
3-9
To edit subcircuit parameters, select the subcircuit in the schematic window, right-click, and choose Edit Subcircuit . Either a schematic, netlist, EM structure, or data file opens in the workspace. You can edit it in the same way that you would edit the individual circuit block types.
Subcircuits allow you to construct hierarchical systems and to import results of circuit simulation directly into the system block diagram. To create a subcircuit to a system diagram, choose Project > Add or Import System Diagram and then click Subcircuits under System Blocks in the Element Browser. The available subcircuits display in the lower window pane.
System Diagram > New System Diagram
To place the desired subcircuit, simply click and drag it into the system diagram window, release the mouse button, position it, and click to place it. To edit subcircuit parameters, select the subcircuit in the system diagram window, right-click, and choose Edit Subcircuit. To add a system diagram as a subcircuit to another system diagram, you must first add ports to the system that is designated as a subcircuit.
To add ports to a schematic or system diagram, expand the Ports category in the Element Browser. Under Circuit Elements or System Blocks, click Ports or one of its subgroups, for example, Harmonic Balance. The available models display in the lower window pane. Drag the port into the schematic or system diagram window, right-click to rotate it if needed, position it, and click to place it. For a shortcut when placing ports and ground, click the Port or Ground buttons on the toolbar, position the port or ground, and click to place it.
CONNECTING ELEMENT AND SYSTEM BLOCK NODES
You can connect elements directly by positioning the elements so their nodes touch. Small green boxes display to indicate the connection. To connect element or system block nodes with a wire, position the cursor over a node. The cursor displays as a wire coil symbol. Click at this position to mark the beginning of the wire and slide the mouse to a location where a bend is needed. Click again to mark the bend point. You can make multiple bends. To
3-10
MWO/VSS 2004
start a wire from another wire, Shift -click to mark the beginning of the wire. Terminate the wire by clicking on another element node or on top of another wire. To cancel a wire, press the Esc key.
EDITING PORT PARAMETERS
To edit port parameters, double-click the port in the schematic or system diagram windows to display a dialog box in which you can specify new parameter values.
ADDING DATA TO NETLISTS
When you create a netlist, an empty netlist window opens into which you type a text-based description of a schematic. Netlist data is arranged in blocks in a particular order, where each block defines a different attribute of an element such as units, equations, or element connections. For more information about creating netlists, see the Microwave Office User Guide.
CREATING EM STRUCTURES
EM structures are arbitrary multi-layered electrical structures such as spiral inductors with air bridges. To create an EM structure, right-click EM Structures in the Project Browser, and choose New EM Structure. After you specify an EM structure name and select a simulator, an EM structure window opens in the workspace and the Project Browser displays the new EM structure under EM Structures. Subnodes of the new EM structure which contain all of the parameters and options that define and describe the EM structure can be displayed as described in Working With Schematics and Netlists in MWO on page 3-6. In addition, the menu and toolbar display new choices particular to drawing and simulating EM structures.
3-11
Before you draw an EM structure, you must define an enclosure. The enclosure specifies things such as boundary conditions and dielectric materials for each layer of the structure. To define an enclosure, double-click Enclosure under your new EM structure in the Project Browser to display a dialog box in which you can specify the required information. After you define the enclosure, you can create drawings by accessing options from the Draw menu to draw components such as rectangular conductors, vias, and edge ports. You can view EM structures in 2D (structure) and 3D by using the View menu, and you can view currents and electrical fields using the Animate menu.
3-12
MWO/VSS 2004
Display 2D (structure) and 3D views of the structure Draw conductors, vias, and ports
Shortcuts for drawing conductors, vias, and ports Double-click to define an enclosure
3-13
The resulting layout contains layout cells representing electrical components floating in the layout window. Choose Edit >Select All then choose Edit > Snap Together to snap the faces of the layout cells together. The following figure shows the layout view from the previous figure after a snap together operation.
When you choose View > New Layout View, default layout cells are automatically assigned for common electrical components such as microstrip, coplanar waveguide, and stripline elements. Components of the schematic that do not map to default layout cells display in blue in the schematic window after the layout is generated; components that do have default layout cells display in magenta. For components without default layout cells defined, you must create them or import them using the Layout Manager. For more information see Using the Layout Manager on page 3-15. You can draw in the layout window using the draw tools to build substrate outlines, draw DC pads for biasing, or to add other elements.
MODIFYING LAYOUT ATTRIBUTES AND DRAWING PROPERTIES
To modify layout attributes and drawing properties, as well as create new layout cells for elements that do not have default cells, click the Layout tab in the lower left window. The Layout Manager replaces the Project Browser window.
3-14
MWO/VSS 2004
Right-click to modify layout attributes or import an LPF Right-click to import a cell library or create your own using a Cell Editor
The Layer Setup node in the Layout Manager defines layout attributes such as drawing properties (for example, line color or layer pattern), 3D properties such as thickness, and layer mappings. To modify layer attributes, right-click Layer Setup and choose Edit Drawing Layers. You can also import a layer process file (LPF) to define these attributes by right-clicking Layer Setup and choosing Import Process Definition . The Cell Libraries node in the Layout Manager allows you to create artwork cells for elements that do not have default layout cells. The powerful Cell Editor includes such features as coordinate entry, boolean operations for subtracting and uniting shapes, array copy, arbitrary rotation, grouping, and alignment tools. You can also import artwork cell libraries such as GDSII or DXF into the AWR Design Environment. After creating or importing cell libraries, you can browse through the libraries and select the desired layout cells to include in your layout. Click the + and symbols to expand and contract the cell libraries, and click the desired library.
3-15
The available layout cells display in the lower window pane. To place a cell into the layout window, simply click and drag the cell, release the mouse button, position it, and click to place it.
You can import layouts as GDSII or DXF files. To export a layout, click the layout window to make it active, and choose Layout > Export.
3-16
MWO/VSS 2004
An empty graph displays in the workspace and the graph name displays under Graphs in the Project Browser. The following graph types are available:
Graph Type
Rectangular Constellation Smith Chart Polar Histogram Antenna Plot Tabular 3D Plot
Description
Displays the measurement on an x-y axis, usually over frequency. Displays the in-phase (real) versus the quadrature (imaginary) component of a complex signal. Displays passive impedance or admittances in a reflection coefficient chart of unit radius. Displays the magnitude and angle of the measurement. Displays the measurement as a histogram. Displays the sweep dimension of the measurement as the angle and the data dimension of the measurement as the magnitude. Displays the measurement in columns of numbers, usually against frequency. Displays the measurement in 3D graph
To specify the data that you want to plot, right-click the new graph name in the Project Browser, and choose Add Measurement . An Add Measurement dialog box allows you to choose from a comprehensive list of measurements. To compare the existing graphs with different simulation settings, while the graph window is active click Graph on the menu bar, choose Freeze Traces, then make the necessary changes and run the simulation again.
Performing Simulations
To run a simulation on the active project, choose Simulate > Analyze. The simulation runs automatically on the entire project, using the appropriate simulator (for example, linear simulator, harmonic balance nonlinear simulator, or 3D-planar EM simulator) for the different pieces of the project.
SETTING SIMULATION FREQUENCY
To set the simulation frequency, double-click the Project Options node in the Project Browser, or choose Options > Project Options and then specify frequency values on the Frequencies tab in the dialog box. By default, all the schematics use this frequency for simulation. You can overwrite this frequency with an individual schematic frequency by right-clicking the schematic name
3-17
under Circuit Schematics in the Project Browser and choosing Options. Click the Frequencies tab, deselect Use project defaults and then specify frequency values. When the simulation is complete, you can view its output on the graphs and then easily tune and/or optimize as needed.
VSS SYSTEM SIMULATIONS
To set simulation frequency, double-click the System Diagrams node in the Project Browser, or choose Options > Default System Options and then specify frequency values on the Simulator tab in the dialog box.
Type the data rate Type the number of samples per symbol
When the simulation is complete, you can view its output on the graphs and then easily tune and/or optimize as needed.
TUNING AND OPTIMIZING SIMULATIONS
The real-time tuner lets you see the effect on the simulation as you tune. The optimizer lets you see circuit parameter values and variables change in real-time as it works to meet the optimization goals that you specified. You can also click the Tune Tool button on the toolbar. Select the parameters you want to tune and then click the Tuner button to tune the values. As you tune or optimize, the schematics and associated layouts are automatically updated. When you re-run the simulation, only the modified portions of the project are recalculated.
3-18
MWO/VSS 2004
3-19
3-20
MWO/VSS 2004
MWO:
..............................
Linear simulators use nodal analysis to simulate the characteristics of a circuit. Linear simulations are used for circuits such as low noise amplifiers, filters, and couplers whose elements can be characterized by an admittance matrix. Linear simulators typically generate measurements such as gain, stability, noise figure, reflection coefficient, noise circles, and gain circles.
.....
4-1
Click OK .
4-2
MWO/VSS 2004
Creating a Schematic
To create a schematic: 1 2 Choose Project > Add Schematic > New Schematic. The Create New Schematic dialog box displays. Type lpf , and click OK . A schematic window displays in the workspace and the schematic displays under Circuit Schematics in the Project Browser.
Use the scroll arrows along the right and bottom of the schematic window to view different portions of the schematic as you work, or to view the entire schematic choose View > View All . To place elements on a schematic: 1 2 3 Click the Elem tab in the lower left of the window to display the Element Browser. The Element Browser replaces the Project Browser window. If necessary, click the + symbol to the left of the Circuit Elements node to expand the elements tree. Expand the Lumped Element category under Circuit Elements, then click the Inductor subgroup. Select the IND model from the bottom window and drag it to the schematic as shown in the following figure.
Element Browser
Element models
4-3
4 TIP:
Repeat step 3 three times, aligning and connecting each inductor as shown in the following figure. You can also connect elements by moving them to snap their nodes together. When they are properly connected a small green square displays and the connection wire extends if you move either element. If you do not see the green square, try to drag one of the elements into place again.
Click the Capacitor subgroup under Lumped Element, then select the CAP model and place it on the schematic as shown in the following figure. Rightclick once before placing the capacitor to rotate it as shown. Repeat Step 5 twice, aligning and linking each capacitor as shown in the following figure.
Place the cursor over the bottom node of CAP C1. The cursor displays as a wire coil symbol as shown in the following figure.
4-4
MWO/VSS 2004
Click, then drag the wire past the bottom node of CAP C2, then onto the bottom node of CAP C3, and click to place the wire.
To place a port on a node: 1 2 Choose Draw > Add Port . Move the cursor onto the schematic, position the port on the first inductor node as shown in the following figure, then click to place it.
4-5
3 TIP:
Repeat Step 1 to add a port to the right-most inductor, but right-click two times to rotate the port 180-degrees before you place it. You can also add a port by clicking the Port button on the toolbar and sliding the cursor into the schematic.
To place ground on a node: 1 2 Choose Draw > Add Ground . Slide the cursor onto the schematic, position the ground on the bottom node of CAP C1 as shown in the following figure, and click to place it.
To edit the element parameters: 1 2 3 Double-click the IND L1 element. The Element Options dialog box displays. Set the L parameter Value to 15 and click OK . The change is reflected in the schematic. Repeat Steps 1 and 2 to edit the inductor and capacitor values to match those in the following figure. (To edit capacitor values, set the C parameter value as shown.)
4-6
MWO/VSS 2004
TIP:
You can also simply double-click the parameter value displayed on the schematic to display a text box in which you can modify a single parameter.
SPECIFYING THE SIMULATION FREQUENCY
To specify the simulation frequency: 1 2 3 4 5 6 Click the Proj tab in the lower left of the window. Double-click Project Options. The Project Options dialog box displays. Click the Frequencies tab. Change the Data Entry Units to MHz . Type 100 in Start , 1000 in Stop, and 10 in Step, and then click Apply. The frequency range and steps you specified display in Current Range. Click OK .
4-7
Creating a Graph
To create a graph: 1 Right-click Graphs in the Project Browser and choose Add Graph. You can also click the New Graph button on the toolbar. The Create Graph dialog box displays. Type s21 and s11 in Graph Name, select Rectangular as the Graph Type, and click OK . The graph displays in a window in the workspace and displays as a subgroup of Graphs in the Project Browser.
ADDING A MEASUREMENT
To add measurements to the graph: 1 Right-click the s21 and s11 graph in the Project Browser, and choose Add Measurement . The Add Measurement dialog box displays. You can also click the Add Measurement button on the toolbar. Select Linear > Port Parameters as the Meas. Type and S as the Click the arrow to the right of Data Source Name and select lpf. Click the arrows to the right of To Port Index and From Port Index and select 1 for each. Select Mag. as the Complex Modifier, select the DB check box under Result Type, and then click Apply.
Measurement .
4-8
MWO/VSS 2004
3 4
Change the value in To Port Index to 2 , and click Apply to add a second measurement. Click OK . The measurements lpf:DB(|S(1,1)|) and lpf:DB(|S(2,1)|) display under the s21 and s11 graph in the Project Browser.
4-9
-10
-20
-30
-40
When you place the tune tool over a schematic element, the cursor displays as a cross icon to indicate that the parameter is tuneable. To tune the circuit: 1 2 3 Click the schematic window to make it active. Click the Tune Tool button on the toolbar. Move the cursor over the L parameter of IND L1. The cursor displays as a cross as shown in the following figure.
4-10
MWO/VSS 2004
4 5 6 7 8
Click to activate the L parameter for tuning. The parameter displays in an alternate color. Repeat Steps 2 through 4 for the IND L4 element and the C parameters of the CAP C1 and CAP C3 elements. Click the graph window to make it active. Choose Simulate > Tune. The Variable Tuner dialog box displays. Click a tuning button, and holding the mouse button down, slide the tuning bar up and down. Observe the simulation change on the graph as the variables are tuned. Slide the tuners to the values shown in the following figure, and observe the resulting response on the graph of the tuned circuit.
4-11
-10
-20
-30
-40
10 Click the X at the top right of the Variable Tuner dialog box to close it and click the Tune Tool button on the toolbar to deactivate the tuner.
Creating Variables
Filters are typically symmetric circuits. To optimize the circuit while maintaining symmetry, you must change some of the parameter values to variables. To create variables: 1 2 3 4 5 6 7 Click the schematic window to make it active. Choose Draw > Add Equation . Move the cursor into the schematic to display an edit box. Position the edit box near the top of the schematic window and click to place it. Type IND=15 (without the quotes) in the edit box, and then click outside of the box. Repeat Steps 2 through 5 to create a second edit box, but type CAP=8 (without the quotes). Double-click the L parameter value of IND L1. An edit box displays. Type the value IND and then click outside of the edit box.
4-12
MWO/VSS 2004
Repeat Step 7 to change the L parameter value of IND L4 to IND , and the C parameter values of CAP C1 and CAP C3 to CAP , as shown in the following figure.
To enable the IND and CAP variables for optimization: 1 2 3 4 5 Choose Simulate > Optimize. The Optimizer dialog box displays. Click Variables at the bottom left of the dialog box to display the Variables tab. Locate the IND and CAP variables in the Parameter column. Click the box in the Optimize column in both the IND and CAP rows. Click the box in the Optimize column in the CAP C2 row, then click the X at the top right of the dialog box to close it.
4-13
In the Project Browser, right-click Optimizer Goals and choose Add Opt The New Optimization Goal dialog box displays.
Type ,
Select lpf:DB(|S(1,1)) as the Measurement . Select Meas < Goal as the Goal deselect Max under Range and type 500 as the Stop value, type -17 db as the retrun loss Goal, and then click OK .
> Goal
Repeat Step 1, then select lpf:DB(|S(2,1)) as the Measurement , select Meas as the Goal Type, deselect Max under Range and type 500 as the Stop value, type -1 db as the attenuation Goal , and then click OK . Repeat Step 1, then select lpf:DB(|S(2,1)) as the Measurement , select Meas as the Goal Type, deselect Min under Range and type 700 as the Start value, type -30 as the Goal , and then click OK .
< Goal
Click the arrow to the right of Optimization Methods and select Random type 5000 in Maximum Iterations, and then click Start . The optimization runs.
4-14
MWO/VSS 2004
When the optimization is complete, click the X box to exit the Optimizer dialog box. The optimized response in the following schematic and graph should display. Note that your IND and CAP values may vary slightly.
700
900
1000
4-15
4-16
MWO/VSS 2004
MWO:
..............................
Layouts are views of the physical representations of a schematic. Layout is a critical part of high-frequency circuit design and simulation, since the response of a circuit is dependent on the geometric shapes with which it is composed.
.....
Layout Function
Zoom in Zoom out Full view Snap to corners, edges, and centers of circles Move shape with coordinate entry
5-1
Keystrokes
Press Ctrl+Shift while clicking on layered shapes
Layout Function
Cycle through layered shapes/elements and select them individually
5-2
MWO/VSS 2004
Right-click Layer Setup in the Layout Manager, and choose Import Process The Import Process Definition dialog box displays.
Locate the program directory (C:\Program Files\AWR\AWR2004 is the default installation directory) and double-click it to open it. If you changed the default installation directory, then locate that directory instead when the program directory is referenced. Click the MIC_english.lpf file and click Open . The following figure shows the Layout Manager.
Layout Manager
5-3
To set the database unit and grid size: 1 2 3 Choose Options > Layout Options. The Layout Options dialog box displays.
size,
On the Layout tab, type .1 in Grid spacing and .01 in Database unit and then click OK .
Double-click the Examples subdirectory, then double-click the Getting and Layout subdirectories.
Select the packages.gds file and click Open . The imported cell library displays in the Layout Manager. If a warning message displays, click OK .
5-4
MWO/VSS 2004
Double-click the Examples subdirectory, then double-click the Getting and Layout subdirectories. Select the N76038a.s2p file and then click Open.
Right-click Circuit Schematics in the Project Browser, choose New and create a schematic named qs layout , then click OK . In the Element Browser, expand the Subcircuits category.
5-5
You may occasionally need to access the ground node of a data file. To expose the ground node of a transistor data file: 1 2 3 Double-click the subcircuit element in the schematic window. The Element Options dialog box displays. Click the Ground tab. Select Explicit ground node, then click OK .
5-6
MWO/VSS 2004
In the Microstrip category, click the Junctions subgroup. Select the MTEE$ model and place it in the schematic window connected to the MLIN element as shown in the following figure. Elements with names ending in $ inherit their attributes from the ports to which they connect. Elements with names ending in X are created from a look-up table of EM-generated models. Thus, the name MTEEX$ is a microstrip tee junction based on an EM model look-up table that inherits its widths from the ports to which it connects.
TIP:
5-7
In the Microstrip category, click the Lines subgroup. Select the MTRACE2 model and place it in the schematic window onto node 1 of the MTEE$ element. Select the MLEF model in the same subgroup and place it in the schematic window. Right-click three times to rotate the element, then position it onto node 3 of the MTEE$ element. Double-click the MTRACE2 element in the schematic window to display the Element Options dialog box. Edit the MTRACE2 parameters to match those shown in the following figure, then click OK . Repeat step 6 for the MLIN and MLEF elements to match their parameters to those shown in the following figure.
5 6 7
Click the Substrates category, then select the MSUB model and place it on the schematic window as shown in the following figure.
5-8
MWO/VSS 2004
Double-click the MSUB element in the schematic window to display the Element Options dialog box. Edit the MSUB parameters to match those in the following figure, then click OK .
10 Click the Port button on the toolbar, move the cursor onto the schematic, position the port on the left node of the MTRACE2 element as shown in the following figure, and click again to place it. 11 Add another port to node 2 of the SUBCKT element. Right-click three times to rotate the port, position it, and click again to place it. 12 To complete the schematic, click the Ground button on the toolbar, move the cursor into the schematic, position the ground on node 3 of the SUBCKT element, and click again to place it.
5-9
PORT P=2 Z=50 Ohm MTRACE2 ID=X1 W=10 mil L=200 mil BType=2 M=0.6
1 3
MTEE$ ID=TL2
2
MSUB Er=9.8 H=10 mil T=0.1 mil Rho=1 Tand=0 ErNom=9.8 Name=SUB1
5-10
MWO/VSS 2004
Viewing a Layout
The schematic and layout are different views of the same database. Edits made to the parameters in the schematic are instantly updated in the layout, and vice versa. To view a layout: 1 2 Click the schematic window to make it active. Choose View > New Layout View or click the New Schematic Layout View button on the toolbar to view a layout representation. The layout displays in a layout window. Choose Edit > Select All to select all of the layout cells. Choose Edit > Snap Together to snap all of the faces of the artwork cells together.
3 4
Select the Alpha_212_3 artwork cell. Right-click, and choose Shape to display the Cell Options dialog box.
5-11
Click the Layout tab, select the Use for anchor check box, and click OK . The artwork cell now has an anchor symbol as shown in the following figure.
5-12
MWO/VSS 2004
Click the Set Grid Snap Multiple button on the toolbar and set it to 10x. (Ensure that the Schematic Layout toolbar is displayed by right-clicking on the toolbar and selecting Schematic Layout .) Click the chip cap package in the upper Layout Manager window, and then click the Copper box in the left column of the lower pane to enable copper as the active layer, as shown in the following figure. (Do not click the lightbulb, as it hides or displays the drawing layer.)
6 7 8
Choose Draw > Rectangle. Move the cursor into the drawing window, then press the Tab key. The Enter Coordinates dialog box displays. Type the values 0 and 10 in x and y, respectively, and click OK .
Press the Tab key again to display the Enter Coordinates dialog box.
10 Type the values 10 and -10 in dx and dy, respectively, and click OK . The following figure shows the resulting drawing. (You may need to adjust your view by choosing View > Zoom In or View > Zoom Out .)
5-13
11 Click the Footprint box in the left column of the lower pane of the Layout Manager to enable footprint as the active layer. 12 Click the chip cap window to make it active. 13 Choose Draw > Rectangle. 14 Move the cursor into the chip cap window, then press the Tab key. The Enter Coordinates dialog box displays. 15 Type the values 10 and 10 in x and y, respectively, and click OK . 16 Press the Tab key again to display the Enter Coordinates dialog box. 17 Type the values 20 and -10 in dx and dy, respectively, and click OK . The following figure shows the resulting drawing.
5-14
MWO/VSS 2004
18 Click the copper square in the chip cap window, and press Ctrl+C then Ctrl+V to copy and paste it. Slide the mouse to position the copied square along the right edge of the rectangle as shown in the following figure, and click to place it.
5-15
Ports in the artwork cell editor define the faces to which other layout cells connect. The orientation of the port arrow determines the direction of connection to the adjacent layout cell. To add ports to an artwork cell: 1 2 Choose Draw > Cell Port . Move the cursor into the chip cap window. Press and hold the Ctrl key while you move the cursor over the bottom left vertex of the square until a square symbol displays on the vertex. Do not release the Ctrl key.
With the Ctrl key still pressed, click and hold down the mouse button while moving the cursor to the top vertex, until another square displays on that vertex. Release the mouse button and the Ctrl key.
5-16
MWO/VSS 2004
Repeat steps 1 through 3 to place a port on the opposite side of the drawing, but start at the top vertex and draw down.
5-17
Click the X at the top right of the chip cap window. A dialog box asks if you want to save the cell edits. Click Yes to save.
MTEE$ ID=TL2
2
MSUB Er=9.8 H=10 mil T=0.1 mil Rho=1 Tand=0 ErNom=9.8 Name=SUB1
5-18
MWO/VSS 2004
In the Element Browser, expand the Lumped Element category, then click the Capacitor subgroup. Select the CAP model, and place it in the schematic window between PORT 1 and the MTRACE2 element. Double-click the CAP C1 element in the schematic window. The Element Options dialog box displays. Click the Layout tab. Select chip cap from the list of cells, then click OK .
4 5 6
Choose View > New Layout View. The new layout displays in the workspace. Choose Edit > Select All , and then Edit > Snap Together to snap the layout together. The layout and corresponding schematic are shown in the following figures.
PORT P=2 Z=50 Ohm MTRACE2 ID=X1 W=10 mil L=200 mil BType=2 M=0.6
1 3
MTEE$ ID=TL2
2
MSUB Er=9.8 H=10 mil T=0.1 mil Rho=1 Tand=0 ErNom=9.8 Name=SUB1
5-19
Move the routing tool to another point and click to place. (Right-click to delete the last point; press the Esc key to cancel the activity.)
5-20
MWO/VSS 2004
Continue to route points by moving the routing tool and clicking to place, then double-click to complete the routing.
TIP:
MLIN is a straight element with a width you can change in the layout. You can edit the MTRACE2 elements in the layout to create jogs and bends and chamfered corners. You can edit the MCTRACE element to create jogs and bends with rounded corners.
In the Layout tab, select Manual snap for selected objects only under then click OK .
5-21
To separate the layout cells so the change in snapping options is viewable: 3 Click the MLEF layout cell and drag it to a new position as shown in the following figure.
Repeat step 3 with the MTRACE2 element and the chip cap cell. Position the layout cells as shown in the following figure.
5-22
MWO/VSS 2004
The red lines indicate that the faces of the layout cells are not snapped together. To snap a selected set of layout cells together: 5 Hold down the Shift key and select the MLEF, MTRACE2, and MTEE$ layout cells in the layout window.
Click the Snap Together button on the toolbar. Observe that the chip cap layout cell and MLIN layout cell are not snapped together.
5-23
To snap all of the faces together: 7 8 Type Ctrl+A to select all of the layout cells. Click the Snap Together button on the toolbar. The layout displays as shown in the following figure.
The snap to fit function finishes the routing of an MTRACE2 layout cell to a specified adjacent layout cell. In this example, the chip cap layout cell is moved and MTRACE2 re-routes to snap to the chip cap face. To snap to fit MTRACE2 to the chip cap: 9 Position the chip cap artwork cell as shown in the following figure.
5-24
MWO/VSS 2004
10 Select the MTRACE2 layout cell, hold down the Shift key and select the chip cap artwork cell.
11 Click the Snap to Fit button on the toolbar. The MTRACE2 routes to snap to the chip cap artwork cell as shown in the following figure.
5-25
Choose Layout > Export . The Export Layout dialog box displays.
5-26
MWO/VSS 2004
5 6
Select DXF (DXF Flat,*.dxf) in Save As Type. Type CopperLayer as the Filename, and click Save to export the copper file layer to a DXF file.
5-27
5-28
MWO/VSS 2004
...............................
MWO:
Harmonic balance (HB) is an efficient method for the steady-state analysis of nonlinear circuits such as power amplifiers, mixers, multipliers and oscillators. This chapter presents an overview of HB simulations in Microwave Office. For more detailed information, see the Microwave Office User Guide.
.....
Single-Tone Analysis
A single-tone HB analysis simulates the circuit at a fundamental frequency, at integer multiples of the fundamental frequency, and at DC. Single-tone harmonic balance requires the specification of a fundamental frequency (or a frequency sweep) and the total number of harmonics.
Multi-Tone Analysis
Multi-tone simulations are used to determine the output of a circuit excited by two or more frequencies that cannot be expressed as integer multiples of one another. Typical examples include the LO and RF signals in a mixer and closely spaced tones used for intermodulation testing of amplifiers.
Nonlinear Measurements
Microwave Office offers a large number of post-processing functions for viewing simulation results in both the frequency and the time domain. Examples
6-1
include large signal S-parameters, voltages and currents at arbitrary nodes, intercept points, power spectra and power-added efficiency. Results may be swept over any number of arbitrary parameters. The following example illustrates some of the key features of the Microwave Office nonlinear simulator.
6-2
MWO/VSS 2004
To set default project units: 1 2 Choose Options > Project Options. The Project Options dialog box displays. Click the Global Units tab and verify that your settings match those in the following figure. You can choose units by clicking the arrows to the right of the display boxes.
Creating a Schematic
To create a schematic: 1 2 Choose Project > Add Schematic > New Schematic. The Create New Schematic dialog box displays. Type IV Curve , and click OK . A schematic window displays in the workspace.
To place a nonlinear model: 1 Click the Elem tab at the lower left of the window to display the Element Browser.
6-3
Started
Expand the Library category, then expand the Nonlinear and Getting subgroups. Click the GBJT subgroup, then select the BLT11_chip model and place it as shown in the following figure.
To place an IV curve meter element with stepped current: 1 Under Circuit Elements, expand the MeasDevice category, then click the IV subgroup. Select the IVCURVEI model and place it as shown on the following schematic. Place the cursor over the Step node of IVCURVEI. The cursor displays as a wire coil symbol. Click, then drag the cursor to node 1 of the GBJT transistor, and click to place the wire. Repeat step 2 to connect the Swp node of IVCURVEI to node 2 of the GBJT transistor. Click the Ground button on the toolbar. Move the cursor into the schematic window and position the ground on node 3 of the GBJT transistor, then click to place it.
3 4
6-4
MWO/VSS 2004
To specify IVCURVEI settings: 1 2 In the schematic window, double-click the IVCURVEI element. The Element Options dialog box displays. Edit the parameters to the values shown in the following figure, then click
OK .
To create a graph and add an IV curve measurement: 1 2 3 4 5 TIP: In the Project Browser, right-click Graphs and choose Add Graph . The Create Graph dialog box displays. Type IV BJT in Graph Name, select Rectangular as the Graph Type, and click OK . The graph displays in the workspace.
Measurement .
Right-click the IV BJT graph in the Project Browser, and choose Add The Add Measurement dialog box displays.
Select Nonlinear > Current in Meas. Type and IVCurve in Measurement . Select IVCurve as the Data Source Name, and click OK . Choose Simulate > Analyze. The simulation response in the following graph displays. You can disable parameter markers by right-clicking on the graph and choosing Properties. On the Markers tab of the Graph Properties dialog
6-5
box, clear the Param markers enabled and Param markers in legend check boxes.
Expand the Lumped Element category, then click the Inductor subgroup. Select the IND model, and place it above and to the left of the GBJT transistor as shown in the following figure. Place the cursor on node 1 of the GBJT transistor. The cursor displays as a wire coil symbol. Click, then drag the cursor to the right node of IND, and click to place the wire. Double-click the IND model and set the L parameter to 1 , then click OK . Click the Resistor subgroup under Lumped Element. Select the RES model and place it as shown in the following figure after right-clicking once to rotate the element.
5 6
6-6
MWO/VSS 2004
7 8 9
Double-click the RES model and set the R parameter to 0.5 , then click
OK .
Click the Ground button on the toolbar and position the ground on the bottom of RES R1 as shown in the following figure. Repeat step 8, positioning the ground on node 4 of the GBJT transistor as shown in the following figure.
10 Expand the Sources category, then click the DC subgroup. Select the DCVS model and place it as shown in the following figure. 11 Click the Ground button on the toolbar and position the ground on the open end of DCVS V1 as shown in the following figure. 12 Double-click the DCVS model and set the V parameter to 1 , then click OK . 13 Click IND L1 in the schematic window. Press Ctrl+C, then Ctrl+V to copy and paste it. Connect the new IND element to node 2 of the GBJT model as shown in the following figure. 14 Copy the DCVS model and place the copy on the open node of IND L2 as shown in the following figure. 15 Double-click the DCVS V2 model and set the V parameter to 6 , then click OK . 16 Click the Ground button on the toolbar and position the ground on the negative node of DCVS V2 as shown in the following figure.
6-7
To add schematic back annotation to display DC voltage and current measurements: 1 2 Right-click the DC Bias schematic in the Project Browser and choose Add Annotation . The Add Annotation to the Schematic dialog box displays. Specify a voltage measurement using the settings in the following figure, then click OK .
6-8
MWO/VSS 2004
Specify a current measurement using the settings in the following figure, then click OK .
Choose Simulate > Analyze. The voltage displays at all nodes and the current displays at each element as shown in the following figure.
6-9
Before adding a harmonic balance port, you must add DC blocking capacitors to the transistor input and output. To add DC blocking capacitors: 1 2 Click the DC Bias schematic window in the workspace to make it active. In the Element Browser, expand the Lumped Element category, then click the Capacitor subgroup. Select the CAP model and connect it to node 1 of the GBJT transistor as shown in the following figure. Double-click the CAP model and set the C parameter to 100 , then click
OK .
3 4
Copy the CAP model (hereinafter referred to as CAP C1) and connect the copy (CAP C2) to node 2 of the GBJT transistor as shown in the following figure.
You must also add an RF bypass capacitor across the emitter resistor. To add an RF bypass capacitor: 5 6 Copy the CAP C1 model and place the copy (CAP C3) to the left of RES R1 after right-clicking once as shown in the following figure. Connect the top node of CAP C3 to node 3 of the GBJT transistor.
6-10
MWO/VSS 2004
To add a harmonic balance port: 1 In the Element Browser, expand the Ports category, then click the subgroup. Select the PORT1 model and connect it to CAP C1 as shown in the following figure.
Harmonic Balance
2 3
Double-click PORT1 and set the PWR parameter to 23 , then click OK . Click the Port button on the toolbar and add a port to the open node of CAP C2 (output blocking) as shown in the following figure. This port is considered a termination port.
6-11
As a global sweep in Project Options (Options > Project Options > tab) As a document sweep, (right-click the schematic node and choose tab)
By placing a SWPFRQ component (found under Circuit Elements in the Simulation Control category) on the schematic.
You select the frequency sweep used by the simulator in the Add/Modify Measurement dialog, as shown in Adding a Large Signal Reflection Coefficient Measurement on page 6-13. The following step defines the frequency sweep using a document sweep, which is the simplest and most convenient means. To specify a document frequency sweep: 1 2 In the Project Browser under Circuit Schematics, right-click DC Bias and choose Options. The Options dialog box displays. Click the Frequencies tab.
6-12
MWO/VSS 2004
Clear the Use project defaults check box, select GHz as the Data Entry select Replace, specify the Start, Stop and Step values shown in the following figure, click Apply to display the values in Current Range, and then click OK .
Units,
Microwave Office makes it easy to compute large-signal network parameters. The following exercise demonstrates how to compute the large signal reflection coefficient and display it on a Smith Chart. To create a Smith Chart: 1 2 In the Project Browser, right-click Graphs and choose Add Graph . The Create Graph dialog box displays.
Type ,
Type Input reflection in Graph Name, select Smith Chart as the Graph and click OK .
To add a large signal reflection measurement: 3 4 Right-click Input reflection under Graphs and choose Add Measurement . The Add Measurement dialog box displays. Select Nonlinear > Parameter as the Meas. Type, Gcomp as the as the Data Source Name. Select PORT_1 as the Measurement Component , click the arrows to the right to select 1 in Harmonic Index , and then click Apply and OK .
Measurement , and DC Bias
6-13
Note the frequency sweep control which simplifies control of the simulation frequencies and allows you to select among the available frequency sweeps. The default setting is the document sweep discussed in Specifying Nonlinear Simulation Frequencies on page 6-12.
Choose Simulate > Analyze. The following simulation response displays on the Smith Chart.
6-14
MWO/VSS 2004
Importing Schematics
The input and output matching for the amplifier are imported from existing schematics. To import the input match schematic: 1 2
Schematic.
In the Project Browser, right-click Circuit Schematics and choose Import The Open dialog box displays.
Select the input match.sch file and click Open to import and open the schematic.
To import the output match schematic: 4 5 Right-click Circuit Schematics and choose Import Schematic. Select the output match.sch file from the previously opened directory and click Open to import and open the schematic.
6-15
6-16
MWO/VSS 2004
In the Element Browser, click the Subcircuits category then select the input match subcircuit and place it on the schematic between CAP C1 and node 1 of the GBJT transistor as shown in the following figure.
6-17
If the subcircuit nodes do not properly connect with the capacitor and transistor you may need to slightly move the elements until the proper connections are made. Repeat steps 2 and 3 with PORT2 and CAP C2 as shown in the following figure.
Click the Subcircuits category then select the output match subcircuit and connect it to the open node of CAP C2 after right-clicking twice to invert it, as shown in the following figure. Connect node 2 of the output match subcircuit to node 2 of the GBJT transistor. Double-click the Pwr parameter value of the PORT1 element. An edit box displays over the value. Type 18 to change the value from 23 to 18 dBm, then click outside the edit box to save the change.
8 9
6-18
MWO/VSS 2004
10 Choose Simulate > Analyze. The simulation response in the following Smith chart displays with the circuit matched.
Input Reflection
6 0.
Swp M ax 2.5GHz
2. 0
0 .8
1.0
10.0
0.2
0.4
0.6
0.8
1.0
2.0
3.0
4.0 5.0
.4 -0
Gcomp(PORT_1,1) DC Bias
-0 .6
- 0. 8
.0 -2
Swp M in 1.5GHz
-1.0
- 5.
-4 .0
- 0.
- 10 . 0
-3 .0
0. 4
0 3.
0 4.
5 .0 0 .2
1 0. 0
6-19
Choose Simulate > Analyze. The simulation response in the following graph displays.
6-20
MWO/VSS 2004
29
Pout
28
26
In the Project Browser, right-click IV BJT under Graphs and choose Add The Add Measurement dialog box displays.
Create a measurement using the settings in the following figure, then click OK .
6-21
To select the Voltage Measure Component and Current Measure Component , click the ... button to the right of these options. The Component Browser shown in the following figure displays to allow you to select the desired components.
6-22
MWO/VSS 2004
Choose Simulate > Analyze. The simulation response in the following graph displays.
IVCurve() (mA) IV Curve
1500
IV BJT
1000
500
6-23
Right-click the Copy of DC Bias schematic and choose Rename in the Rename Data Source dialog box, and then click OK .
A common measurement used to characterize power amplifiers is a third-order intermodulation product versus swept power. To make this measurement, two closely-spaced tones must be injected into the input port. To add a two-tone harmonic balance port: 1 2 3 4 Click the Two Tone Amp schematic window in the workspace to make it active. You can press the Home key to view the entire schematic. Double-click PORT1 in the schematic window. The Element Options dialog box displays. Click the Port tab. Specify the port settings shown in the following figure.
6-24
MWO/VSS 2004
Click the Parameters tab and edit the parameters to the values shown in the following figure, then click OK .
6-25
To add a third-order intermodulation product measurement: 1 2 Create a rectangular graph named IM3 . Right-click IM3 under Graphs and create a measurement using the settings in the following figure, then click OK .
3 4
Repeat step 2 to plot a fundamental component output power, this time selecting 0 and 1 under Harmonic Index . Choose Simulate > Analyze. The simulation response in the following graph should display.
6-26
MWO/VSS 2004
30
IM3
-30
-60
DB(|Pcomp(PORT_2,2_-1)|)[1,X] (dBm) Two Tone Amp DB(|Pcomp(PORT_2,0_1)|)[1,X] (dBm) Two Tone Amp
The output-referred IP3 measurement extrapolates the low-power results, so in this exercise you create another schematic to avoid multidimensional (voltage and power) sweeps. To create a schematic for the IP3 measurement: 1 2 3 Copy the Two Tone Amp schematic under Circuit Schematics. Right-click the Copy of Two Tone Amp schematic and rename it IP3 . Double-click Port_PS2 P=1. In the Element Options dialog box, click the tab and clear the Swept power check box, then click OK . The port name changes to Port2 P=1.
Port
Double-click the Pwr1 and Pwr2 parameter values of PORT2 P=1 and change both to -10 .
6-27
To define a swept variable: 1 2 3 4 Choose Draw > Add Equation . You can also click the Equation button on the toolbar. Move the cursor into the schematic to display an edit box. Position the box near the top of the schematic window and click to place it. Type Vcc=1 in the edit box, and then click outside of the box. A variable named Vcc is created. In the Element Browser, click the Simulation Control category, then select the SWPVAR element and place it as shown in the following figure.
Specify the SWPVAR parameter settings shown in the following figure to define Vcc as a variable swept between 4 and 8 in steps of 0.5, then click OK .
6-28
MWO/VSS 2004
6 1 2
Double-click the V parameter value of DCVS V2 and change it to Vcc . Add a rectangular graph named IP3 . Create a measurement using the settings in the following figure, then click OK .
6-29
Choose Simulate > Analyze to obtain the output-referred IP3 intercept, swept over the bias voltage, as shown in the following graph.
OIPN(PORT_2,0_1,-1_2,3)[*,X] (dBm) IP3 IP3
p2 p1 p3 p4 p5 p6
40 38 36 34 32 30 28 4 5
p1: Freq = 1.5 GHz p2: Freq = 1.7 GHz p3: Freq = 1.9 GHz
6
p4: Freq = 2.1 GHz p5: Freq = 2.3 GHz p6: Freq = 2.5 GHz
7
6-30
MWO/VSS 2004
MWO:
..............................
Electromagnetic (EM) simulators use Maxwells equations to compute the response of a structure from its physical geometry. EM simulations are ideal because they can simulate highly arbitrary structures and still provide very accurate results. In addition, EM simulators are not subject to many of the constraints of circuit models because they use fundamental equations to compute the response. One limitation of EM simulators is that simulation time grows exponentially with the size of the problem, thus it is important to minimize problem complexity to achieve timely results.
.....
G e t t i n g S t a r t e d G u i d e 7-1
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
The following example illustrates some of the key features of the Microwave Office EM simulator.
Creating an EM Structure
To create an EM structure: 1 Choose Project > Add EM Structure > New EM Structure. The New EM Structure dialog box displays.
7-2
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Type Interdigital Filter and select the AWR EMSight Simulator from the list of EM Simulators available on your computer, then click Create. An EM structure window displays in the workspace.
TIP:
EMSight uses a rectilinear grid for defining structures. When you set up designs, use the coarsest grid possible when defining structures, as this provides faster simulation time (usually without any compromise in simulation accuracy.) Other third-party EM simulators may only use the grid for drawing purposes and the density may not matter-- see the thirdparty simulator documentation for further details.
SETTING UP THE ENCLOSURE
The enclosure defines all the dielectric materials for each of the layers in an EM structure, sets the boundary conditions, and defines the overall physical size of the structure and minimum grid units used to specify conductor materials in the structure. To set up the enclosure: 1 2 3 Choose Options > Project Options. The Project Options dialog box displays. Click the Global Units tab and select the Metric units check box, then set the Length type to mm and click OK . In the Project Browser, under EM Structures and Interdigital Filter, double-click Enclosure. The Substrate Information dialog box displays.
7-3
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Divisions,
Under Box Dimensions, type 10 as the X-Dimension , type 50 in Xtype 10 as the Y-Dimension , and type 50 in Y-Divisions.
To define the dielectric layers of the enclosure: 5 6 Click the Dielectric Layers tab in the Substrate Information dialog box. Select Layer 1 under Dielectric Layer Parameters. Type 3 in the edit box (near the bottom of the dialog box) in the Thickness column and type 1 in the edit box below the er column. Leave the default values in the remaining columns. In EMSight, simulations run twice as fast if they are loss-less. Therefore, set the Loss Tangent to zero and use perfect conductors to define all the metallization and vias in an EM structure. 7 Select Layer 2 under Dielectric Layer Parameters. Type 0.635 in the edit box in the Thickness column and type 9.8 in the edit box below the er column. Type 0.001 in the edit box below the Loss Tangent column and type 4 in the edit box below the View Scale column (this expands the 3D view for this layer to four times its normal thickness). Select Layer 3 (if present) and click the Delete button.
TIP:
7-4
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
In EMSight, the boundary conditions for the sidewalls of the enclosure are always perfect conductors and cannot be modified. Third-party simulators may make other assumptions for the sidewall boundary conditions-- for details, see the vendor documentation for the solver used. The boundary conditions for the top and bottom of the enclosure have default perfect conductors, but they can be modified. You do not modify the default boundary conditions in this example. To view the boundary conditions: 1 2 Click the Boundaries tab in the Substrate Information dialog box. Click OK to complete the enclosure set up procedure.
7-5
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
7-6
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
4 5
Type 0 as the value of x and 2.2 as the value of y, and then click OK . Press the Tab key again to display the Enter Coordinates dialog box. Ensure that the Re (relative) check box is selected, type 2.2 as the value of dx, and 0.6 as the value of dy, and then click OK . A rectangular conductor displays in the EM structure window.
To draw a second rectangular conductor: 6 7 Choose Draw > Add Rect Conductor. Move the cursor into the Interdigital Filter window, and press the Tab key. The Enter Coordinates dialog box displays. Type 4 as the value of x and 2 as the value of y, and then click OK .
7-7
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Press the Tab key again to display the Enter Coordinates dialog box. Type 1.2 as the value of dx and 7.2 as the value of dy, and then click OK . A second rectangular conductor displays in the EM structure window.
To move the second rectangular conductor next to the first conductor: 9 Click the second rectangular conductor. Squares display at the rectangles corners.
10 Slide the cursor over the selected conductor until the cursor displays as a cross. 11 Click and hold down the mouse button. A dx, dy readout displays in the window, as shown in the following figure.
7-8
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
TIP:
Click the Ruler button on the toolbar to measure the dimension of conductors, offsets, or spaces in an EM structure layout. 12 Drag the cursor until the dx, dy readout displays dx:-2 and dy:-1, then release the button to place the rectangle.
Adding Vias
Vias are interconnects between substrate layers. You must add a via to ground one side of the larger conductor to the bottom of the enclosure. To add a via: 1 2 Choose Draw > Add Via . Move the cursor into the Interdigital Filter window and press the Tab key. The Enter Coordinates dialog box displays. Type 2.4 as the value of x and 1.2 as the value of y, and then click OK . Press the Tab key again to display the Enter Coordinates dialog box. Type 0.4 as the value of dx and 0.8 as the value of dy, and then click OK . A via displays in the Interdigital Filter window, with blue squares in its corners to show that it is selected.
7-9
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
4 5 6 7
Choose Edit > Copy, then choose Edit > Paste. Move the mouse into the EM structure window. An outline of the copied via displays. Right-click once to rotate the via. Press the Tab key to display the Enter Coordinates dialog box. Deselect Re to activate absolute coordinates. Type 2.2 as the x value and 1.8 as the y value, and then click OK . The new EM structure displays as follows.
7-10
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
TIP:
7-11
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Position the cursor to the left edge of the small conductor until the outline of a square displays, and click to place the port. A small box with the number 1 (indicating port 1) displays at the left edge of the conductor.
To subtract (de-embed) an amount of electrical length from the simulation results, the reference plane for the port must be moved away from the edge of the box. To de-embed 1mm of electrical length on port 1: 4 5 Right-click in the EM structure window and choose View Area . With the cursor displayed as a magnifying glass, click and drag the cursor around port 1 and the small conductor. The window zooms in on the selected area. Click port 1. Four squares display at its corners. Slide the mouse over the edge of the port until the cursor displays as a double arrow.
6 7
7-12
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
8 9
Click and hold down the mouse button to display a dx or dy readout. Drag the cursor to the right until the dx, dy readout displays dx:1. Release the mouse button to place the de-embedding line.
7-13
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
3 4 TIP:
Clear the Use project defaults check box to give local frequency settings precedence over global project frequency settings. Ensure that GHz displays in Data Entry Units.
Project Options
You can define the simulation frequency globally (by choosing Options > and clicking the Frequencies tab) or locally using these steps. It is best to use the local frequency settings for EM structures as you typically want to sweep EM structures with fewer frequency points than with linear circuits. Data is obtained at the project frequencies using interpolation and/or extrapolation.
Apply
Specify the Start, Stop and Step values shown in the following figure, click to display the values in Current Range, and then click OK .
7-14
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
2 3
Click OK to close the dialog box. Choose Simulate > Analyze. A dialog displays to indicate the simulation progress. The progress bar(s) and text are controlled by the electromagnetic simulator, so the details of the steps in the analysis may vary. (EMSight) AWR has unique technology that allows very large problems to be simulated even in limited computer RAM without sacrificing simulation time.
TIP:
7-15
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Right-click the EM Graph 1 graph in the Project Browser, and choose The Add Measurement dialog box displays. Create a measurement using the settings in the following figure, then click
Choose Simulate > Analyze. The simulation response in the following graph displays. The measurement indicates that the resonant frequency is near 4 GHz.
7-16
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
EM Graph 1
-0.05
-0.1
To determine a more precise measurement of the resonant frequency, you must change the frequency range and step size of the simulation.
7-17
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
EM Graph 1
-0.1
-0.2
-0.3
7-18
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
3.635
To display the electric field: 3 Choose Animate > E-Field Settings. The E-Field Computation dialog box displays.
4 5
Select the Layer 2 check box and click OK . In the Project Browser, right-click the Interdigital Filter under EM and choose Force ReSimulation . Click Yes in the Force Resimulation Confirmation dialog box that displays.
Structures
6 7 8 TIP:
Choose Simulate > Analyze. Choose Animate > Animate Play. The animated currents in the 3D view display in the workspace. Choose Animate > Animate Stop to turn off the animation. This animation illustration may vary depending upon your computer configuration.
7-19
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
To turn off the electric field computations: 9 Choose Animate > E-Field Settings. The E-Field Computation dialog box displays.
7-20
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
To add the small conductor on the end of the input resonator: 1 2 3 4 5 Click the Interdigital Filter window to make it active. With your cursor in the window, right-click and choose View All . Choose Draw > Add Rect Conductor. Press the Tab key to display the Enter Coordinates dialog box. Type 2 as the x value and 8.2 as the y value, then click OK . Press the Tab key again to display the Enter Coordinates dialog box. Select the Re check box to change the relative coordinates. Type -0.4 as the dx value and -0.2 as the dy value, then click OK . A rectangular conductor displays in the EM structure window.
To draw the output resonator: 6 7 8 Choose Edit > Select All . Choose Edit > Copy, and then choose Edit > Paste. An outline of the input resonator displays. Move the cursor to place the outline of the copied instance directly on top of the original input resonator, and click. The newly created instance is still selected, as shown in the following figure.
7-21
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
10 Move the cursor into the middle of the EM structure window. Click, and drag the cursor down, then release the mouse button. The selected instance flips as follows. Leave the flipped instance selected.
You must move the flipped instance to align the output line with the edge of the structure. To move the flipped instance: 11 Move the cursor over the selected instance until the cursor displays as a cross. 12 Click, and drag the outline of the instance until the output line aligns with the edge of the structure as follows, then release the mouse button.
7-22
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
output line
edge of structure
To create the middle resonator: 13 Click near the top left corner of the left-most resonator, and holding the mouse button down, drag the cursor down and to the right so the dashed box encompasses the resonator, and then release the mouse button. The large conductor and the two vias are selected.
14 Choose Edit > Copy, then choose Edit > Paste. An outline of the copied instance displays. 15 Move the cursor to the middle of the EM structure window to move the copied instance to the middle of the window, then right-click twice to rotate the instance 180-degrees.
7-23
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
16 Press the Tab key to display the Enter Coordinates dialog box. 17 Deselect Re to change the relative coordinates. Type 5.6 as the x value and 9.2 as the y value, and then click OK . The EM Structure displays as follows.
7-24
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Adding a Port
To complete the EM structure, you must add a port to the output line. To add a port to the output line and de-embed 1mm of electrical length: 1 TIP: 2 3 Click the rightmost conductor in the EM structure window. Choose View > Zoom In once or twice to magnify the view for the following steps. Choose Draw > Add Edge Port . Position the cursor on the right edge of the conductor until the outline of a square displays, and click to place the port. A small box with the number 2 (indicating port 2) displays at the right edge of the conductor. Right-click in the EM structure window and choose View Area . With the cursor displayed as a magnifying glass, click and drag the cursor around port 2 and the small conductor. The window zooms in on the selected area. Click port 2. Four squares display at its corners. Move the cursor over the edge of the port until it displays as a double arrow. Click and hold down the mouse button to display a dx or dy readout. Drag the cursor to the left until the dx, dy readout displays dx:-1. Release the mouse button to place the de-embedding line. The final layout is shown in the following figure.
4 5
6 7 8 9
7-25
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
7-26
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Choose Simulate > Analyze. The final simulation response on the following graph displays.
DB(|S(1,1)|) Interdigital FIlter DB(|S(2,1)|) Interdigital FIlter
-20
EM Graph 1
-40
-60
7-27
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
Create a new schematic (choose Project > Add Schematic > New or click the New Schematic button on the toolbar) named Schematic using EM. Click the SUB button on the toolbar or choose Draw > Add Subcircuit to add a subcircuit. A window displays with the EM structure name highlighted.
3 4
Click OK . Drag the mouse into the schematic and click to place the subcircuit. Add two ports (click the Port button on the toolbar) to the subcircuit as shown in the following figure.
Right-click the Schematic using EM schematic in the Project Browser and choose Options. Click the Frequencies tab and clear the Use Project defaults check box. Type 3 in Start , type 5 in Stop, and type 0.01 in Step. Click Apply, and then click OK. Add a rectangular graph named EM Graph 2 . With the EM Graph 2 window active, click the Add Measurement button on the toolbar and add a measurement to the graph as shown in the following figure. Click Apply.
7-28
MWO/VSS 2004
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
10 In the Add Measurement window, change To Port Index to 2 and click OK . 11 Click the Analyze button on the toolbar to simulate the schematic and compare the two graphs. 12 Save your work by choosing File > Save Project .
7-29
MWO: USING THE ELECTROMA GNETIC SIMULATOR Creating a Distributed Interdigital Filter
7-30
MWO/VSS 2004
...................................
VSS:
This chapter provides a brief outline of the theory behind the Visual System Simulator (VSS), and includes a procedure for a simple amplitude modulation to demonstrate how a simulation is performed in VSS. The first section describes the basic philosophy of the simulator, and the example describes use of several key VSS features.
.....
Data Types
All VSS blocks have input and output nodes which handle (and operate on) data belonging to one of four basic data types: Digital, Real, Complex, or Unset. Each VSS block node color corresponds to its data type: green for Digital, yellow for Real, red for Complex, and white for an Unset data type. Unset nodes indicate the block supports two or more data types. You can double-click an unset node to redefine it as a specific node type. For example, ADD, an n-input adder (located in the Element Browser under System Blocks in the Math Tools > Adders category) has Unset nodes by default, signifying that it adds the data coming into its nodes and provides the sum at its output node regardless of the data type. Another example is the behavioral amplifier AMP_B (located in the Element Browser under System Blocks in the RF Blocks > Amplifiers category), which also has its ports unset. The amplifier block supports both real and complex signals, but does not support digital signals. Digital data types comprise streams of digital data with abrupt transitions (such as a pseudo-random sequence of bits generated by a source to perform a
G e t t i n g S t a r t e d G u i d e 8-1
Monte-Carlo simulation of a digital communication system). Real data refers to any real waveform observed in communication systems, for example, sinusoids, real passband noise, or possibly a sawtooth waveform. You can use these two data types to represent any waveform encountered in natural system design. Complex data deserves more attention because it is a compact way to represent complex baseband data (with frequency content concentrated around DC, as required by modern communication systems), as well as real passband waveforms via the Complex Envelope (CE) signal representation.
8-2
MWO/VSS 2004
5 Gsamples/sec. It is obvious how the two different approaches can result in a simulation speed difference of three orders of magnitude! VSS utilizes the CE representation of signals whenever possible to gain the tremendous advantage in simulation speed discussed here, without compromising simulation accuracy. Specifically, a real passband signal x ( t ) , representing a narrowband modulation centered about a high frequency sinusoidal carrier with frequency f c is mathematically represented as:
x ( t ) = x c ( t ) cos 2f c t x s ( t ) sin 2f c t ,
where x c ( t ) and x s ( t ) are real lowpass signals, with bandwidth much smaller than the carrier frequency f c , and are called the in-phase and quadrature components of the real passband signal x ( t ) . The signal can be represented by its Complex Envelope (CE) form c ( t ) , where:
x ( t ) = Re { c ( t ) e
j2f c t
},
VSS utilizes the CE lowpass equivalent signal c ( t ) wherever possible to allow for orders-of-magnitude-faster narrowband simulation. To this end, each signal at any point in the simulation has a sampling frequency, and a center frequency tag associated with it. For example, a plain tone at frequency 2 GHz for which the real passband signal is x ( t ) = cos 2f c t , can be easily generated using the SINE block (located under System Blocks in the Sources > Waveforms category) with its output node set to complex and represented in CE form: by leaving the center frequency (CTRFRQ) empty and setting frequency (FRQ) to 2GHz resulting in c ( t ) = 1.0 + j 0.0 bearing a center frequency tag of 2 GHz, or by having a center frequency (CTRFRQ) of, for example, 1 GHz and frequency (FRQ) of 5 GHz, in which case c ( t ) = exp ( j2 ( FRQ CTRFRQ )t ) bears a center frequency tag of 1 GHz, or by having a center frequency (CTRFRQ) of 0 and a FRQ of 2 GHz, in which case c ( t ) = exp ( j2 2e9 t ) bears a center frequency tag of 0.
When working with RF tones, the TONE block, located under System Blocks in the RF Blocks > Sources category, is preferred, as all frequencies are specified in absolute frequency and power is specified in dB/dBm. All of these CE forms show the same spectrum plot (the 2 GHz tone corresponding to the real passband signal x ( t ) = cos 2f c t ), although the time
G e t t i n g S t a r t e d G u i d e 8-3
domain waveform generated by VSS is internally different. The center frequency tag is a parameter propagated implicitly, but internally the signal is modeled as a CE lowpass equivalent. As another example, the GSM signal previously discussed would also be in CE lowpass equivalent form in VSS; a sequence of complex numbers sampled at 5 MHz and bearing only a center frequency tag of 1.9 GHz, and not a series of real samples taken at a rate of 5 Gsamples/sec. Of course, if the latter more cumbersome approach is desired, VSS provides the capability to switch any signal to real passband representation via the CE-to-Real block (CE2R) located under System Blocks in the Converters > Complex Envelope category. Note that VSS treats complex signals depending on their context, their center frequency, and the block performing the operation. For example, blocks found under the System Blocks Math Tools > Math Functions category simply perform standard complex arithmetic on their input complex signals, treating them as ordinary complex numbers. Modulation mapper and detection blocks in the Modulation category treat the series of complex samples as baseband I/Q symbols. Blocks designed to operate on RF signals, such as those in the Filters or RF Blocks categories treat complex signals with non-zero center frequency as CE representations of a real signal centered around a carrier at the center frequency. When the center frequency is 0, by default the RF amplifier, RF mixer and circuit filter blocks treat the complex signal as a pair of real signals representing separate I and Q channels.
f f f c --s, f c + --s , 2 2 where f c is the center frequency of the signal, and f s is the sampling frequency.
Therefore, to examine the frequency content (for example, the Adjacent Channel Power Ratio, or ACPR) of the previous GSM signal at a frequency offset of 30 MHz from the 1.9 GHz carrier (the signals center frequency tag), you must make sure the sampling frequency is at least f s 60 MHz, so that the signal exists between 1.87 GHz and 1.93 GHz, or [ f c ( f s 2 ), f c + ( f s 2 ) ] .
8-4
MWO/VSS 2004
Because VSS is geared towards digital communication applications, many of its blocks (and the entire system diagram) have Data Rate and Oversampling associated with them. The Data Rate is the number of digital communication symbols per second. Inside a VSS system diagram the default data rate is denoted _DRATE. A symbol can differ in meaning, depending on the modulation specifics. For example, for the previous GSM, the symbol rate or data rate is set by the standard as 270.833 ksymbols/sec, and since in this case every symbol is one bit, it translates to 270.833 kbits/sec. To simulate a satellite link using Quadrature Phase Shift Keying (QPSK) modulation to transmit 100 Mbits/sec, you set the symbol rate (or data rate) of the QPSK source block to 50 Msymbols/sec (because each QPSK symbol corresponds to 2 bits). The QPSK_SRC block is found under the System Blocks Modulation > QPSK category. Each of these symbols can be represented with any number of samples (oversampling). Inside a VSS system diagram the default number of samples per symbol is denoted _SMPSYM. For the QPSK example, you can have 10 samples per symbol, which is a total sampling frequency of:
f s = ( DataRate ) ( Oversampling ) = 500 MHz.
As previously explained, if the center frequency tag of this QPSK signal is 5 GHz, the signal will exist for 250 MHz on either side of the 5 GHz carrier (from 4.75 GHz to 5.25 GHz). For digital communications, the data rate and oversampling values, and the center frequency tag of each signal are important. You can set these values on the Simulator tab of the System Simulator Options dialog box (as shown in the following example) or in the source blocks in the simulation (usually at the beginning of a simulated chain) and they are subsequently propagated along any constructed simulation chain. At any point in the system diagram you can use the System Tools FRQ_PROP measurement to check the propagated parameters. Most of the blocks that have either a DRATE or SMPFRQ parameter have a default value of empty for these parameters. When the value is empty, the blocks will automatically determine their data rate or sampling frequency. If a downstream block somehow specifies the sampling frequency, either directly or due to other blocks connected to it, that value is used. Otherwise, the rate is determined from the default settings from the Options dialog box of a system diagram.
G e t t i n g S t a r t e d G u i d e 8-5
Parameter Propagation
An important VSS feature for increasing ease of use is Parameter propagation, introduced briefly when previously discussing propagation of the sampling frequency and the center frequency by all VSS blocks to other blocks further downstream in the simulation chain. This procedure of parameter propagation is bidirectional, and also occurs from the end to the beginning of a simulation chain. In VSS, the forward and backward parameter propagation occurs for a variety of parameters, a small set of which are center frequency, sampling frequency, oversampling, signal and noise levels, and delay and phase distortion. For example, you can place a QPSK transmitter inside a system diagram, configure it for the properties of the specific transmission scenario (data rate, pulse shaping, power, etc.), and not repeat the corresponding settings in a receiver block. This is done automatically via parameter propagation by the simulator at the start-up phase of each simulation. Even more impressively, you can place an amplifier block and/or a filter somewhere in the simulation chain between the transmitter and receiver, and then not need to adjust the signal arriving at the receiver for delay and phase rotation introduced by the filter, or for gain introduced by the amplifier. All of these parameters are automatically propagated forward by the simulator, thus allowing the receiver block to adjust the received signal for them. As a result, even the first time, you can set up and run a relatively involved BER simulation of a transmitter/receiver chain in just a few minutes. The details of parameter propagation for each individual block are explained in the block Help. For instance, an amplifier doesnt alter the propagated value of the center frequency tag at its input, but does alter the propagated signal and noise levels, according to its gain (and possibly noise figure). A mixer block with a center frequency f m, c arriving at its input node, and a center frequency f LO, c arriving at its LO node propagates as a center frequency either the sum f m, c + f LO, c (if it is in up-conversion mode) or the difference f m, c f LO, c (if it is in down-conversion mode). A filter block increases the propagated value of delay at its output by adding to the propagated delay at its input the amount of delay it introduces itself to the signal.
8-6
MWO/VSS 2004
AM-MODULATION EXAMPLE
In this example a sinusoidal data signal with a frequency of 2 GHz is modulated onto a sinusoid carrier of 40 GHz. AM modulation is described as:
X AM ( t ) = C [ A + m ( t ) ] cos c t
where m(t) is the message data signal; a sinusoidal signal of frequency 2 GHz given by:
m ( t ) = B cos t
A represents the DC level of the message signal and B and C represent the amplitudes of the carrier and the message signal respectively. The procedures in this example include: Creating a project Setting default system settings Creating a system diagram Placing blocks in the system diagram Specifying System Simulator options Adding graphs and measurements Running the simulation and analyzing the results
Creating a Project
The first step in building and simulating your designs is to create a project. You use a project to organize and manage related designs, and everything associated with them, in a tree-like directory structure. The example you create in this chapter is available in its complete form as AM.emp in your Program Files\AWR\AWR2004\Examples\Getting Started\VSS\AM directory. You can use this example file as a reference. To create a project: 1 Start VSS if not already started. To start VSS, click Start on your desktop, choose Programs > AWR Suite 2004 > AWR Design Environment , or double-click the corresponding shortcut on your desktop. For information on installing, setting up shortcuts and starting VSS, see Installing MWO/ VSS on page 2-1.
G e t t i n g S t a r t e d G u i d e 8-7
2 3 4
Choose File > New Project. Choose File > Save Project As. The Save As dialog box displays. Navigate to the directory in which you want to save the project, type AM as the project name, and then click Save. The project name displays in the title bar.
8-8
MWO/VSS 2004
Type AM , and click OK . A system diagram window displays in the workspace and the AM system diagram displays under System Diagrams in the Project Browser.
G e t t i n g S t a r t e d G u i d e 8-9
TIP:
You can view the full name of a system block before dragging it to the system diagram by simply moving the mouse over the block or right-clicking on it and then selecting Show Details. 5 Expand the Sources category, then click the Waveforms subgroup. Select the SINE block and place it as shown in the following figure.
8-10
MWO/VSS 2004
TIP: 6 7 8 TIP: 9
Before clicking to position a block, you can rotate the block by rightclicking on it. Expand the Math Tools category, then click the Adders subgroup. Select the ADD block and place it as shown in the following figure. Expand the Modulation category, then click the Analog subgroup. Select the AM_MOD block and place it as shown in the following figure.
> Paste .
Select the SINE block in the system diagram. Choose Edit > Copy then Edit Place the duplicated block as shown in the following figure. To save the file choose File > Save Project.
To connect the system blocks and add Test Points: 1 2 3 Place the cursor over the node of the SRC_R block. The cursor displays as a wire coil symbol. Click and drag the displayed wire to input node 2 of the ADD block, then click to place the wire. Repeat steps 1 and 2 to complete the connections shown in the following figure.
G e t t i n g S t a r t e d G u i d e 8-11
SINE ID=A1 FRQ=1 GHz AMPL=1 PHS=0 Deg CTRFRQ= SMPFRQ= ADD ID=A3 PRIMINP=0 NIN=2
1 3 1 2 2
From the system block list click the Meters category. Individually select three Test Points (TP) and place them as shown in the following figure. You can also click the Add Test Point button on the toolbar. While placing the test points, right-click to rotate them as needed. The simulation results can be displayed at these test points.
SINE ID=A1 FRQ=1 GHz AMPL=1 PHS=0 Deg CTRFRQ= SMPFRQ= ADD ID=A3 PRIMINP=0 NIN=2
1 3 1 2 2
TP ID=TP2
TP ID=TP1
TP ID=TP3
8-12
MWO/VSS 2004
TIP:
You can also connect blocks by moving them to snap their nodes together. When they are properly connected a small green square displays and the connection wire extends if you move either block. If you do not see the green square, try to drag one of the block into place again.
EDITING BLOCK PARAMETERS
To edit block parameters: 1 2 In the system diagram, double-click the SINE block connected to the ADD block. The Element Option dialog box displays. Click Show Secondary to display the secondary parameters. Edit the parameters to the values shown in the following figure, then click OK .
Double-click the SINE block connected to the AM_MOD block. If the secondary parameters are not visible, click Show Secondary. Change the FRQ parameter to 40 , the AMPL parameter to 3 , the CTRFRQ parameter to 0 , and the SMPSYM parameter to 10 , then click OK . Double-click the SRC_R block and change the SMPSYM parameter to 10 , then click OK . Double-click the AM_MOD block and change the MODIDX parameter to 2 , then click OK . You can also simply double-click the parameter value displayed on the system diagram to modify a single parameter.
4 5
TIP:
G e t t i n g S t a r t e d G u i d e 8-13
Click the Simulator tab, and under Sampling Frequencies/Data Rates select Data rate in the first drop-down text box, and Oversampling in the second drop-down text box. Type 1 GHz as the Data rate and 160 as the Oversampling value, then click OK . Note the options under Sampling Frequencies/Data Rates that define the system sampling rate. Data rate, symbol period, time step, sampling frequency and oversampling rate are all interrelated. You can use various pairs of these settings to specify the overall settings.
8-14
MWO/VSS 2004
2 3
Graph
Right-click Graphs and choose Add Graph. You can also click the New button on the toolbar. The Create Graph dialog box displays.
Type Amplitude Mod in Graph Name, select Rectangular as the Graph and click OK . The graph displays in a window in the workspace and displays as a subgroup of Graphs in the Project Browser.
Type ,
Adding a Measurement
To add a measurement to the graph: 1 Right-click the Amplitude Mod graph in the Project Browser, and choose The Add Measurement dialog box displays. You can also click the Add Measurement button on the toolbar.
Add Measurement.
2 3
For measurement type, select System under Meas. Type and select WVFM under Measurement . Type 2 as the Time Span and select ns as the Units and select Real as
Complex Modifier.
G e t t i n g S t a r t e d G u i d e 8-15
Ensure that Test Point is TP.TP1 , then click Apply. The AM:Re(WVFM(TP.TP1,2,6,1)) measurement displays under the Amplitude Mod graph in the Project Browser.
5 6 TIP:
Select TP.TP2 in Test Point, then click Apply. Select TP.TP3 in Test Point, then click OK . You can custom name a test point by double-clicking its ID number.
8-16
MWO/VSS 2004
Amplitude Mod
998.438
999.438
999.938
2 3
Choose File > Save Project to save the project. Choose File > Close Project to close the project.
G e t t i n g S t a r t e d G u i d e 8-17
8-18
MWO/VSS 2004
VSS:
END-TO-END SYSTEM
............................
This chapter illustrates the signal and noise power relationship in an end-to-end communication link system. The goal of an end-to-end link analysis is to measure how often a transmitted bit is received in error (BER). Sometimes it is preferable to deal with symbols (a bit or group of bits encoded in a signal). In this example you evaluate the link error rate for a basic QAM transmission. You also analyze how often bits (BER) or symbols are received in error (SER), and the effect of signal-tonoise (SNR) on BER and SER.
.....
The procedures in this example include: Creating a QAM project and system diagram Creating graphs and analyzing BER and SER Tuning the system parameters.
9-1
6 7
9-2
MWO/VSS 2004
Click the Add Test Point button on the toolbar and add a Test Point (TP) between the QAM_TX and AWGN blocks. Add another Test Point (TP) at the output of the RCVR block as shown in the following figure. Connect the blocks and test points as shown in the following figure.
QAM_TX ID=A2 M=16 OUTLVL=0 OLVLTYP=Bit Energy (dB) RND_D SYMRATE= ID=A4 CTRFRQ=0 GHz M=2 PLSTYP=Rectangular RATE=1/_TFRAME ALPHA=0.35 RNG=Auto PLSLN=
TP ID=TP1
RCVR ID=A3
D IQ
2 3
TP ID=TP2
10 Double-click the RND_D block in the system diagram and verify that the M parameter is 2 . Because M = 2, RND_D is set by default to generate a digital signal that varies between 0 and 1. Leave all other secondary parameters at their default settings.
11 Double-click the QAM_TX block and change the parameters as shown in the following figure.
9-3
In this dialog box you can control several parameters as well as the pulse shaping filter used on the in-phase and quadrature-phase signals. 12 RCVR automatically adjusts its parameters to agree with the transmitter parameters, so maintain the default settings. 13 Choose Options > Default System Options. The System Simulator Options dialog box displays. Verify that your settings match those in the following figure, then click OK .
9-4
MWO/VSS 2004
2 3 4 5 6 7 8
In the Project Browser, right-click Complexbaseband and choose Add The Add Measurement dialog box displays.
Select System as the Meas. Type and select WVFM as the Measurement. Select TP. TP1 as the Test Point , and ensure that Time Span is 10 and Units is Symbols , then click OK. In the Project Browser, right-click Receiver Constellation and choose
Add Measurement .
Create an IQ measurement using the settings in the following figure, then click OK .
9-5
10
2.5
Receiver Constellation
IQ(TP.TP2,50,1,0) QAM
1.5
0.5
-5
-0.5
-10 102056 102061 102066 102071 102076 102081 102086 102091 102096 Time (ns)
-1.5
The received constellation does not appear as expected because the power spectral density of the noise source is set to 0 dB. Note that the time waveform of the complex baseband signal does not show eight samples per symbol as specified in the System Simulator Options dialog box. 2 3 4 Select the Complexbaseband graph window and click the Properties button on the toolbar. The Rectangular Plot Properties dialog box displays. Click the Traces tab. Using the drop-down symbol and line selectors, specify a triangle as the symbol and a solid line as the line style, as shown in the following figure. (The lines will display on the Complexbaseband waveform).
9-6
MWO/VSS 2004
5 6 7
Under Symbol , clear the Auto interval check box, change the Interval value to 1 and click OK . On the system diagram, double-click the AWGN block and change the PWR parameter to -30 dB, then click OK . Start the simulation, let it run for about 10 seconds, and then stop the simulation. Notice how the scatter plot changes. The simulation responses in the following graphs should display. On the Complexbaseband graph the triangular symbols display on the waveform. There are now eight samples per symbol. You can choose Options > Default System Options to return to the System Simulator Options dialog box and change the values under Sampling Frequencies/Data Rates to observe the different results.
9-7
10
Complexbaseband
1
Re(WVFM(TP.TP1,10,1,1)) QAM
Receiver Constellation
IQ(TP.TP2,50,1,0) QAM
0.5
0
-5
-10 276456 276461 276466 276471 276476 276481 276486 276491 276496 Time (ns)
-0.5
-1 -1 -0.5 0 0.5 1
Note that your graphs may not look identical to these examples due to printed size limitations. TIP: Click the Properties button on the toolbar to edit the appearance of any graph, or right-click in the graph to zoom in and zoom out. 8 Choose File > Save Project to save your project.
9-8
MWO/VSS 2004
To start the simulation, click the Run/Stop System Simulators button on the toolbar, then click the Tune button on the toolbar. The Variable Tuner dialog box displays.
Max value
Min value
To observe the impact of the noise level, set the Max and Min values to 0 and -50 respectively. Click the tuning bar and slide it to adjust the values while observing the results on the constellation graph. Click the x at the upper right of the Variable Tuner dialog box to close it. Stop the simulation by clicking the Run/Stop System Simulators button on the toolbar. To de-tune the PWR parameter of the AWGN block, click the Tune Tool button on the toolbar and then click the PWR parameter value again. The parameter value displays in black. To disengage the Tune Tool, click anywhere in the design area.
7 8 9
9-9
raising the signal level as the variable is stepped. In this case, the AWGN power parameter is set to 0 db and the simulation is set up to increase the transmitter power. To create a BER simulation: 1 2 3 4 5 6 Click the system diagram window to make it active. Choose Draw > Add Equation and move the cursor into the system diagram window. An edit box displays. Position the edit box at the top of the system diagram and click to place it. Type Eb_NO = sweep (stepped(0,10, 1)) (without the quotes) in the edit box, and then click outside of the box. Double-click the QAM_TX block and verify that the OUTLVL parameter is Eb_NO, and the OLVLTYP parameter is Bit Energy (dB) , then click OK. In the Element Browser under System Blocks, expand the Meters category and click the BER subgroup. Select the BER block (internal reference source) and place it to the right of the RCVR block in the system diagram. Connect the BER block to the D node of the RCVR block. Double-click the BER block. Click Show Secondary to view the secondary parameters. Edit the parameters to the values shown in the following figure, then click OK.
7 8
9-10
MWO/VSS 2004
The BER block is now set to test 1e7 (MXTRL * TBLKSZ) bits. It registers 25 errors before a BER computation is generated for each value of Eb_NO. The BER block internally generates the original data source and compares the received bits to the transmitted bits. The last point on the BER curve (the 11th value of Eb_NO) takes the longest to plot. 9 To add a BER plot to the project, add a rectangular graph named BER . 10 In the Project Browser, right-click BER and choose Add Measurement. 11 Create a BER measurement using the settings in the following figure, then click Apply to save the measurement.
12 To verify the obtained results with the theoretical results, add another measurement to the BER graph using the settings in the following figure, then click OK .
9-11
13 Verify that the PWR parameter value of the AWGN block is 0dB. 14 Select the BER graph window, then click the Properties button on the toolbar. 15 Click the Axes tab and set Left1 to Log scale by selecting Left1 under Choose Axis and selecting the Log Scale check box, then click OK . 16 Click the Run/Stop System Simulators button on the toolbar to start the simulation. As the simulation runs, the BER curve is generated. Note that the size of the received constellation becomes clearer as the power is increased or, as Eb_NO is swept from 0 dB to 10 dB.
9-12
MWO/VSS 2004
The simulation stops when 25 errors are counted at Eb_NO = 10dB. The simulation response in the following graph should display.
BER
BER(BER.BER1,0,0) QAM_BERREF(BER.BER1,0,0)
.1
.01
.001 0 1 2 3 4 5 6 7 8 9 10
In this example the signal power was swept to plot the BER. You can sweep the noise power, keeping the signal power constant. Change the PWR parameter of the AWGN block to -Eb_NO and the OUTLVL parameter of the QAM_TX block to 0 to get the same BER curve achieved here. 17 Choose File > Save Project . 18 Similar to the BER version, you can create a SER vs Eb/N0 graph. In the Project Browser, click QAM under System Diagrams. Drag and drop the QAM icon onto the System Diagrams node. A Copy of QAM system diagram is created under System Diagrams. 19 Click the Copy of QAM window to make it active, then delete the BER block. 20 In the Element Browser, expand the Meters category, then click the BER subgroup. Select the SER block, drag it to the Copy of QAM system diagram, and connect it to the D node of the RCVR block. 21 Add a rectangular graph named SER to the project. 22 Add a measurement to the SER graph using the settings in the following figure.
9-13
23 Add another measurement to the SER graph using the settings in the following figure.
24 Select the SER graph window, then click the Properties button on the toolbar. 25 Click the Axes tab and set Left1 to Log scale by selecting Left1 under Choose Axis and selecting the Log Scale check box, then click OK .
9-14
MWO/VSS 2004
26 Click the Run/Stop System Simulators button on the toolbar to start the simulation. As the simulation runs, the SER curve is generated. The simulation response in the following graph should display.
SER
.1
.01
.001 0 1 2 3 4 5 6 7 8 9 10
You can also plot BER and SER against Es/N0 by specifying Es/N0 as the SWPTYP parameter in BER and SER blocks.
In the Project Browser select the BER graph, right-click and choose A new table (graph) named Copy of BER displays under Graphs.
9-15
To change the numerical precision of the table, select the Copy of BER, graph window and click the Properties button on the toolbar. Make any desired changes in the Tabular Graph Format dialog box, then click OK . Choose File > Save Project .
9-16
MWO/VSS 2004
...................................
VSS:
10
The circuit simulation capabilities of Microwave Office (MWO) and Visual System Simulator (VSS) provide a unique environment in which to measure the impact of RF components on system performance. Measurements you can make include, for example, the impact of phase noise on BER, spectral regrowth due to the non-linearities of an amplifier, and the impact of filter characteristics on BER. This exercise presents features of the VSS environment and demonstrates its integration with the MWO circuit simulation environment. You add an actual MWO filter circuit to the QAM system that you built in the previous example, and then you measure the impact of the filter on BER performance as you change filter parameters. The procedures in this example include: Importing an MWO ideal filter circuit to the system project Approximating the filter response before including it in the simulation Changing filter parameters and monitoring the impact on BER performance Creating a power spectral density plot.
Open your QAM project if it is not already open. (Choose File > Open and select the directory in which you saved QAM.emp). If you did not build this project, you can get the project file from the Program Files\AWR\AWR2004\Examples\GettingStarted\VSS\QAM directory.
G e t t i n g S t a r t e d G u i d e 10-1
.....
10
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
In the Project Browser, right-click Circuit Schematics and choose Import Select the Ideal filter.sch schematic from the Program Files\AWR\AWR2004\Examples\Getting Started\VSS\QAM directory. The following filter schematic displays.
Schematic.
C0=0.8478 C1=1.445 C2=0.1876 C3=2.836 C4=0.1343 C5=3.144 C6=0.1489 C7=2.251 C8=0.2921 C9=0.4979 L0=1.245 L1=0.7304 L2=5.627 L3=0.3721 L4=7.86 L5=0.3357 L6=7.09 L7=0.4689 L8=3.613 L9=2.12
SRLC ID=RLC10 R=1.112e-10 Ohm L=L8 nH C=C8 pF PORT P=2 Z=50 Ohm
Specify the Start, Stop and Step values shown in the following figure, click to display the values in Current Range, and then click OK .
10-2
MWO/VSS 2004
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
3 4 5
Right-click System Diagrams and choose New System Diagram to add a diagram named Filter Test . Click the Filter Test window in the workspace to make it active. In the Element Browser, expand the Filters category, then click the subgroup. Select the BPFB block and place it on the system diagram as shown in the following figure.
Bandpass
Expand the RF Blocks category, then the Linear Filters category, then click the Simulation Based subgroup. Select the LIN_S block and place it on the system diagram as shown in the following figure. Expand the Meters category, then click the Network Analyzers subgroup. Select the VNA_SS block, place it on the system diagram, and connect it across the BPFB block as shown in the following figure. Repeat step 7 to connect a VNA_SS block across the LIN_S block as shown in the following figure.
G e t t i n g S t a r t e d G u i d e 10-3
10
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
SRC
MEAS
SRC
MEAS
In the BPFB block, set the N parameter to 10 , the FP1 parameter to 4 GHz, and the FP2 parameter to 6 GHz.
10 In both of the VNA_SS blocks set the FSTART parameter to 1 and the FSTOP parameter to 10 GHz. 11 In the LIN_S block set the parameters as shown in the following figure.
12 Create a rectangular graph named Ideal Filter Response and add a measurement to the graph using the settings in the following figure, then click Apply.
10-4
MWO/VSS 2004
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
13 Add another measurement to the same graph using the settings in the following figure, then click OK .
14 Run both the Harmonic Balance simulator and System simulator. The simulation response in the following graph should display.
G e t t i n g S t a r t e d G u i d e 10-5
10
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
-50
-100
-150
-200
-250
15 Create another rectangular graph named Filter Response 1 and add a measurement to the graph using the settings in the following figure, then click Apply.
16 Add another measurement to the same graph except select Angle as the Complex Modifier and deselect DB as Result type, then click OK . 17 Run the System Simulator. The simulation response in the following graph should display after making some axes changes: Double-click the legend in
10-6
MWO/VSS 2004
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
the graph. In the Rectangular Plot Properties dialog box, click the Measurements tab. Under Select measurement to edit select Filter Test:(Ang(S21_SS(VNA_SS.M1))) and under Choose axis select Right 1 . Click Apply, then OK .
DB(|S21_SS(VNA_SS.M1)|) (L) Filter Test
Filter Response 1
200
-50
100
-100
-150
-100
-200
In the Element Browser, expand the RF Blocks category, then expand the category and click the Simulation Based subgroup. Select the LIN_S block and place it on the system diagram between the AWGN and RCVR blocks. Connect the blocks, moving them as necessary.
Change the LIN_S block NET parameter to Ideal filter (including quotes) as shown in the following figure, then click OK .
G e t t i n g S t a r t e d G u i d e 10-7
10
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
Add a test point at the output of the LIN_S block as shown in the following figure.
T P D I =TP 3 BE R D I = BER 1 SWPVAR = SWPT Y Auto P= OUT L= "" F MNERR= 5 2 RCVR ID= A 4
1
QAM_T X D I = A2 M= 6 1 OUT VL= E _N0 L b OLVLT YP= t Ene rgy (d B) Bi S YMRAT E= CT RQ= GHz RF 5 P ST L YP= ctan gu l ar Re A PHA 0.3 5 L = P SLN= L
Eb_ N0 = s w ep (step pe d(0 ,10,1 )) e TP ID= T P1 AW GN ID= A3 PW R= 0 PW RT YP= o Au t L OS 0 d B S= LIN_S D I = S1 NE = I d ea l fi ter" T " l N I PORT = 1 OUT PORT = 2 NOI E= F q an al ys s o nl y S re i
BER D IQ
2 3
T P D I =TP 2
10-8
MWO/VSS 2004
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
Specifying TP.TP3 for Test Point places the measurement after the LIN_S block. 3 Add another PWR_SPEC measurement with the same settings, but choose (the test point prior to the AWGN block) for Test Point , then click OK .
TP.TP1
Run the simulation. Note that the BER performance has slightly degraded. The simulation response in the following graph should display.
G e t t i n g S t a r t e d G u i d e 10-9
10
VSS: ADDING AN MWO SUBCIRCUIT TO A SYSTEM Adding an MWO Filter Circuit to the System
40
Power Spectrum
20
-20
DB(PW R_ SPEC(T P. T P3 , 1 0 0 0 ,0 , 1 0 , 0 , -1 ,0 , -1 ,1 ,0 , 0 )) (d Bm ) QAM
4.6
5.4
5.6
5.8
VSS:
11
This chapter demonstrates how to use the Microwave Office (MWO) Harmonic Balance nonlinear simulator with a Visual System Simulator (VSS) simulation. In this example you simulate an amplifier model and then measure the impact of the amplifier on the overall system. You observe the resulting power spectrum, the constellation graph, eye diagram, and the group delay. You also overlay a gain plot of the filter response with power spectral density of the transmitted signal, and analyze the simulation results. The procedures in this example include: Importing an MWO amplifier model into a system project Working with the VSS Vector Signal Analyzer block Creating plots for eye diagrams, filter response, and group delay
.....
In the Project Browser, right-click Circuit Schematics and choose Import Select the amplifier.sch schematic from the Program Files\AWR\AWR2004\Examples\Getting Started\VSS\QAM directory.
G e t t i n g S t a r t e d G u i d e 11-1
11
VSS: U SING AN MWO NONLINEAR ELEMENT IN V SS Importing an Amplifier Model into VSS
NL_AMP ID=AM1 GAIN=2 dB NF=0 dB IP2H=65 dBm IP3=65 dBm P1DB=50 dBm
In the QAM system diagram, separate the QAM_TX block and the TP1 test point and disconnect the wire between them.
11-2
MWO/VSS 2004
VSS: USING AN MWO NONLINEAR ELEMENT IN VSS Importing an Amplifier Model into VSS
In the Element Browser under System Blocks, expand the RF Blocks category, then expand the Amplifiers category and click the Simulation Based subgroup. Select the NL_S block and place it between the QAM_TX and AWGN blocks as shown in the following figure. Connect the NL_S block to the QAM_TX and AWGN blocks. Double-click the NL_S block and set its NET parameter to amplifier to reference the amplifier schematic (include the quotes), then click OK .
6 7
TP ID =TP 1 QAM_ TX ID=A 2 M=16 OUTLVL=E _N0 b OLVL TYP=Bit Ene rgy (dB) SY MRATE= CTRFRQ=5 G Hz PLSTYP=Re ctan gula r ALPHA=0. 35 PLSLN=
Eb _N0 = swe ep( step ped (0, 10,1 )) TP I D=TP 3 BER ID=B ER1 SWPVA R= SWPTYP=Aut o OUTFL ="" MNERR=25 RCV R ID=A4
1
L IN_S I D=S1 NE T="Ide al filte r" I NP RT=1 O O UTPORT=2 N OISE=Freq an alysis o nly
BER D IQ
2 3
TP ID=TP2
Start the simulation. Note that in the BER graph the X-axis now spans from 2dB to 12dB because the BER Meter with its Auto setting now picks up on the propagated signal-to-noise ratio (SNR). Recall that the gain of the amplifier is 2dB.
G e t t i n g S t a r t e d G u i d e 11-3
11
VSS: U SING AN MWO NONLINEAR ELEMENT IN V SS Importing an Amplifier Model into VSS
For information about propagated parameters such as SNR, as well as group delay and phase rotation, see the online Help for the System Tools measurements in the VSS Measurements Reference. 9 Save the project as QAM+Filter+Amp.
Connect the two ports of the VSA block to either side of the NL_S block as shown in the following figure.
VS A ID =M1
SRC
MEAS
TP I D=TP1 Q AM_ TX I D=A2 M=1 6 O U TLV L=Eb _ N0 O L VLTYP=Bit En e rgy ( dB ) S YMRA TE= C TRFR Q =5 GH z P LS TYP=Re c ta ng ula r A LP HA=0.3 5 P LS LN =
Eb_ N0 = s wee p( s te pp ed( 0 ,10 ,1 )) TP ID =TP3 BE R I D=BER 1 SW P VAR = SW P TY P=Auto O UTFL ="" MN ERR =2 5
N L_S I D=S2 N ET="amp lif ie r" N O ISE =Fr eq an alys is on ly P SW P="" FS WP =""
L IN_ S ID =S1 NE T="I de a l f ilte r" IN PO RT=1 O UTPO R T=2 NO I SE=Fr eq a n aly sis on ly
1
R CV R I D=A4
BER D IQ
2
TP I D=TP2
3 4 5
Save the project. Add a rectangular graph named AMtoAM. Add a measurement to the graph using the following settings, then click
Apply.
11-4
MWO/VSS 2004
VSS: USING AN MWO NONLINEAR ELEMENT IN VSS Importing an Amplifier Model into VSS
Add another measurement to the graph using the following settings, then click OK.
7 8
Options
In the Project Browser, right-click the amplifier schematic and choose to display the Options dialog box.
Click the Frequencies tab and set the options as shown in the following figure, then click OK .
G e t t i n g S t a r t e d G u i d e 11-5
11
VSS: U SING AN MWO NONLINEAR ELEMENT IN V SS Importing an Amplifier Model into VSS
Deselect this
Set to 5GHz
Start the harmonic balance simulation by clicking the Analyze button on the toolbar. This updates the AMtoAM graph with harmonic balance results.
10 For best graph appearance, select the AMtoAM graph window, click the Properties button on the toolbar, click the Traces tab, and change the symbol from a triangle to none. 11 Start the system simulation by clicking the Run/Stop System Simulators button on the toolbar. As the simulation runs, a marker moves along the plot that resulted from the harmonic balance simulation. The marker moves because you are sweeping the Eb_NO variable. The marker indicates the operating point of the system relative to the 1dB compression point of the amplifier. As you decrease the value of the 1dB compression point, the operating point of this system moves into the nonlinear region of the amplifier. The simulation response in the following graph should display.
11-6
MWO/VSS 2004
VSS: USING AN MWO NONLINEAR ELEMENT IN VSS Importing an Amplifier Model into VSS
60
AMtoAM(PORT_2)[1,X] (dBm ) am plifier DB(AMtoAM_INST(VSA.M1,1024,0)) (dBm ) QAM
AMtoAM
40
p1
20
For information on the LIN_S, NL_S and VSA blocks, see the online Help for the Meters and RF Blocks categories of System Blocks in the VSS System Block Catalog. Note that these examples use ideal behavioral models for the filter and amplifier. You can also use actual circuit models for the filter and amplifier.
G e t t i n g S t a r t e d G u i d e 11-7
11
VSS: U SING AN MWO NONLINEAR ELEMENT IN V SS Importing an Amplifier Model into VSS
11-8
MWO/VSS 2004
...................................
VSS:
RF BUDGET ANALYSIS
12
This chapter demonstrates how to perform RF Budget Analysis in Visual System Simulator (VSS). In this example you simulate an RF chain and analyze a Cascaded Noise Figure over Cascaded Operating gain. The procedures in this example include: Creating an RF chain Setting up measurements Performing yield analysis
.....
Creating an RF Chain
The complete example is available as RF Budget Analysis in your Program Files\AWR\AWR2004\Examples\Getting Started\VSS\RF Budget directory. You can use this example file as a reference. To create an RF chain: 1 2 3 Create a new project named RF Budget Analysis . Create a system diagram named RF Chain . Complete the system diagram as shown in the following figure. All of the system blocks are located in subgroups of the RF Blocks category. TONE is under Sources, AMP_B is under Amplifiers, RFATTEN is under Other, and MIXER_B is under Mixers.
G e t t i n g S t a r t e d G u i d e 12-1
12
TP ID=TP1
TP ID=TP2
TONE ID=A1 FRQ=1 GHz PWR=10 dBm PHS=0 Deg CTRFRQ= SMPFRQ= ZS=_Z0 Ohm T=_TAMB DegK NOISE=Freq analysis only
AMP_B ID=A2 GAIN=10 dB P1DB=10 dBm IP3= IP2= OPSAT= NF=nf dB NOISE=Freq analysis only
nf=3
MIXER_B ID=A3 MODE=Upper sideband (up converter) FCOUT= GCONV=-10 dB P1DB=10 dBm IP3=30 dBm LO2OUT=-25 dB IN2OUT=-20 dB PLO=10 dBm PLOUSE=Spur reference only PIN=-10 dBm NF=6 dB NOISE=Freq analysis only
IN
OUT
TONE ID=A4 FRQ=5 GHz PWR=10 dBm PHS=0 Deg CTRFRQ= SMPFRQ= ZS=_Z0 Ohm T=_TAMB DegK NOISE=Freq analysis only
LO
4 5 6
Add an equation to the system diagram as nf=3 . Assign nf to the NF parameter of the AMP_B block. To change the data type for AMP_B, move the cursor over the block as shown in the following figure. Double-click when a circle displays around the node. The System Node Settings window displays.
7 8 9
Select Complex as the Node data type and click OK . Add a rectangular graph named RF Budget Analysis . Add a cascaded noise figure measurement as shown in the following figure.
12-2
MWO/VSS 2004
10 Add a cascaded operating point gain measurement as shown in the following figure.
11 In the RF Budget Analysis graph properties, set the C_GP measurement to display on the Right axis. 12 Click the Analyze button on the toolbar. The simulation response shown in the following graph should display.
G e t t i n g S t a r t e d G u i d e 12-3
12
4.5
RF Budget Analysis
p2
-1.7
-8.3
-15
13 Click the Variables button on the toolbar. In the Variables dialog box, for the nf parameter select the Use Statistics check box, set Tolerance to 1 and Distribution to Uniform as shown in the following figure. If these columns do not display, right click any column heading and choose from the list that displays. Close the Variables dialog box.
12-4
MWO/VSS 2004
14 Choose Simulate > Yield Analysis. The Yield Analysis dialog box displays. Ensure that the Analysis Method is Yield Analysis. 15 Click Start to start yield analysis. The response in the following graph should display. To stop the analysis at any time click Stop.
RF Budget Analysis
DB(C_NF(TP.TP1,TP.TP2,0))[1] (L) RF Chain
4.5
5
p2
-1.7
3.5
p1: Cascaded Op. Point Gain dB Freq=0 GHz p2: Cascaded Noise Figure dB Freq=0 GHz
-8.3
p1
-15
16 To change the display of the yield data, open the graph properties window and click the Yield Data tab to specify settings.
G e t t i n g S t a r t e d G u i d e 12-5
12
12-6
MWO/VSS 2004
...................................
VSS:
VSS EXAMPLES
13
This chapter includes additional useful examples such as FSK, Phase Noise and I/Q Imbalance, End-to-End QAM system, and mixer modeling. It also includes steps for displaying measurements such as ACPR, EVM, and others.
.....
FSK EXAMPLE
In this example you build and simulate a complete transmitter-channel-receiver chain for a Binary Frequency Shift Keying (BFSK) transmission. The example shows how to generate a frequency shift keying (FSK) source using elementary blocks or a black box FSK modulator (called FSK_SRC) in VSS. It is not always necessary to construct a receiver and transmitter using elementary blocks. For many common modulation methods, corresponding black boxes already exist in VSS. This exercise, however, is intended to show that using the black box or creating one using the elementary blocks produces identical results. You will also construct an FSK demodulator using basic blocks, and verify the performance of the system by setting different parameters. For more information and application notes on FSK modulation please visit our website at http://www.appwave.com/. The procedures in this example include: Verifying the BFSK waveform generated using different methods Channel and noise scaling and system performance Monitoring the BER and sweep statistics in a text window.
G e t t i n g S t a r t e d G u i d e 13-1
13
2 3
Add a system diagram named BFSK to the project. In the Element Browser System Blocks list, expand the Modulation category, then click the FSK subgroup. Select the FSK_SRC block and place it on the system diagram. Verify that its parameters are set to the following values, then click OK .
TP ID = TP 1
13-2
MWO/VSS 2004
Add a measurement to the graph using the settings in the following figure, then click OK.
Run the simulation. The power spectrum of the FSK signal generated by the block displays as shown in the following graph.
Spectrum
DB(P W S R_ PEC(TP.TP1,1,0, 1 1 0,0,- ,0,-1,1,0,0,0))(dBm) BFS K
20
-20
-40
-60
-80 0.999996
0.999998
1 Frequency (GHz)
1.000002
1.000004
G e t t i n g S t a r t e d G u i d e 13-3
13
2 3
Double-click the RND_D block and set the RATE parameter to 1000 and the RSEED parameter to {0} (with the brackets). Expand the Converters category, then click the Analog-Digital subgroup. Select the DAC block and place it on the system diagram as shown in the following figure. Expand the Modulation category, then click the Analog subgroup. Select the FM_MOD block and place it on the system diagram as shown in the following figure. Set the FM_MOD block KF parameter to 0.707/2*1000 . Expand the Sources category, then click the Waveforms subgroup. Select the SINE block and place it on the system as shown in the following figure. Set the SINE block AMPL parameter to 5 . Leave the FRQ parameter at 1GHz. Add a second test point to the system as shown in the following figure.
5 6 7 8
13-4
MWO/VSS 2004
FSK _S RC I D=A5 MO D =2 - FSK O U TL VL =0 O L VL TYP=Bit Ene r gy ( dB ) R ATE=1 00 0 C TRFR Q=1 G Hz MO D IDX =0 .7 0 7 P LSTYP =R e cta n gu la r A LPH A=0 .3 5 L= P LSL N =
TP ID= TP1
D AC ID =A1
Add a power spectrum (PWR_SPEC) measurement at test point TP2 to the Spectrum graph.
10 Run the simulation. Note that there is no change in the graph since the waveform from the cascade of these blocks is identical to the waveform of the FSK_SRC block, hence the overlap. TIP: To view the spectrum of each setup separately, you can display them in separate graphs or toggle the measurements one at a time under Graphs in the Project Browser (right-click and choose Toggle Enable ). You can also simply toggle the test points one at a time by double-clicking the test point and clearing the Enable element check box in the Element Options dialog box. These steps confirm that the two methods for setting up the transmitter create identical BFSK waveforms. 11 Add a third test point between the RND_D block and the DAC block. To observe the behavior of the transmitted phase: 12 Add a rectangular graph named TX Waveforms .
G e t t i n g S t a r t e d G u i d e 13-5
13
13 Add a random data waveform measurement to the graph using the settings in the following figure, then click Apply.
14 Add a measurement to the graph for the phase produced by the FSK modulator using the settings in step 13, but select TP.TP2 as the Test Point and Angle as the Complex Modifier, then click OK . 15 Select the TX Waveforms graph and click the Properties button on the toolbar or right click the graph and select Properties. 16 Click the Axes tab and select Left 1. Clear the Auto limits check box and enter -1 as the Min and 2 as the Max . Under Divisions, clear the Auto divs. check box and enter 1 as the Step. 17 Select Right 1 . Clear the Auto limits check box and enter -200 as the Min and 200 as the Max , then click Apply. 18 Click the Measurements tab and under Select Measurement to edit , select BFSK:Ang(WVFM(TP.TP2,20,4,1)] , then under Choose axis, select Right 1 and click Apply. 19 Click the Traces tab and under Style, select measurement 1, then under Weight select a heavier line from the corresponding drop-down box at the bottom of the dialog box. Select measurement 2, then select a square as the Symbol style from the corresponding drop-down box at the bottom of the dialog box.
13-6
MWO/VSS 2004
20 Run the simulation. Observe that the transmitted phase behaves exactly as expected in a binary FSK transmission scheme with rectangular frequency shaping pulse. Your simulation response should look similar to the following graph, which shows that the phase of the modulated waveform increases in a ramp when the input bit is 1, and decreases in a ramp with the same slope when the input bit is 0. The phase remains continuous between different bit intervals, and the phase jumps in the plot are only the effect of the wraparound when the phase exceeds . The data waveform (binary 1s and 0s) is plotted on the left axis while the phase waveform is shown on the right axis.
Re(WVFM(TP.TP3,20,4,1)) (L) BFSK TX Waveforms Ang(WVFM(TP.TP2,20,4,1)) (R, Deg) BFSK
200
66.7
-66.7
-1 12679000000
12684000000
12694000000
-200 12699000000
G e t t i n g S t a r t e d G u i d e 13-7
13
To complete the channel-receiver chain for BFSK (using the following figure as a reference): 1 2 3 4 5 6 7 8 In the Element Browser, click the Channels category. Select the AWGN block and place it on the system diagram. Click the Filters category, then select the PLSSHP block and place it on the system diagram. Expand the Modulation category, then click the Analog subgroup. Select the FM_DSCRM block and place it on the system diagram. Click the Signal Processing category, then select the INTG_DMP block and place it on the system diagram. Expand the Converters category, then click the Analog-Digital subgroup. Select the ADC block and place it on the system diagram. Add a 4th, 5th and 6th test point at the outputs of the FM_DSCRM, INTG_DMP and ADC blocks respectively. Click the Signal Processing category, then select the DLY_SMP block and place it on the system diagram. Expand the Meters category, then click the BER subgroup. Select the BER_EXT block and place it on the system diagram.
TP ID =TP6
TP ID =TP4
TP ID =TP5
FSK_SR C ID =A1 MO D=2-FSK OU TLVL=0 OL VLTYP=Bit Energy (dB) R ATE=1000 C TRFR Q=1 GH z MO X=0 DID .707 PLSTYP=R ectangul r a ALPHA=0.35 L= PLSLN=
Eb_ = sw No eep(ste pped(1,9,1)) TP ID=TP1 AWG N ID=A6 PWR =-Eb_N o PWR TYP=N ormaliz N0/2( d ed BW/Hz ) LOSS=0 dB
PLSSHP ID =F1 PLSTYP=Ga ussia (BT) n ALPHA=0.5 PLSLN= N RMTYP=Uni Pu Pow t lse er
dt
BE R
D AC ID =A3
1 2
13-8
MWO/VSS 2004
10 Set the AWGN block PWR parameter to -Eb_No and its PWRTYP parameter to Normalized N0/2(dBW/Hz) . 11 Set the PLSSHP block PLSTYP parameter to Gaussian (BT) and its ALPHA parameter to 0.5 . 12 Set the FM_DSCRM block GAIN parameter to 2/0.707 . 13 Set the INTG_DMP block N parameter to 8 . 14 Set the ADC block M parameter to 2 . 15 Set the DLY_SMP block DLY parameter to 15 . 16 Verify that the BER_EXT block parameters match those in the following figure.
G e t t i n g S t a r t e d G u i d e 13-9
13
3 4 5
Repeat step 2 but select TP.TP5 as Test Point . Repeat step 2 but select TP.TP6 as Test Point , then click OK . Run the System Simulator for a few seconds and then stop. A snapshot of the simulator response is shown in the following graph. Your graph should look very similar after making the appropriate trace and axis property changes in the Graph Properties dialog box. Set the waveform at testpoint TP.TP4 to display on the right axis. Analyze the graph. The bold waveform is the output of the FM discriminator in low noise. The sample output of the integrate-and-dump block at every 1 msec or 1e6 nsec (sample at the symbol rate of 1000 samples/sec) is displayed with a triangular mark. As expected, this curve is positive when the FM discriminator output is increasing, and negative otherwise. Also observe the output of the ADC block, which slices the output of the integrate-and-dump block for digital output data. The scale for integrate-and-dump output and ADC output is on the left y-axis, and that of the FM discriminator is on the right y-axis.
RX Waveform
ADC output
1.5 1
0.5 0 -0.5 -1 -1.5 -2 542000000 Re(WVFM(TP.TP4,10,1,1)) (R) BFSK Re(WVFM(TP.TP5,10,1,1)) (L) BFSK 544000000 Re(WVFM(TP.TP6,10,1,1)) (L) 546000000 548000000 Time (ns) BFSK
550000000
7 8
Add another rectangular graph named BER . Add a measurement to this graph using the settings in the following figure, then click Apply.
Add another measurement to this graph to represent the performance of a non-coherent receiver, using the settings in the following figure, then click
Apply.
G e t t i n g S t a r t e d G u i d e 13-11
13
10 Repeat step 9 but select Coherent as Demodulation Type. This represents the performance of a coherent linear (correlation) receiver. 11 Repeat step 9 but select Discriminator as Demodulation Type, then click OK . This represents the performance of the nonlinear discrimination receiver, under an ideal assumption. 12 Set the BER_EXT block TXTOUT parameter to Trial statistics . 13 Run the simulation. A text window displays with the statistics of BER simulation. 14 Select the BER graph window, then click the Properties button on the toolbar. Click the Traces and Axes tabs and make the appropriate changes to your graph so it looks similar to the following graph.
BER
.1
.01
.001
.0001 1
1.5
2.5
3.5
4.5
5.5
6.5
7.5
8.5
15 Set the SINE block AMPL parameter to 5*10^(Eb_No/20) . 16 Set the AWGN block PWR parameter to 0 db. 17 Run the simulation again. Note that these changes have no effect on the BER simulation; the results are identical. If you use the FSK_SRC block in the system (instead of elementary blocks), you can achieve the identical BER simulation by setting its OUTLVL parameter to 0 db and the AWGN block PWR parameter to -Eb_No , or by setting OUTLVL to Eb_No and PWR to 0 db. 18 Save and close the project.
G e t t i n g S t a r t e d G u i d e 13-13
13
Expand the RF Blocks category, then click the Sources subgroup. Select the TONE block and place it on the system diagram as shown on the following system diagram. Set the TONE block FRQ parameter to 5.2 GHz . Click the Signal Processing category, select the DECIM block and place two of them on the system diagram as shown in the following system diagram. Set the DECIM block RATIO parameter to 8 and the DLY parameter to 4 for both blocks. Add four test points to complete the system as shown in the following system diagram.
6 7
8 9
G e t t i n g S t a r t e d G u i d e 13-15
13
TP ID=TP3
TP ID=TP2 MIXER_B ID=A2 MODE=Upper sideband (up conver ter) FCOUT= GCONV=-6 dB P1DB=10 dBm IP3=30 dBm LO 2OUT=-125 dB IN2OUT=-20 dB PLO=10 dBm PLOUSE=Spur refer ence only PIN=-10 dBm NF=6 dB NOISE=Freq analysis only
QAM_SRC ID=A1 MOD=16-Q AM (G ray) OUTLVL=10 OLVLTYP=Avg. Power (dBm) RATE=_DRATE CTRFRQ=0 GHz PLSTYP=Raised Cosine ALPHA=0.35 PLSLN=
IN
OUT
TONE ID=A3 FRQ=5.2 G Hz PWR=10 dBm PHS=0 Deg CT RFRQ= SMPFRQ= ZS=_Z0 Ohm T=_TAMB DegK NO ISE=Freq analysis only
LO
TP ID=TP4
In this section you view the signal constellation with and without adding noise to the system. To add and analyze a constellation graph: 1 2 Add a constellation graph named IQ . Add two System/IQ measurements to the graph to display the constellations at test points TP1 and TP2. Set the Block Diagram to QAM System and the Time Span to 500 and leave Units set to Symbols for each measurement in the Add Measurement dialog box. Add a rectangular graph named "Power Spectrum ". Add a measurement to the "Power Spectrum" graph using the settings in the following figure, then click OK .
3 4
Run the simulation. The simulation responses shown in the following graphs should display.
IQ
0
Power Spectrum
-20
0.5
-40
IQ(TP.TP1,500,1,0) QAM System IQ(TP.TP2,500,1,0) QAM System
-60
-80
-0.5
-100
1.2 1.7 2.2 2.7 3.2 3.7 4.2 4.7 5.2 5.7 6.2 6.7 Frequency (GHz)
-1 -1 -0.5 0 0.5 1
G e t t i n g S t a r t e d G u i d e 13-17
13
The constellation at the output is slightly skewed. You can alter the AMPIMBAL and PHAIMBAL parameters and analyze the effect on the constellation even further. The system thus simulated has a dirty input signal (causing imbalance) and a clean LO. You can also build the system with a clean input signal and a dirty LO (causing imbalance). To do so you need to remove the INP_IMBAL block and add the LO_IMBAL block between the TONE block and the LO terminal of the MIXER_B block. This also causes the output constellation to skew in a similar pattern. The INP_IMBAL block has an amplitude imbalance of 0.6, a phase imbalance of 6 degrees and a DC offset value of 20e-3 (or 0.02). If the DC offset value is zero, ideally it should produce an image rejection ratio (IRR) of 24 dB. Here, you display the IRR for tones 6 7 Set the DCoffset parameter of the Input Imbalance subcircuit to 0 . Replace the QAM_SRC block with a copy of the TONE block as shown in the following figure. Set the new TONE block FRQ parameter to 5.2 GHz and the CTRFRQ parameter to 5.1 GHz.
TP ID =TP1 TP ID =TP 3 TP ID =TP2
DE CIM ID= A4 RA TIO=8 PH S=0 DL Y= 4 MIX ER _B ID =A 2 MOD E=U pp e r sid eb a nd (up co nve rte r) FC OUT= GC ONV = -6 d B P1 D B= 10 dB m IP3 =30 d Bm L O2OU T=-12 5 d B IN 2OU T= -20 dB PL O=10 dB m PL OU SE=Sp ur r efe ren ce on ly PIN = -10 dB m N F=6 dB N OISE= Fre q a na lys is o nl y
SU BC KT ID= S2 NE T=" Inp ut Imb al an ce " DC o ffs et= 0 AMP IM BAL = 0.6 PH AIMBA L=6
1 2
IN
OUT
TON E ID = A6 FR Q= 5.2 GHz P WR = -20 dB m P HS =0 D eg C TR FRQ=5 .1 GH z S MPFR Q= ZS =_ Z0 Oh m T= _ TAMB D e gK N OISE =Fre q a n al ysis on ly
LO
TON E ID =A 3 FR Q= 5.2 GH z PW R =1 0 d Bm PH S=0 De g C TRFR Q= SM PFR Q= ZS= _ Z0 Oh m T= _TA MB D eg K N OISE= Fre q a na lys is o nl y
TP ID= TP4
8 9
Add a rectangular graph named IRR . Add a measurement to the graph using the settings in the following figure, then click OK .
10 Run the simulation. The simulation response in the following graph should display. Measure the difference between the power spectrums of two IF frequencies, it is almost 24 dB.
G e t t i n g S t a r t e d G u i d e 13-19
13
IRR
-100
-200
-300
DB(PWR_SPEC(TP.TP3,1,4,10,0,-1,0,-1,1,0,0,0)) (dBm) QAM System
-400 6.4 6.9 7.4 7.9 8.4 8.9 9.4 9.9 10.4 10.9 11.4 11.9 12.4 12.9 13.4 13.9 14.4 Frequency (GHz)
Choose Options > Default System Options and click the Simulator tab. Select Data rate (_DRATE) and set its value to 0.005 GHz, then select Oversampling (_SMPSYM) and set its value to 8 samples/symbol. Right-click Circuit Schematics and import the RX Filter.sch file located in the Program Files\AWR\AWR2004\Examples\Getting Started\VSS\ 64QAM directory. Expand the Modulation category, then click the QAM subgroup. Select the QAM_SRC block and place it on the system diagram as shown in the following figure. Set the MOD parameter to 64-QAM (Gray) and the OUTLVL parameter to -20 dBm. Expand the RF Blocks category, then click the Mixers subgroup. Select the MIXER_B block and place/connect it on the system diagram as shown in the following figure. Select the TONE block and place it on the system diagram as shown in the following figure. Set the FRQ parameter to 28 GHz. Connect the output of the TONE source to the LO input of MIXER_B. Set the MODE parameter to Upper sideband (up converter) Expand the RF Blocks category, then click the Amplifier subgroup. Select the AMP_B block and place/connect it on the system diagram as shown in the following figure. Set the GAIN parameter to 29 , and the P1DB parameter to 28 .
10 Click the Channels category, then select the AWGN block and place/ connect it on the system diagram as shown in the following figure. Set the PWR parameter to -100 .
G e t t i n g S t a r t e d G u i d e 13-21
13
11 Expand the RF Blocks category, then click the Other subgroup. Select the RFATTEN block and place/connect it on the system diagram as shown in the following figure. Set the LOSS parameter to -22 . 12 Expand the Linear Filters category, then click the Simulation Based subgroup. Select the LIN_S block and place/connect it on the system diagram as shown in the following figure. Set the NET parameter to RX Filter . 13 Add another AMP_B block, MIXER_B block, and TONE block and connect the LO nodes of the two mixers as shown in the following figure. Ensure that MIXER_B is set the MODE to downconvert, and that the FRQ parameter of the TONE block is set to 28 GHz. 14 Set the copy of the AMP_B block GAIN parameter to 10 , and the P1DB parameter to 20 . 15 Expand the Modulation category, then click the General Receivers subgroup. Select and place/connect two RCVR blocks on the system diagram as shown in the following figure. 16 Expand the Meters category, then click the Network Analyzer subgroup. Select and place/connect two VSA blocks on the system diagram as shown in the following figure. 17 Add six test points in the same order as shown on the system diagram in the following figure.
RCVR D I =A10
1 R D IQ 2 3
TP D I =TP6
SRC
MEAS
VSA D 2 I =M M ER _ X I B D I =A2 M DE=Upper dbandupconv r t r O si e ( e e) FCO UT= G NV=- 6dB CO P1DB=1 dm 0 B P I 3=30dBm LO UT=- 25dB 2O 1 N UT=- 2 d I 2O 0 B PLO 0 dm =1 B PLO USE=Spr r eer nceony u f e l PI =- 1 dB N 0 m NF=6dB NO E=Fr q any si onl S I e al s y IN OUT M ER_B X I D I =A7 M DE=Lower debanddon c nver r O si / w o e t FCO UT= G NV=- 6dB CO P1DB=0 dm 1 B P I 3=30dBm LO UT=- 25dB 2O 1 N UT=- 2 d I 2O 0 B PLO 0 dm =1 B PLO USE=Spr r eer nc ony u f e e l PI =- 1 dm N 0 B NF=6dB NO E=Fr q aal si onl OUT S I IN e n y s y
SRC
MEAS
Q SR C AM _ I D=A1 M O 4- Q ( G y ) D=6 AM r a O LVL=- 0 UT 2 O LVLTYP=Av . Power dBm g ( ) RATE=_DRATE CTRFRQ G =0 Hz PLSTYP=RooRai edCosi e t s n ALPHA=0. 5 3 PLSLN=
TP I D=TP2 AW N G D I =A5 PW 100 R=PW RTYP=Aut o O LSS=0 B d LI _S N D I =S2 NET=" X Fi er R t " l N I PO RT= 1 O UTPO RT=2 NO SE=r eqanl y s oy I F a s i nl
AM P_ B I D=A6 G AI =10dB N P1DB=20dBm I P3= I P2= O PSAT = NF=3dB NO I E=Fr qanal s s onl S e yi y
R CVR I D=A9
1 R D IQ 5 4 2 3
LO
LO
TO NE I D=A1 1 FRQ G =28 Hz PW R=1 dm 0 B PHS=0Deg CTRFRQ = SM PFRQ = ZS=_Z0O hm T=_TAM DegK B NO SE=Fr qanays s ony I e l i l PNO SE= I PNPW R=
TO NE I D=A1 2 FRQ G z =28 H PW R=10dBm PHS=0Deg CTRFRQ = SM PFQ = R ZS=_Z0O hm T=_TAM DegK B NO I E=Fr qanal s s ony S e yi l PNO I E= S PNPW R=
TP I D=TP5
18 Set both MIXER_B block parameters (except the IDs and MODE) to the values shown in the following figure, then click OK .
G e t t i n g S t a r t e d G u i d e 13-23
13
1.5 IQ(TP.TP6,400,1,0)
64QAM System
RX IQ
0.5
-0.5
Disable and bypass the LIN_S block, then run the simulation again. Notice the difference in the signal constellation-- the ISI is minimized. Disabling the AWGN block would further reduce the jitter in the system. Create a system diagram named VSS RX Filter . Copy the LIN_S block from the 64QAM System system diagram and place it in the VSS RX Filter system diagram. Expand the Meters category and click the Network Analyzers subgroup. Select a VNA_SS block and place/connect it in the VSS RX Filter system diagram as shown in the following figure.
5 6 7
SRC
MEAS
8 9
In the VNA_SS block, set the FSTART parameter to 27.9 and the FSTOP parameter to 28.1 . Add a rectangular graph named Gain Response RX Filter .
10 Add a measurement to the graph using the settings in the following figure, then click OK .(Make sure the dB check box is selected.)
G e t t i n g S t a r t e d G u i d e 13-25
13
11 Add a Power Spectrum measurement to the Gain Response RX Filter graph from the System > Spectrum group (use default parameter settings) at Test Point 4. 12 Run the simulation. The simulation response in the following plot should display.
Gain Response of RX Filter
-40
-80
-120
DB(|S21_SS(VNA_SS.M1)|) VSS RX Filter
-160
DB(PWR_SPEC(TP.TP4,1000,0,10,0,-1,0,-1,1,0,0,0)) (dBm) 64QAM System
27.9
27.92 27.94
27.96
28.04
28.06 28.08
28.1
13 Add a tabular graph named EVM and add a measurement using the following settings, then click OK .
Note that the VSA block selected in VSA/Large Signal VNA should be the block with the QAM_SRC and mixer connected to it (VSA.M2). Also note that the EVM measurement auto-compensates for gain, phase, and delay. See the online Help for this measurement for more information. Simulate and read the EVM from the tabular graph.
14 Add a rectangular graph named AM to AM , and using the settings in the following figure, add a measurement to analyze the instantaneous AM-toAM characteristic of the signal, then click OK .
G e t t i n g S t a r t e d G u i d e 13-27
13
Note that the VSA block selected in VSA should be the block connected across the AMP_B block. Your block ID may differ from the VSA.M1 shown in this dialog box. 15 Run the harmonic balance simulator and system simulator. The simulation response in the following graph should display.
20
AMtoAM
DB(AMtoAM_INST(VSA.M1,1024,0)) (dBm ) 64QAM System
10
-10
-20
-30 -49.6 -44.6 -39.6 -34.6 -29.6 Pow (dBm er ) -24.6 -19.6 -14.6
16 Tune the OUTLVL parameter of the QAM_SRC block and view the impact on the constellation graph.
G e t t i n g S t a r t e d G u i d e 13-29
13
Note that the VSA block selected in Vector Signal Analyzer should be the block connected across the AMP_B block. Your block ID may differ from the VSA.M1 shown in this dialog box. 2 3 In the VSA.M1 block specified above, set the SWPDUR parameter to 10 ns. Start the simulation. The tabulated form displays the ACPR value shown in the following table.
To measure the ACPR over a range of signal power: 1 2 In the QAM_SRC block, set the OUTLVL parameter to sweep(stepped(-30,10,5)) without the quotes. Start the simulation again and let it run for a couple of minutes. Notice how the ACPR tabular graph updates. You can display the results in a rectangular graph by right-clicking ACPR under Graphs in the Project Browser and choosing Change Type to > Rectangular. The simulation response in the following graph should display.
ACPR
DB(ACPR(VSA.M1,28.0e9,1,15.0e6,1,10.0e6,1,15.0e6,1,28.0e9,1,15.0e6,1,0,0,0.5)) 64QAM System
-11 -11.2
-12.2
-13.2
-14.2
-15.2 -30 -27 -24 -21 -18 -15 -12 -8.95 -5.95 -2.950.0488 3.05 6.05 Power (dBm)
G e t t i n g S t a r t e d G u i d e 13-31
13
PIn =- 10 PL O=10
TP I D=TP1 MIXER _F ID=MI XE _1 A R 1 SP RS="mixer 1" U SP RFMT=I np ro ws x LO co lumns U LOH TYP=dBc IF MODE=U ppe r side ba nd (u p c on ver te r) FCO UT= GCO NV=- 7. 5 d B P1DB= 6 d Bm IP3=19 dBm PLO=PLO -3 0 d BW PLOU SE =Spu r re fer en ce on ly PIN= PIn- 30 dBW NF=6 dB NOISE=Fre q a na lysis only IMPR OD=
TP I D=TP2
TON E I D=A3 FRQ =1 95 0 MHz PW R=PI n- 30 dBW PHS=0 Deg CTRFRQ = SMPFR Q= ZS= _Z0 O hm T=_TAMB D eg K NO ISE=Fr eq an alys is o nly PNO ISE= PNPW R=
IN
OUT
LO
TON E I D=A4 FRQ =2 00 0 MHz PW R=PL O- 30 dBW PHS=0 Deg CTRFRQ = SMPFR Q= ZS= _Z0 O hm T=_TAMB D eg K NO ISE=Fr eq an alys is o nly PNO ISE= PNPW R=
TP ID =TP3
MIXER_ F ID=MIXER_ 1B1 SPURS="mixe r1 _T" SPURFMT=LO r ows x In p colu mn s LO HTYP=d Bc IF MODE=Up per sid eb an d ( up co nve rt er) FCOU T= GC ONV=-7 .5 dB P1D B=6 dBm IP3 =1 9 d Bm PLO =PL O- 30 dBW PLO USE= S ur r efe re nce o nly p PIN=PIn -3 0 d BW NF=6 d B NO ISE=Fr eq an alysis on ly IMPRO D=
x==y
IN
OUT
LO
Import the mixer1.txt and mixer1_T.txt data files located in the ProgramFiles\AWR\AWR2004\Examples\Getting Started\VSS\MIXER directory. In the mixer1 data file, each row represents the input harmonic and each column represents the LO harmonic, with the top row and left column representing the first harmonic. The mixer1_T data file is the transpose of the mixer1 data file with rows representing LO harmonics and columns representing the input harmonic. On the Mixer1 system diagram: Depending on the type of data file used, you must set the SPURFMT parameter accordingly. Verify that the MIXER_1A1 block has the following parameter values.
G e t t i n g S t a r t e d G u i d e 13-33
13
In the MIXER_1B1 block, ensure that SPURS is set to mixer1_T , SPURFMT to LO rows x Inp columns , and set the remaining parameters to the MIXER_1A1 values as shown in the previous figure.
To verify these results using the proper graphs: 1 2 Add a rectangular graph named Spectrum . Add a power spectrum measurement using the settings in the following figure, then click Apply.
G e t t i n g S t a r t e d G u i d e 13-35
13
Run the simulation. The simulation response in the following graph should display after changing your graphs trace styles and axes to match those shown.
Spectrum
-100
-200
-300
-400 0 1000 2000 3000 4000 5000 Frequency (MHz) 6000 7000 7950
Right-click on the graph and choose Marker to measure the values in the graph and compare them with those given in the previous table of expected values. Move the + cursor to the point you want to measure and click to display the graph value at that point. The result is as expected, otherwise TST2IN would generate an error message. Alter any elements in either of the two text data files and run the simulation; an error message is generated. Save and close the project
G e t t i n g S t a r t e d G u i d e 13-37
13
INDEX
............................
....
A ACPR 13-29 Adding a chip cap cell 5-18 measurements 8-15 ports and wires 3-10 subcircuits to diagrams 3-10 subcircuits to schematics 3-9 AM modulation 8-7 Animation 7-19 Artwork cell adding ports to 5-16 adding to a schematic element 5-10 assigning 5-10 creating 5-12 AWR Design Environment 3-2 components 3-3 B Back annotation 6-8 BER simulation 9-9 Bias circuit 6-6 Blocks 8-8 connecting 8-10, 8-11 placing in a diagram 8-9, 8-10, 9-2 C Cell libraries 3-15 Circuit analyzing 4-9 optimizing 4-14 tuning 4-10 Component Browser 6-22 Conductors, adding to layout 7-6 Connecting nodes 3-10 Creating
layout 3-13 variables 9-9 Creating RF Chain 12-1 Currents, animating 7-18 Curve meter 6-4
D Data file, changing the ground node 5-6 Data types 8-1 Database units 5-3 De-embedding lines 7-11 Default grid size 5-3 project units 4-2 Demodulation 13-7 Distributed interdigital filter 7-2 Documentation 1-3 Dynamic load line measurement 6-21 E E-fields, viewing 7-18 Electromagnetic (EM) simulator 7-1 Element Browser 3-4 Element catalog 8-10 Element symbol, changing 5-6 Elements, adding to schematics 3-8, 4-3 EM simulation 7-1 EM structure drawings 3-12 EM structures adding to schematic 7-28 creating 3-11, 7-2 End-to-end 64QAM 13-20 End-to-end system 9-1 Exporting layout 5-26
Index-1
INDEX
F Filters 10-2, 10-10 layout 7-20 FLEXlm license, obtaining 2-4 Frequency center 8-4 sampling 8-4 simulation 4-7 FSK 13-1 modulator 13-4 G GDSII cell library 5-4 Graphs adding measurements 3-16 creating 3-16, 8-14 displaying results on 7-16 types 3-17 Ground node adding 4-6 changing 5-6 H Hardware/software requirements 2-2 Harmonic balance 6-1, 11-1 port 6-10, 6-11 simulator 11-1 I I/Q imbalance 13-13, 13-14 Image rejection ratio 13-14 Importing cell library 5-4 data file 5-5 GDSII cell library 5-4 layer process file 5-3 models 11-1 Installing MWO/VSS 2-1 L Large signal reflection coefficient 6-13 Layer process file (LPF), importing 3-15, 5-3 Layout
creating 3-13 creating from schematic 5-1 exporting 5-26 viewing 5-11 Layout cell,anchoring 5-11 Layout Manager 3-15 Linear simulators 4-1 Lines de-embedding 7-11 Lines, de-embedding 7-11 Load line measurement 6-21 Lumped element filter, creating 4-1
M Measurements adding 3-17, 4-8, 8-15 IP3 vs voltage 6-27 Microstrip elements, placing 5-7 Mixer modeling 13-32 MTRACE2 element 5-20 Multi-tone analysis 6-1 MWO/VSS design flow 3-1 N Netlists, creating 3-5 Nonlinear measurements 6-1 model 6-3 simulation frequencies 6-12 simulator 6-1 O Online help 1-4, 3-19 Optimization goals, adding 4-14 Optimizing circuits 4-14 simulations 3-18 P Parameter editing 4-6, 8-13 propagation 8-6
INDEX
tuning 9-8 Ports adding 3-10, 7-11 adding to artwork cell 5-16 and wires 3-9 editing 3-11 Pout vs. frequency measurement 6-20 Power amplifier circuit 6-2 Project creating 3-5, 4-1, 4-2, 8-7 opening 3-5 saving 3-5 setting default units 4-2 Project Browser 3-4
Snapping layout cells 5-21 Starting MWO/VSS 3-2 Subcircuits adding to a diagram 3-10, 10-1 adding to a schematic 3-5, 3-9, 6-16 Swept variables 6-27 Symbol, changing 5-6 System diagram 3-7, 8-10 adding blocks 8-10 creating 3-7, 8-9 linking to MWO 10-1 System settings, defaults 8-8 System simulator options 8-14
Q QAM 13-21 diagram 9-2 system simulation 10-7 R Receiver 13-4, 13-7 RF Budget Analysis 12-1 RF Chain, creating 12-1 Routing elements 5-20 S Sampling frequency 8-2 Schematic adding elements to 4-3 copying 6-24 creating 4-3 editing 5-18 importing 6-15 Scripts 3-19 Signal representation 8-2 Simulation frequency 3-17, 4-7, 7-13 optimizing 3-18 results 8-17 tuning 3-18 Single-tone analysis 6-1
T Technical support 1-4 Test points, adding 8-11 Third-order intermodulation measurement 6-26 Tuning a circuit 4-10 simulations 3-18 system parameters 9-8 Two-tone harmonic balance port 6-24 V Variables creating 4-12, 9-9 sweeping 6-27 Vector signal analyzer block 11-4 Vector variables 4-15 Vias, adding 7-9 Viewing a layout 5-11 E-Fields 7-18 structures in 3D 7-11 VSS theory 8-1 W Website support 1-4 Wires, adding 4-4 Wizards 3-19
Index-3
INDEX