Transcription of Cadence Verilog -AMS Language Reference
1 Cadence Verilog -AMS LanguageReferenceProduct Version 2005 2000-2005 Cadence Design Systems, Inc. All rights in the United States of Design Systems, Inc., 555 River Oaks Parkway, San Jose, CA 95134, USAT rademarks:Trademarks and service marks of Cadence Design Systems, Inc. ( Cadence ) contained inthis document are attributed to Cadence with the appropriate symbol. For queries regarding Cadence strademarks, contact the corporate legal department at the address shown above or call SystemC, Open SystemC Initiative, OSCI, SystemC, and SystemC Initiative are trademarks orregistered trademarks of Open SystemC Initiative, Inc.
2 In the United States and other countries and areused with other trademarks are the property of their respective Print Permission:This publication is protected by copyright and any unauthorized use of thispublication may violate copyright, trademark, and other laws. Except as specified in this permissionstatement, this publication may not be copied, reproduced, modified, published, uploaded, posted,transmitted, or distributed in any way, without prior written permission from Cadence . This statement grantsyou permission to print one (1) hard copy of this publication subject to the following conditions:1.
3 The publication may be used solely for personal, informational, and noncommercial purposes;2. The publication may not be modified in any way;3. Any copy of the publication or portion thereof must include all original copyright, trademark, and otherproprietary notices and this permission statement; and4. Cadence reserves the right to revoke this authorization at any time, and any such use shall bediscontinued immediately upon written notice from : Information in this publication is subject to change without notice and does not represent acommitment on the part of Cadence .
4 The information contained herein is the proprietary and confidentialinformation of Cadence or its licensors, and is supplied subject to, and may be used only by Cadence scustomer in accordance with, a written agreement between Cadence and its customer. Except as may beexplicitly set forth in such agreement, Cadence does not make, and expressly disclaims, anyrepresentations or warranties as to the completeness, accuracy or usefulness of the information containedin this document. Cadence does not warrant that use of such information will not infringe any third partyrights, nor does Cadence assume any liability for damages or costs of any kind that may result from use ofsuch Rights:Use, duplication, or disclosure by the Government is subject to restrictions as set forthin and et seq.
5 Or its Verilog -AMS Language ReferenceJune 20053 Product Version .. 17 Related Documents .. 18 Internet Mail Address .. 19 Typographic and Syntax Conventions .. 191 Modeling Concepts.. 21 Verilog -A Language Overview .. 22 Describing a System .. 22 Analog Systems .. 23 Nodes .. 23 Conservative Systems .. 24 Signal-Flow Systems .. 24 Mixed Conservative and Signal-Flow Systems .. 25 Simulator Flow for Analog Systems .. 252 Creating Modules.. 27 Overview.
6 28 Declaring Modules .. 28 Declaring the Module Interface .. 31 Module Name .. 31 Ports .. 31 Parameters .. 34 Defining Module Analog Behavior .. 34 Defining Analog Behavior with Control Flow .. 36 Using Integration and Differentiation with Analog Signals .. 38 Using Internal Nodes in Modules .. 39 Using Internal Nodes in Behavioral Definitions .. 39 Using Internal Nodes in Higher Order Systems .. 40 ContentsCadence Verilog -AMS Language ReferenceJune 20054 Product Version Conventions.
7 43 White Space ..44 Comments ..44 Identifiers .. 44 Ordinary Identifiers .. 45 Escaped Names .. 45 Scope Rules .. 45 Numbers ..46 Integer Numbers .. 46 Real Numbers .. 46 Strings .. 474 Data Types and Objects .. 49 Integer Numbers .. 50 Real Numbers .. 50 Converting Real Numbers to Integer Numbers .. 51 Parameters .. 51 Specifying a Parameter Type .. 52 Specifying Permissible Values .. 53 Natures .. 54 Declaring a Base Nature.
8 55 Disciplines .. 57 Binding Natures with Potential and Flow .. 58 Binding Domains with Disciplines .. 59 Disciplines and Domains of Wires and Undeclared Nets .. 60 Discipline Precedence .. 60 Compatibility of Disciplines .. 60 Net Disciplines ..63 Ground Nodes .. 65 Real Nets .. 65 Named Branches .. 66 Implicit Branches .. 67 Cadence Verilog -AMS Language ReferenceJune 20055 Product Version for the Analog Block.. 69 Assignment Statements .. 69 Procedural Assignment Statements in the Analog Block.
9 70 Branch Contribution Statement .. 70 Indirect Branch Assignment Statement .. 72 Sequential Block Statement .. 73 Conditional Statement .. 74 Case Statement .. 74 Repeat Statement .. 75 While Statement .. 76 For Statement .. 76 Generate Statement .. 776 Operators for Analog Blocks .. 81 Overview of Operators .. 82 Unary Operators .. 83 Unary Reduction Operators .. 83 Binary Operators .. 85 Bitwise Operators .. 88 Ternary Operator .. 89 Operator Precedence.
10 90 Expression Short-Circuiting .. 907 Built-In Mathematical Functions .. 91 Standard Mathematical Functions .. 92 Trigonometric and Hyperbolic Functions .. 92 Controlling How Math Domain Errors Are Handled .. 93 Cadence Verilog -AMS Language ReferenceJune 20056 Product Version and Using Events.. 95 Detecting and Using Events .. 96 Initial_step Event .. 97 Final_step Event .. 98 Cross Event .. 99 Above Event .. 100 Timer Event .. 1029 Simulator Functions.