
Cadence® Verilog® Language and Simulation Version 3.4 Lecture Manual February 18, 2002 1990-2002 Cadence Design Systems, Inc. All rights reserved. Printed in the United States of America. Cadence Design Systems, Inc., 555 River Oaks Parkway, San Jose, CA 95134, USA Cadence Trademarks Alanza SM Dracula SPECCTRAQuest Allegro Envisia Spectre Ambit Gate Ensemble The Design Realization Company and SM Assura NC Verilog Vampire BONeS OpenBook online documentation library Verifault-XL Cadence (brand and logo) Orcad Verilog Cierto Pearl Verilog-XL CoEfficient SM methodology Pspice Virtuoso Composer Quickturn Concept Silicon Ensemble Connections SourceLink SM online customer support Diva SPECCTRA Other Trademarks All other trademarks are the exclusive property of their respective owners. Confidentiality Notice No part ofthis publication may be reproduced in whole or in part by any means (including photocopying or storage in an informationstorage/retrieval s ystem) or transmitted in any form or by any means without prior written permission from Cadence Design Systems, Inc. (Cadence). Information in this document is subject to change without notice and does not represent a commitment on the part of Cadence. The information contained herein is the proprietary and confidential information of Cadence or its licensors, and is supplied subject to, and may be used only by Cadence’s customer in accordance with, a written agreement between Cadence and its customer. Except as may be explicitly set forth in such agreement, Cadence does not make, and expressly disclaims, any representations or warranties as to the completeness, accuracy or usefulness of the information contained in this document. Cadence does not warrant that use of such information will not infringe any third party rights, nor does Cadence assume any liability for damages or costs of any kind that may result from use of such information. RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013. UNPUBLISHED This document contains unpublished confidential information and is not to be disclosed or used except as authorized by written contract with Cadence. Rights reserved under the copyright laws of the United States. Table of Contents Cadence Verilog Language and Simulation Table of Contents Cadence Verilog Language and Simulation Chapter 1 Getting Started Course Agenda................................................................................................................. 1-3 Course Schedule............................................................................................................... 1-7 Getting Help................................................................................................................... 1-13 Review ........................................................................................................................... 1-15 Chapter 2 Verilog Applications What Is a Hardware Description Language? ................................................................... 2-3 Why Use an HDL?........................................................................................................... 2-5 What is Verilog? .............................................................................................................. 2-7 Verilog History .......................................................................................................... 2-9 Verilog Applications................................................................................................ 2-11 Levels of Abstraction..................................................................................................... 2-13 Trade-Offs Among the Levels of Abstraction ......................................................... 2-15 Verilog-Supported Levels of Abstraction................................................................ 2-17 The Behavioral Level............................................................................................... 2-19 The RTL Level......................................................................................................... 2-21 The Structural Level ................................................................................................ 2-23 One Language for All Levels................................................................................... 2-25 Summary........................................................................................................................ 2-27 Review ........................................................................................................................... 2-29 Chapter 3 Introduction to Cadence Simulators Simulation Algorithms..................................................................................................... 3-3 The Time Wheel in Event-Based Simulation .................................................................. 3-5 Event Simulation of a Verilog Model.............................................................................. 3-7 The Cadence Verilog Simulators..................................................................................... 3-9 Interpretive Versus Compiled-Code Simulation............................................................ 3-11 Verilog-XL Can Interpret Behavioral Source.......................................................... 3-13 NC-Verilog Precompiles All Source Code.............................................................. 3-15 Verilog Language Support............................................................................................. 3-17 Invoking Verilog-XL and NC-Verilog .......................................................................... 3-19 Verilog-XL and NC-Verilog Differences ...................................................................... 3-21 The Simvision Waveform Viewer ................................................................................. 3-25 February 18, 2002 Cadence Design Systems, Inc. iii Cadence Verilog Language and Simulation Table of Contents The Signalscan Waveform Display ............................................................................... 3-27 The SHM Waveform Database...................................................................................... 3-31 Probing Signals with $shm_probe ........................................................................... 3-33 Related Products ............................................................................................................ 3-35 Summary........................................................................................................................ 3-37 Review ........................................................................................................................... 3-39 Chapter 4 A Sample Design Key Language Features.................................................................................................... 4-3 The Verilog Module................................................................................................... 4-5 Module Ports.............................................................................................................. 4-7 Module Instances ....................................................................................................... 4-9 A Simple and Complete Example.................................................................................. 4-11 Device Under Test ................................................................................................... 4-13 Testbench ................................................................................................................. 4-15 The Value Change Dump (VCD) .................................................................................. 4-27 Dumping Signals with $dumpvars........................................................................... 4-29 Summary........................................................................................................................ 4-31 Review ........................................................................................................................... 4-33 About Lab 1 ................................................................................................................... 4-35 Chapter 5 Lexical Conventions in Verilog White Space and Comments ............................................................................................ 5-3 Integer and Real Numbers ............................................................................................... 5-5 String Constants............................................................................................................... 5-7 Identifiers ......................................................................................................................... 5-9 Escaped Identifiers................................................................................................... 5-11 Special Language Tokens .............................................................................................. 5-13 System Tasks and Functions.................................................................................... 5-15 Specifying Delay...................................................................................................... 5-17 Compiler Directives......................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages1062 Page
-
File Size-