Comet Labs 48-Port 10 Guía de usuario

Busca en linea o descarga Guía de usuario para Los conmutadores de red Comet Labs 48-Port 10. Comet Labs 48-Port 10 User guide [en] Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir

Indice de contenidos

Pagina 1

tutorial

Pagina 3 - Version 5.9

CIF Peripheral Model - SimpleTimer 96 CoMET Version 5.9 – Tutorial initialization Instance Data structure and stores the module id and pathname

Pagina 4

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 97 Events and Responses in Behavioral Code We can now review the Event and R

Pagina 5 - Contents

CIF Peripheral Model - SimpleTimer 98 CoMET Version 5.9 – Tutorial Declarations, Definitions and Instance Data Instance data stores the state of

Pagina 6

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 99 #define TIFR_SET_1 0x01 #define TIFR_SET_2 0x02 #define TIFR_SET_

Pagina 7 - Contents

CIF Peripheral Model - SimpleTimer 100 CoMET Version 5.9 – Tutorial The default output section appears as follows: /* ** Output handles */ /* co

Pagina 8

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 101 CODE ENDS Declaring Instance Data Callback Handles and Callback Data Str

Pagina 9

CIF Peripheral Model - SimpleTimer 102 CoMET Version 5.9 – Tutorial Creating the Behavioral Functions We will add all behavioral code for the Si

Pagina 10

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 103 ** Do nothing if in reset. */ if (IP->InReset) return; /*

Pagina 11 - Introduction

CIF Peripheral Model - SimpleTimer 104 CoMET Version 5.9 – Tutorial if (IP->regMTR[MTR_ix] > Count) MatchTicks = IP->regMTR[MTR

Pagina 12

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 105 ** Parameters ** p ** Pointer to a tTimerCallbackData stru

Pagina 13 - Standalone C - Hello World

CoMET Version 5.9 – Tutorial 7 Introduction This tutorial covers creating: • a standalone C project • a CIF Virtual System Prototype Conventi

Pagina 14

CIF Peripheral Model - SimpleTimer 106 CoMET Version 5.9 – Tutorial return; /* ** Setup the next match. */ SetupNextMatch(pCallbackDat

Pagina 15

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 107 IP->BusClock = AmpiClockInitSlavePortView("BusClock", "

Pagina 16

CIF Peripheral Model - SimpleTimer 108 CoMET Version 5.9 – Tutorial Modify module and version information function CoMET generates a call to pri

Pagina 17 - Creating a Source File

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 109 case StdLogicH: /* ** Deassert all outputs. */ IP->InRe

Pagina 18

CIF Peripheral Model - SimpleTimer 110 CoMET Version 5.9 – Tutorial ** Description: ** Reads a device register. This function assumes that al

Pagina 19

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 111 Data = IP->regTIFR; #ifdef _DEBUG AmpiStreamPrintf(DEBUG_MSG,

Pagina 20 - Adding a Build Configuration

CIF Peripheral Model - SimpleTimer 112 CoMET Version 5.9 – Tutorial { This function is called by the BusWrite and BusUntimedWrite functions. T

Pagina 21

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 113 #ifdef _DEBUG AmpiStreamPrintf(DEBUG_MSG, "%s: Write data %#0

Pagina 22

CIF Peripheral Model - SimpleTimer 114 CoMET Version 5.9 – Tutorial CODE ENDS At this point it is appropriate to perform another build. See Buil

Pagina 23 - Key Points

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 115 VSP and SimpleTimer Block Diagram The SimpleVSP project with an instanc

Pagina 25 - CIF Module - SimpleVSP

CIF Peripheral Model - SimpleTimer 116 CoMET Version 5.9 – Tutorial Creating the SimpleTimer1 instance in the Virtual Platform In the CoMET Work

Pagina 26 - The SimpleVSP Example

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 117 Creating the IrqNet To add the IrqNet, right click the Virtual Platform

Pagina 27 - CIF Module - SimpleVSP

CIF Peripheral Model - SimpleTimer 118 CoMET Version 5.9 – Tutorial CoMET opens the Fabric Module dialog, Port Connect tab. Port Or Net Name:

Pagina 28 - Prerequisites

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 119 The final connections for the VirtualPlatform are as follows: Check th

Pagina 29

CIF Peripheral Model - SimpleTimer 120 CoMET Version 5.9 – Tutorial Setting the SimpleTimer1 Base Address with a pcx Parameter Override Rebuild

Pagina 30

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 121 #include "vastdef.h" #include "tspi.h" #include &quo

Pagina 31

CIF Peripheral Model - SimpleTimer 122 CoMET Version 5.9 – Tutorial tWord32 interruptsReceived = 0; int main(void) { printf("Testin

Pagina 32

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 123 case MTR_1: *mtr1Ptr = time; break; case MTR_2: *mtr1Ptr

Pagina 33

CIF Peripheral Model - SimpleTimer 124 CoMET Version 5.9 – Tutorial break; } } void disableMtr(tInt8 mtrId){ tWord32 *terPtr = (tWord

Pagina 34

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 125 Adding the Target Image After compiling the target code, you add the Tar

Pagina 35

CoMET Version 5.9 – Tutorial 9 Standalone C - Hello World Overview This tutorial covers a simple CoMET project, to compile and run a standalone

Pagina 36

CIF Peripheral Model - SimpleTimer 126 CoMET Version 5.9 – Tutorial /Top/VirtualPlatform1/VastGpStdLogic01 VaST GP Standard Logic 0 Module v3

Pagina 37 - Viewing the .fmx File as XML

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 127 • debug output from the SimpleTimer1 module instance lines beginning w

Pagina 38

CIF Peripheral Model - SimpleTimer 128 CoMET Version 5.9 – Tutorial Metrix Output A Metrix trace shows the timing and details of instructions ex

Pagina 39

Standalone C - Hello World 10 CoMET Version 5.9 – Tutorial Creating a new workspace and project  Choose File/New Workspace. Workspace dialog 

Pagina 40

Standalone C - Hello World CoMET Version 5.9 – Tutorial 11 Workspace: Hello dialog: Project panel:  Select General  Project Name: T

Pagina 41

Standalone C - Hello World 12 CoMET Version 5.9 – Tutorial Navigating the Workspace and Project CoMET creates the new workspace and project and d

Pagina 42

Standalone C - Hello World CoMET Version 5.9 – Tutorial 13 Creating a Source File  Choose File/New File, or press Ctrl-N, or click the b

Pagina 43

Standalone C - Hello World 14 CoMET Version 5.9 – Tutorial The file now displays with the file name as the window title, and with C syntax color

Pagina 44

Standalone C - Hello World CoMET Version 5.9 – Tutorial 15 Adding the File to the Project In the Workspace window, open the Hello1 project,

Pagina 46 - Viewing the Fmx Report

Standalone C - Hello World 16 CoMET Version 5.9 – Tutorial hello1.c appears in the Workspace window, Hello1 project, Source Files folder. Adding

Pagina 47 - Adding a Net, XML Tree View

Standalone C - Hello World CoMET Version 5.9 – Tutorial 17 Project dialog: Configuration tab: Properties group:  Type: Select VcConApp if

Pagina 48

Standalone C - Hello World 18 CoMET Version 5.9 – Tutorial  Select Project Properties from the context menu.  In the Project dialog, Project

Pagina 49

Standalone C - Hello World CoMET Version 5.9 – Tutorial 19 Executing the Compiled Project When the project is successfully built, you can ex

Pagina 51

CoMET Version 5.9 – Tutorial 21 CIF Module - SimpleVSP Overview This tutorial demonstrates how to build a Virtual System Prototype (VSP) and si

Pagina 52

CIF Module - SimpleVSP 22 CoMET Version 5.9 – Tutorial Constructing a VSP in CoMET CoMET manages a group of projects within a Workspace. To const

Pagina 53

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 23 SimpleVSP Project Block Diagram The SimpleVSP project This tutorial demonstrates: •

Pagina 54

CIF Module - SimpleVSP 24 CoMET Version 5.9 – Tutorial • Using the Modules Window • Adding ports and nets • Connecting ports and nets • Using

Pagina 55

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 25 Creating a New Workspace and VSP Project  Choose File/New Workspace. Workspace dia

Pagina 56 - Adding Ports

CCooMMEETT Version 5.9 TTuuttoorriiaall Document Version No: 1.0

Pagina 57

CIF Module - SimpleVSP 26 CoMET Version 5.9 – Tutorial Workspace: SimpleVSP dialog: Project panel:  Select Fabric  Project Name: Type Si

Pagina 58

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 27 Project: SimpleVSP1 dialog: Fabric Module panel:  Module Class: Select Virtual S

Pagina 59

CIF Module - SimpleVSP 28 CoMET Version 5.9 – Tutorial Viewing the Workspace, Project and .fmx File CoMET creates the new workspace and project a

Pagina 60 - Checking Connections

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 29 Creating a Virtual Platform Module Project Choose Workspace/Add New Project Workspac

Pagina 61 - Building the VirtualPlatform

CIF Module - SimpleVSP 30 CoMET Version 5.9 – Tutorial Project: VirtualPlatform dialog: Fabric Module panel:  Module Class: Select Virtual Pla

Pagina 62 - Building a Project

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 31 Choosing an .fmx View in the Document window. Open the VirtualPlatform.fmx file in t

Pagina 63

CIF Module - SimpleVSP 32 CoMET Version 5.9 – Tutorial Adding Module Instances to the Virtual Platform Refer to the SimpleVSP Project Block Diagr

Pagina 64

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 33 Adding a Module Instance by Drag and Drop  Click on the ARM926EJS icon in the Modul

Pagina 65

CIF Module - SimpleVSP 34 CoMET Version 5.9 – Tutorial It is possible to edit, search and process the XML directly, but the CoMET SEE tools are

Pagina 66

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 35 Adding a Module Instance by Copy and Paste, XML Tree View  Choose XML Tree View in

Pagina 67

© Copyright 1997 – 2005 VaST Systems Technology Corp. All rights reserved The copyright owner of CoMET hereby disclaims all warranties relating to

Pagina 68

CIF Module - SimpleVSP 36 CoMET Version 5.9 – Tutorial Adding a Module Instance by Copy and Paste, XML Table View  Choose Logic Connection View

Pagina 69

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 37  Using the method of your choice, add a module instance of VastGpStdLogic0 to the V

Pagina 70

CIF Module - SimpleVSP 38 CoMET Version 5.9 – Tutorial Creating an Array of Module Instances For the ARM926EJS VPM three memory blocks are requir

Pagina 71

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 39 Fabric Module dialog, Parameter tab, Properties panel Name: Type NumberOfMemoryBlock

Pagina 72

CIF Module - SimpleVSP 40 CoMET Version 5.9 – Tutorial The VirtualPlatform.fmx XML Tree Display shows the new parameter. Now we alter the Generi

Pagina 73 - Adding a Target Image

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 41 Fabric Module dialog, Module Instance tab, Properties panel: Number Of: Type NumberO

Pagina 74 - Simulating SimpleVSP1

CIF Module - SimpleVSP 42 CoMET Version 5.9 – Tutorial Viewing the Fmx Report Save the fmx file (press Ctrl-S) and open the Fmx Report: To view t

Pagina 75 - Unconnected Ports

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 43 Adding Nets and Port Connections The ports of devices at the same level of the module

Pagina 76 - Debugging a Simulation

CIF Module - SimpleVSP 44 CoMET Version 5.9 – Tutorial Fabric Module dialog, Net tab, Properties panel:  Name: Type StdBus1Net  Type: Select

Pagina 77

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 45 Referring to the SimpleVSP Project Block Diagram, page 23, this net must be connected

Pagina 78 - Enabling Bus Monitoring

CoMET Version 5.9 – Tutorial i Contents Introduction...

Pagina 79

CIF Module - SimpleVSP 46 CoMET Version 5.9 – Tutorial Adding an Instance Port connection, Bus Connection View  Open the VirtualPlatform.fmx Bu

Pagina 80 - Analyzing the VCD

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 47 VirtualPlatform.fmx XML Tree View:  Repeat the process to add a StdBus1Net port con

Pagina 81 - Obtaining a Metrix Trace

CIF Module - SimpleVSP 48 CoMET Version 5.9 – Tutorial Adding Clock Connections using the Clock Connection View  Open the VirtualPlatform.fmx C

Pagina 82

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 49  Right click InstBusClock and choose Add Port Connection Fabric Module dialog, Po

Pagina 83 - Overview

CIF Module - SimpleVSP 50 CoMET Version 5.9 – Tutorial Scroll down to the Nets entry in the Summary section. The Nets Summary shows a table wit

Pagina 84

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 51  In XML Tree View add the Net StdLogic0Net. Right Click Nets and choose Add Net. Fa

Pagina 85 - Specification

CIF Module - SimpleVSP 52 CoMET Version 5.9 – Tutorial Adding Ports Referring to the SimpleVSP Project Block Diagram, page 23, the VirtualPlatfor

Pagina 86 - Registers

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 53 Fabric Module dialog, Port tab, Properties panel:  Name: Type PlatformClock  Typ

Pagina 87 - Timer Enable Register (TER)

CIF Module - SimpleVSP 54 CoMET Version 5.9 – Tutorial The VirtualPlatform.fmx XML Tree View shows the new ports. Now we connect the VirtualPlat

Pagina 88

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 55 For the next procedure you can use either the VirtualPlatform.fmx Logic Connection Vi

Pagina 89 - Parameters

Contents ii CoMET Version 5.9 – Tutorial Prerequisites...

Pagina 90

CIF Module - SimpleVSP 56 CoMET Version 5.9 – Tutorial Checking Connections You can check connections against your block diagram using the Virtua

Pagina 91

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 57 Building the VirtualPlatform The VirtualPlatform must be built before it is added to

Pagina 92

CIF Module - SimpleVSP 58 CoMET Version 5.9 – Tutorial Building a Project  Choose Workspace/Build, or click the tool bar Build button The Out

Pagina 93

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 59 Adding a VirtualPlatform Module Instance to the VSP We now add and instance of the Vi

Pagina 94

CIF Module - SimpleVSP 60 CoMET Version 5.9 – Tutorial Fabric Module dialog, Module Instance tab Instance Name: Type VirtualPlatform1. The name

Pagina 95 - Adding Tasks

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 61 The SimpleVSP1.fmx file now contains VirtualPlatform1, an instance of the VirtualPla

Pagina 96 - TimerClock Slave

CIF Module - SimpleVSP 62 CoMET Version 5.9 – Tutorial Connecting the SimpleVSP Module Instances We now connect the module instance ports. Becaus

Pagina 97 - Adding Behavioral Code

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 63 stage we want to alter the number of memory blocks we can do it at this level. For th

Pagina 98

CIF Module - SimpleVSP 64 CoMET Version 5.9 – Tutorial One message indicates that CoMET has built the platform config (Prototype Configuration)

Pagina 99

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 65 The VirtualPlatform GenericMemory1 array size is specified by the NumberOfMemoryBloc

Pagina 100

Contents CoMET Version 5.9 – Tutorial iii Adding a Target Image...

Pagina 101

CIF Module - SimpleVSP 66 CoMET Version 5.9 – Tutorial We can now edit the start address and memory size of these blocks to suit our VPM. This is

Pagina 102 - Defining Macros

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 67 Creating and Compiling Target Code This tutorial does not cover compiling target code

Pagina 103

CIF Module - SimpleVSP 68 CoMET Version 5.9 – Tutorial /* define any additional handers required for your specific VPM */ /*********************

Pagina 104

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 69 Adding a Target Image We now add the target image to the SimpleVsp1 project. In the

Pagina 105 - Building the Project

CIF Module - SimpleVSP 70 CoMET Version 5.9 – Tutorial Project dialog: Click OK. The target image node appears under the Target Test node. Simu

Pagina 106

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 71 Unconnected Ports When you run a project, CoMET checks the integrity of the model. It

Pagina 107

CIF Module - SimpleVSP 72 CoMET Version 5.9 – Tutorial Debugging a Simulation CoMET allows you to debug both target code and hardware modules du

Pagina 108

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 73 Debug Options dialog.  H/W Model: Choose Debug  ARM926EJS (or other VPM): Choos

Pagina 109

CIF Module - SimpleVSP 74 CoMET Version 5.9 – Tutorial Obtaining a Value Change Dump The standard VCD format output is a useful tool for analysis

Pagina 110

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 75 The SimpleVSP1.pcx displays the BusMonitor parameter with value Enabled. Bus signals

Pagina 111

Contents iv CoMET Version 5.9 – Tutorial Determining When a Match Occurs...94 T

Pagina 112 - Modify Reset function

CIF Module - SimpleVSP 76 CoMET Version 5.9 – Tutorial Analyzing the VCD Events such as the reset and memory reads can be identified. Any VCD vi

Pagina 113

CIF Module - SimpleVSP CoMET Version 5.9 – Tutorial 77 Obtaining a Metrix Trace If you have the Metrix option, you can create a Metrix Confi

Pagina 115 - CODE ENDS

CoMET Version 5.9 – Tutorial 79 CIF Peripheral Model - SimpleTimer Overview This tutorial demonstrates to how construct a Peripheral Model and

Pagina 116

CIF Peripheral Model - SimpleTimer 80 CoMET Version 5.9 – Tutorial  You are familiar with viewing and editing an .fmx file. This is covered in

Pagina 117

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 81 Specification • The SimpleTimer is a 32 bit general purpose timer • The

Pagina 118

CIF Peripheral Model - SimpleTimer 82 CoMET Version 5.9 – Tutorial Registers The SimpleTimer requires registers to enable and configure the timer

Pagina 119

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 83 Timer Enable Register (TER) The Timer Enable Register (TER) is a 2-bit r

Pagina 120

CIF Peripheral Model - SimpleTimer 84 CoMET Version 5.9 – Tutorial Timer Interrupt Enable Register (TIER) The Timer Interrupt Enable Register (TI

Pagina 121 - Creating the IrqNet

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 85 Ports The SimpleTimer has the following ports: • Bus – connects to the

Pagina 122

Contents CoMET Version 5.9 – Tutorial v Metrix Output...

Pagina 123

CIF Peripheral Model - SimpleTimer 86 CoMET Version 5.9 – Tutorial Event Responses for SimpleTimer From the specification we can prepare the foll

Pagina 124 - Creating Target Code

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 87 Creating the SimpleTimer Project  Open CoMET  Choose File/Open Works

Pagina 125

CIF Peripheral Model - SimpleTimer 88 CoMET Version 5.9 – Tutorial Project: SimpleTimer dialog:  In the Module Class field, choose Peripheral

Pagina 126

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 89 Editing the SimpleTimer fmx file CoMET creates a CIF Peripheral Model pro

Pagina 127

CIF Peripheral Model - SimpleTimer 90 CoMET Version 5.9 – Tutorial Adding Ports Ports provide the input to and output from the Peripheral Mode. T

Pagina 128

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 91 The fmx file shows the ports as follows. Adding Tasks Tasks handle the i

Pagina 129 - Adding the Target Image

CIF Peripheral Model - SimpleTimer 92 CoMET Version 5.9 – Tutorial Add the following PortOrNetView elements to the fmx file. Name Type MatchInte

Pagina 130

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 93 Adding Behavioral Code We now implement the behavioral code associated wi

Pagina 131

CIF Peripheral Model - SimpleTimer 94 CoMET Version 5.9 – Tutorial Consequently, the code modeling the GTR (General Timer Register) behavior calc

Pagina 132 - Metrix Output

CIF Peripheral Model - SimpleTimer CoMET Version 5.9 – Tutorial 95 The CIF Peripheral Model Template The SimpleTimer project source files ar

Comentarios a estos manuales

Sin comentarios