Altera Nios Ethernet Guide de l'utilisateur

Naviguer en ligne ou télécharger Guide de l'utilisateur pour PC/postes de travail Altera Nios Ethernet. Altera Nios Ethernet User guide Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 89
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
© 2004 Altera Corporation
IFI Nios
®
II GMACII
User Guide
Core Version: 2009.09
Document Version: 2010.01 rev 9.1
Document Date: 01 2010
Vue de la page 0
1 2 3 4 5 6 ... 88 89

Résumé du contenu

Page 1 - II GMACII

© 2004 Altera CorporationIFI Nios®II GMACIIUser GuideCore Version: 2009.09Document Version: 2010.01 rev 9.1Document Date: 01 2010

Page 2 - IFI GMACII

© 2010 Ingenieurbüro Für Ic-Technologie Page 10IFI GMACII Feature ListStandard buffers With buffers for jumbo frames 1000 Base-T− Full duplex 100 Ba

Page 3

© 2010 Ingenieurbüro Für Ic-Technologie Page 11IFI GMACII Implementation Design Flows supported− SOPC Builder− Encrypted VHDL Software examples Dev

Page 4 - Contents

© 2010 Ingenieurbüro Für Ic-Technologie Page 12OpenCore Plus Feature Evaluate the IFI GMACII on your board or the Altera Nios II development boards−

Page 5 - Overview

© 2010 Ingenieurbüro Für Ic-Technologie Page 13IFI GMACII Reference Design CycloneII 2C35 Development Board Reference Design− With GMII Interface− Fo

Page 6 - Brief Description

© 2010 Ingenieurbüro Für Ic-Technologie Page 14IFI_GMACIIIFI GMACII Reference Design

Page 7 - Measurement

© 2010 Ingenieurbüro Für Ic-Technologie Page 15IFI GMACII Reference Design External DPRAM This example is included as source codeIt can be used as s

Page 8

© 2010 Ingenieurbüro Für Ic-Technologie Page 16IFI GMACII Pricing Encrypted Netlist node locked: 5000 EURO Encrypted Netlist Floating Licens

Page 9 - Block Diagram

© 2010 Ingenieurbüro Für Ic-Technologie Page 17IFI GMACII Verification Hardware Tested on − Cyclone/II/III Nios II Development Kits− StratixII Nios I

Page 10

© 2010 Ingenieurbüro Für Ic-Technologie Page 18Contacting Technical Support Although we have made every effort to ensure that this SOPC Builder Ready

Page 11 - IFI GMACII Implementation

© 2004 Altera CorporationInstall How to install SOPC Builder Ready OpenCore Package Software Examples Installation Install the Driver Library Lic

Page 12 - OpenCore Plus Feature

© 2010 Ingenieurbüro Für Ic-Technologie Page 2IFI GMACII High Performance Gigabit Ethernet MAC− Up to 114 MByte/s UDP Data  Easily integrated into N

Page 13 - IFI GMACII Reference Design

© 2010 Ingenieurbüro Für Ic-Technologie Page 20Install the IFI GMACII Before you can start using Altera IFI GMACII functions, you must install the IF

Page 14

© 2010 Ingenieurbüro Für Ic-Technologie Page 21SOPC Builder Ready OpenCore PackageThe SOPC Builder Ready OpenCore Package contains all files required

Page 15

© 2010 Ingenieurbüro Für Ic-Technologie Page 22Licensing OpenCorePlus LicenseThis package is shipped with a OpenCorePlus license, <Core installati

Page 16 - IFI GMACII Pricing

© 2010 Ingenieurbüro Für Ic-Technologie Page 23Set Up Licensing To install your license, you can either append the license to your license.dat file o

Page 17 - IFI GMACII Verification

© 2004 Altera CorporationIntegrating the Core using SOPC Builder Prerequisites Adding the Core to your System Using IPToolBench About Documentati

Page 18 - Contacting Technical Support

© 2010 Ingenieurbüro Für Ic-Technologie Page 25Integrating the Core with your System using SOPC Builder This section contains instructions on the fol

Page 19 - © 2004 Altera Corporation

© 2010 Ingenieurbüro Für Ic-Technologie Page 26Adding the Core to your System This walkthrough involves the following steps:− Create a New Quartus II

Page 20 - − Solaris & Linux

© 2010 Ingenieurbüro Für Ic-Technologie Page 27Adding the Core to your SOPC System Launch SOPC Builder from Quartus II (Tools menu). Select the core

Page 21

© 2010 Ingenieurbüro Für Ic-Technologie Page 28 Info + Documentation Parameters Information

Page 22 - Licensing

© 2010 Ingenieurbüro Für Ic-Technologie Page 29

Page 23 - Set Up Licensing

© 2010 Ingenieurbüro Für Ic-Technologie Page 3IFI GMACII Jumboframe support ( compiletime parameter )− Receivebuffer 4 (standard),8,16,32,64 or 128 k

Page 24 - Prerequisites

© 2010 Ingenieurbüro Für Ic-Technologie Page 30 Selected system frequency Transmit Buffer Readback for easy software debugging(yes/no) Dualport RAM

Page 25

© 2010 Ingenieurbüro Für Ic-Technologie Page 31Adding the Core to your System Specify desired instance name, base address, and IRQ. Connect your Ava

Page 26 -  Step 1: Generate

© 2004 Altera CorporationReference Designs Running a Reference Design Creating a Software ProjectRun a Hardware Configuration

Page 27

© 2010 Ingenieurbüro Für Ic-Technologie Page 33Running a Reference Design Start Quartus II, version 9.0 or higher.  Open the Quartus II project &l

Page 28 -  Information

© 2010 Ingenieurbüro Für Ic-Technologie Page 34SOPC Connections GMACII_master is master for− onchip_memory_DPRAM_64k slave s2− onchip_memory_DPRAM_4k

Page 29

© 2010 Ingenieurbüro Für Ic-Technologie Page 35Running a Reference Design Click "Generate" to generate the HDL files. Click "Exit&quo

Page 30

© 2010 Ingenieurbüro Für Ic-Technologie Page 36Creating a Software Project File  New  Project− Select C/C++ Application− Click NextSelect the PTF o

Page 31

© 2010 Ingenieurbüro Für Ic-Technologie Page 37Syslib Settings Change the memory settings to any wished RAM which is big enough and fast enough

Page 32 - Running a Reference Design

© 2010 Ingenieurbüro Für Ic-Technologie Page 38Run a Hardware Configuration Select your Project within the C/C++ Projects View Run  Run.. Select N

Page 33

© 2010 Ingenieurbüro Für Ic-Technologie Page 39Port descriptionPortname Direction Usage Descriptionclk125 inputExternal125 MHz clock TX_CLK input Exte

Page 34 - GMACII_master

© 2004 Altera CorporationContents Overview Install Integrating the Core using SOPC Builder Reference Designs Using the Core without Nios Necessa

Page 35

© 2010 Ingenieurbüro Für Ic-Technologie Page 40Port descriptionPortname Direction Usage Descriptionxreaddata[31..0] inputExternalExternal DPRAM readda

Page 36 - Creating a Software Project

© 2004 Altera CorporationNecessary Assignments Assumptions

Page 37 - Syslib Settings

© 2010 Ingenieurbüro Für Ic-Technologie Page 42Assumptions Depending on the used PHY Interface You have to provide a 125MHz Clock− This 125MHz clock

Page 38 - Your project

© 2010 Ingenieurbüro Für Ic-Technologie Page 43Necessary Assignments  The necessary timing assignments are automatically written in SDC files for you

Page 39 - Port description

© 2004 Altera CorporationDetailed Information Address map standard buffers Address map jumbo buffers Registers DMA Transmitter Filters Referenc

Page 40

© 2010 Ingenieurbüro Für Ic-Technologie Page 45Address map 1 standard buffersbyte address dword address register name0x00000000 0x00000000 Receive Cou

Page 41 - Necessary Assignments

© 2010 Ingenieurbüro Für Ic-Technologie Page 46Address map 2 standard buffersbyte address dword address register name0x00003FC0 0x00000FF0 DMA Control

Page 42 - Assumptions

© 2010 Ingenieurbüro Für Ic-Technologie Page 47Address map 1 Advanced Features ONbyte address dword address register name0x00000000 0x00000000 Receive

Page 43

© 2010 Ingenieurbüro Für Ic-Technologie Page 48byte address dword address register name0x0001FFA4 0x00007FE9 Configuration rd only0x0001FFA8 0x00007FE

Page 44 - Detailed Information

© 2010 Ingenieurbüro Für Ic-Technologie Page 49byte address dword address register name0x0001FFC0 0x00007FF0 DMA Control0x0001FFC4 0x00007FF1 Receive

Page 45

© 2004 Altera CorporationOverview Brief Description Suitable Applications Block Diagram Feature List Altera ImplementationContacting Technical S

Page 46

© 2010 Ingenieurbüro Für Ic-Technologie Page 50Define macros 1 ifi_gmacii_regs.h

Page 47

© 2010 Ingenieurbüro Für Ic-Technologie Page 51Define macros 2 ifi_gmacii_regs.h

Page 48

© 2010 Ingenieurbüro Für Ic-Technologie Page 52Define macros 3 ifi_gmacii_regs.h

Page 49

© 2010 Ingenieurbüro Für Ic-Technologie Page 53Define macros 4 ifi_gmacii_regs.h

Page 50 - Define macros 1

© 2010 Ingenieurbüro Für Ic-Technologie Page 54Define macros 5 ifi_gmacii_regs.h

Page 51 - Define macros 2

© 2010 Ingenieurbüro Für Ic-Technologie Page 55Define macros 6 ifi_gmacii_regs.h

Page 52 - Define macros 3

© 2010 Ingenieurbüro Für Ic-Technologie Page 56Define macros 7 ifi_gmacii_regs.h

Page 53 - Define macros 4

© 2010 Ingenieurbüro Für Ic-Technologie Page 57Define macros 8 ifi_gmacii_regs.h

Page 54 - Define macros 5

© 2010 Ingenieurbüro Für Ic-Technologie Page 58VersionByte 3Bit31 30 29 28 27 26 25 24read Month 7 Month 6 Month 5 Month 4 Month 3 Month 2 Month 1 Mon

Page 55 - Define macros 6

© 2010 Ingenieurbüro Für Ic-Technologie Page 59Details DMAthe GMACII includes an internal DMA controller with special features: alignment aware and b

Page 56 - Define macros 7

© 2010 Ingenieurbüro Für Ic-Technologie Page 6Brief Description IFI_GMACII− This IP combines the advantages of the softwareflexibility with the high

Page 57 - Define macros 8

© 2010 Ingenieurbüro Für Ic-Technologie Page 60Details transmitter paddingstarting with revision 1.7 the GMACII transmitter makes the padding to exte

Page 58 - Base Address Offset FF8

© 2010 Ingenieurbüro Für Ic-Technologie Page 61Filter Details MAC-IDFiltering the MAC-ID, the MAC-IP and IP-Header is implemented to reduce the overh

Page 59 - Details DMA

© 2010 Ingenieurbüro Für Ic-Technologie Page 62Filter Details MAC-IP MAC-IP filter:Each device has to have it's own MAC-IP, which has to be load

Page 60 - Details transmitter

© 2010 Ingenieurbüro Für Ic-Technologie Page 63Filter Details frame types and length  We have a filter to detect the type of the frame− ARP − IP whic

Page 61 - Filter Details MAC-ID

© 2010 Ingenieurbüro Für Ic-Technologie Page 64Summary for older GMACII revisions ARP request filter:Only valid ARP-requests are accepted (length and

Page 62 - Filter Details MAC-IP

© 2010 Ingenieurbüro Für Ic-Technologie Page 65Reference-software for NIOS II and IDE project template in the IDE − IFI_hello_GMACII Files− ifi_hell

Page 63 - − IP which is divided in

© 2010 Ingenieurbüro Für Ic-Technologie Page 66 Open ifi_hello_gmacii.h Modify MAC ADDR Modify IP address

Page 64

© 2010 Ingenieurbüro Für Ic-Technologie Page 67 Burst Destination MAC Burst Destination IP

Page 65

© 2010 Ingenieurbüro Für Ic-Technologie Page 68 Second set of MAC and IP address − Change the comments to use this

Page 66 -  Modify IP address

© 2010 Ingenieurbüro Für Ic-Technologie Page 69Reference Software Flow UDP BurstUSE YVALID FOR UDP BURSTTimer controlledHardwareTriggercontrolled01

Page 67 -  Burst Destination IP

© 2010 Ingenieurbüro Für Ic-Technologie Page 7Suitable Applications for GMACIIDATA,for example MeasurementSystemsGMACIIALTERA DevicePC SystemData Thro

Page 68

© 2010 Ingenieurbüro Für Ic-Technologie Page 70Timer controlledOPEN_UDP_TXLoopcount > 0DoneNoYesUDP BURST = 1USE YVALID FOR UDP BURST = 0make heade

Page 69 - Reference Software Flow

© 2010 Ingenieurbüro Für Ic-Technologie Page 71Hardware Trigger controlledOPEN_UDP_TXLoopcount > 0DoneNoYesUDP BURST = 1USE YVALID FOR UDP BURST =

Page 70 - Timer controlled

© 2004 Altera CorporationEthernet Background Protocol Stack Fundamentals UDP TCPwhat is theoretical possible

Page 71 - Hardware Trigger controlled

© 2010 Ingenieurbüro Für Ic-Technologie Page 73Protocol Stack Fundamentals The layered modelProtocol stacks are made up of layersOSI 7 layer model of

Page 72 - Protocol Stack Fundamentals

© 2010 Ingenieurbüro Für Ic-Technologie Page 74Protocol Stack Fundamentals The MAC FramePLSPHYSICAL SIGNALINGMACMEDIA ACCESS CONTROLPMAPHYSICAL MEDIU

Page 73

© 2010 Ingenieurbüro Für Ic-Technologie Page 75Protocol Stack Fundamentals Example: IP for TCP/IP or UDP/IP− Internet Protocol - IP Destination Addre

Page 74

© 2010 Ingenieurbüro Für Ic-Technologie Page 76Protocol Stack Fundamentals Example: UDP for UDP/IP − User Datagramm Protocol - UDPIP Data4 Byte CRC2

Page 75

© 2010 Ingenieurbüro Für Ic-Technologie Page 77UDP – User Datagram Protocol Simplest IP protocol for applications Limited reliability− No guarantee

Page 76

© 2010 Ingenieurbüro Für Ic-Technologie Page 78Protocol Stack Fundamentals Example: TFTP for UDP/IP − Trivial File Transfer Protocol - TFTPUDP Data4

Page 77 - UDP – User Datagram Protocol

© 2010 Ingenieurbüro Für Ic-Technologie Page 79Protocol Stack Fundamentals Example: TCP for TCP/IP − Transmission Control Protocol - TCPDestination A

Page 78

© 2010 Ingenieurbüro Für Ic-Technologie Page 8Not Suitable Applications for GMACIIPC SystemPC SystemPCSystem PCSystemGMACIIALTERA Deviceas Switch or H

Page 79

© 2010 Ingenieurbüro Für Ic-Technologie Page 80TCP – Transmission Control Protocol Reliable− Guaranteed delivery – using sequence numbers and acknowl

Page 80 -  Also provides ports

© 2010 Ingenieurbüro Für Ic-Technologie Page 81Other protocols DHCP - Dynamic Host Configuration Protocol− Automatically assign an IP Address ARP –

Page 81 - Other protocols

© 2010 Ingenieurbüro Für Ic-Technologie Page 82What’s theoretical possible 1000 Million Bit/s on the line− 119,2 MByte/s gross amount (1 MByte = 104

Page 82 - What’s theoretical possible

© 2010 Ingenieurbüro Für Ic-Technologie Page 83What’s theoretical possible On PC-Side− The networkcard Datapath may be limited by PCI Bus (32 Bit 33

Page 83

© 2010 Ingenieurbüro Für Ic-Technologie Page 84Revision HistoryRevisionDate Description Versioncode1.0 Aug 2005 Initial release 0x070550101.11.2 Nov 2

Page 84 - Revision History

© 2010 Ingenieurbüro Für Ic-Technologie Page 85License AgreementPLEASE CAREFULLY REVIEW THE FOLLOWING TERMS AND CONDITIONS BEFORE USING THE IFI IP-MOD

Page 85 - License Agreement

© 2010 Ingenieurbüro Für Ic-Technologie Page 862. License Restrictions: YOU MAY NOT USE THE IFI IP-MODULE EXCEPT AS EXPRESSLY PROVIDED FOR IN THIS AGR

Page 86

© 2010 Ingenieurbüro Für Ic-Technologie Page 877. Representation: Each party represents that it has the right to enter into this Agreement and to perf

Page 87

© 2010 Ingenieurbüro Für Ic-Technologie Page 8810. General:10.1 YOU may not sublicense, assign, or transfer this license, or disclose any trade secret

Page 88

© 2010 Ingenieurbüro Für Ic-Technologie Page 89IFI Products and Services Dedicated to Altera since 1985 IPs− GMACII− CAN2.0B− USB− MediaLB− IEEE 158

Page 89 - IFI Products and Services

© 2010 Ingenieurbüro Für Ic-Technologie Page 9Block DiagramDBGIG1 or user PHYDBGIG1100BASE-TX1000BASE-TFull duplexSlaveMACFilterARPICMPUDP/IPTCP/IPNi

Commentaires sur ces manuels

Pas de commentaire