Altera Nios Ethernet Guía de usuario

Busca en linea o descarga Guía de usuario para Barebones Pc / Estación De Trabajo Altera Nios Ethernet. Altera Nios Ethernet User guide Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 89
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 0
1 2 3 4 5 6 ... 88 89

Indice de contenidos

Pagina 1 - II GMACII

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

Pagina 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

Pagina 3

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

Pagina 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−

Pagina 5 - Overview

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

Pagina 6 - Brief Description

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

Pagina 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

Pagina 8

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

Pagina 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

Pagina 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

Pagina 11 - IFI GMACII Implementation

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

Pagina 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

Pagina 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

Pagina 14

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

Pagina 15

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

Pagina 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

Pagina 17 - IFI GMACII Verification

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

Pagina 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

Pagina 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

Pagina 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

Pagina 21

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

Pagina 22 - Licensing

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

Pagina 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

Pagina 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

Pagina 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

Pagina 26 -  Step 1: Generate

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

Pagina 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

Pagina 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

Pagina 29

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

Pagina 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

Pagina 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

Pagina 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

Pagina 33

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

Pagina 34 - GMACII_master

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

Pagina 35

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

Pagina 36 - Creating a Software Project

© 2004 Altera CorporationNecessary Assignments Assumptions

Pagina 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

Pagina 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

Pagina 39 - Port description

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

Pagina 40

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

Pagina 41 - Necessary Assignments

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

Pagina 42 - Assumptions

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

Pagina 43

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

Pagina 44 - Detailed Information

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

Pagina 45

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

Pagina 46

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

Pagina 47

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

Pagina 48

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

Pagina 49

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

Pagina 50 - Define macros 1

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

Pagina 51 - Define macros 2

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

Pagina 52 - Define macros 3

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

Pagina 53 - Define macros 4

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 64

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

Pagina 65

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

Pagina 66 -  Modify IP address

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

Pagina 67 -  Burst Destination IP

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

Pagina 68

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

Pagina 69 - Reference Software Flow

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

Pagina 70 - Timer controlled

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

Pagina 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

Pagina 72 - Protocol Stack Fundamentals

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

Pagina 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

Pagina 74

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

Pagina 75

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

Pagina 76

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

Pagina 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

Pagina 78

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

Pagina 79

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

Pagina 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 –

Pagina 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

Pagina 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

Pagina 83

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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 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

Pagina 89 - IFI Products and Services

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

Comentarios a estos manuales

Sin comentarios