Comet Labs 48-Port 10 Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Netzwerk-Switches Comet Labs 48-Port 10 herunter. Comet Labs 48-Port 10 User guide [en] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1

tutorial

Seite 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

Seite 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

Seite 5 - Contents

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

Seite 6

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

Seite 7 - Contents

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

Seite 8

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

Seite 9

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

Seite 10

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

Seite 11 - Introduction

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

Seite 12

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

Seite 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

Seite 14

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

Seite 15

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

Seite 16

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

Seite 17 - Creating a Source File

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

Seite 18

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

Seite 19

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

Seite 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

Seite 21

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

Seite 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

Seite 23 - Key Points

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

Seite 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

Seite 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

Seite 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:

Seite 28 - Prerequisites

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

Seite 29

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

Seite 30

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

Seite 31

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

Seite 32

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

Seite 33

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

Seite 34

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

Seite 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

Seite 36

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

Seite 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

Seite 38

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

Seite 39

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

Seite 40

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

Seite 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

Seite 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

Seite 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

Seite 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,

Seite 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

Seite 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

Seite 48

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

Seite 49

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

Seite 51

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

Seite 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

Seite 53

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

Seite 54

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

Seite 55

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

Seite 56 - Adding Ports

CCooMMEETT Version 5.9 TTuuttoorriiaall Document Version No: 1.0

Seite 57

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

Seite 58

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

Seite 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

Seite 60 - Checking Connections

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

Seite 61 - Building the VirtualPlatform

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

Seite 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

Seite 63

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

Seite 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

Seite 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

Seite 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

Seite 67

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

Seite 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

Seite 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

Seite 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

Seite 71

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 77

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

Seite 78 - Enabling Bus Monitoring

CoMET Version 5.9 – Tutorial i Contents Introduction...

Seite 79

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

Seite 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

Seite 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

Seite 82

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

Seite 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

Seite 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

Seite 85 - Specification

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

Seite 86 - Registers

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

Seite 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

Seite 88

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

Seite 89 - Parameters

Contents ii CoMET Version 5.9 – Tutorial Prerequisites...

Seite 90

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

Seite 91

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

Seite 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

Seite 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

Seite 94

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

Seite 95 - Adding Tasks

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

Seite 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

Seite 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

Seite 98

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

Seite 99

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

Seite 100

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

Seite 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

Seite 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

Seite 103

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 108

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

Seite 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

Seite 110

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

Seite 111

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

Seite 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

Seite 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

Seite 115 - CODE ENDS

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

Seite 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

Seite 117

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

Seite 118

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

Seite 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

Seite 120

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

Seite 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

Seite 122

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

Seite 123

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

Seite 124 - Creating Target Code

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

Seite 125

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

Seite 126

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

Seite 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

Seite 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

Seite 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

Seite 130

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

Seite 131

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

Seite 132 - Metrix Output

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

Kommentare zu diesen Handbüchern

Keine Kommentare