Download Design Creation Tutorial for a Prototyping System
Transcript
Printed Documentation Generating Clock Signals Using the Clock Construct ............................................... 55 Generating a Clock Signal with a Duty Cycle of 30% .............................................. 56 Getting the Current Prototyping Time .................................................................. 57 Synchronizing Data Transmission Using a Clock .................................................... 58 Synchronizing Data Transmission Between FSMs ................................................... 59 Clocked Magic-C Loops ...................................................................................... 60 Do-While / Repeat-Until Clocked Loop ................................................................. 60 Clocked WHILE Loop ......................................................................................... 61 C-Style Clocked FOR Loop.................................................................................. 62 Interrupt ......................................................................................................... 64 Matched Filter Design .......................................................................................... 64 Overview ......................................................................................................... 64 Introduction..................................................................................................... 65 Matched Filter Specification ................................................................................ 65 System Partitioning .......................................................................................... 66 Specification of Matched Filter (Initial Version) ...................................................... 68 Data Generator Specification .............................................................................. 68 Filter Specification ............................................................................................ 70 Adding Delay and Time to the Model ................................................................... 72 Using Reset in a MAGIC-C Model ......................................................................... 74 Handling Protocol Refinement in MAGIC-C ............................................................ 76 Summary ........................................................................................................ 80 UAR Design ........................................................................................................ 80 UAR Design ..................................................................................................... 81 Using MAGIC-C ................................................................................................ 81 Introduction..................................................................................................... 81 Universal Asynchronous Receiver Specification...................................................... 81 Change in Specification: Noise Resistant Behavior ................................................. 83 Basic Test Bench Framework .............................................................................. 84 Communication Protocol .................................................................................... 85 User-Defined Data Type Across Model Interfaces ................................................... 85 Refinement Steps for the UAR Framework ............................................................ 86 Inital version ................................................................................................... 87 Version 2 ........................................................................................................ 92 Version 3 ........................................................................................................ 95 Version 4 ........................................................................................................ 99 Final version ................................................................................................... 101 Summary ....................................................................................................... 107 Glossary .............................................................................................................. 109 Index .................................................................................................................. 111 iv