Altera Nios Ethernet Guia do Utilizador

Consulte online ou descarregue Guia do Utilizador para Barebones PC/estação de trabalho Altera Nios Ethernet. Altera Nios Ethernet User guide Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 89
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 0
1 2 3 4 5 6 ... 88 89

Resumo do Conteúdo

Página 1 - II GMACII

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

Página 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

Página 3

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

Página 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−

Página 5 - Overview

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

Página 6 - Brief Description

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

Página 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

Página 8

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

Página 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

Página 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

Página 11 - IFI GMACII Implementation

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

Página 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

Página 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

Página 14

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

Página 15

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

Página 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

Página 17 - IFI GMACII Verification

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

Página 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

Página 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

Página 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

Página 21

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

Página 22 - Licensing

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

Página 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

Página 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

Página 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

Página 26 -  Step 1: Generate

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

Página 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

Página 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

Página 29

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

Página 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

Página 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

Página 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

Página 33

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

Página 34 - GMACII_master

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

Página 35

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

Página 36 - Creating a Software Project

© 2004 Altera CorporationNecessary Assignments Assumptions

Página 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

Página 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

Página 39 - Port description

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

Página 40

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

Página 41 - Necessary Assignments

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

Página 42 - Assumptions

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

Página 43

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

Página 44 - Detailed Information

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

Página 45

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

Página 46

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

Página 47

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

Página 48

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

Página 49

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

Página 50 - Define macros 1

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

Página 51 - Define macros 2

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

Página 52 - Define macros 3

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

Página 53 - Define macros 4

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 64

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

Página 65

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

Página 66 -  Modify IP address

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

Página 67 -  Burst Destination IP

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

Página 68

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

Página 69 - Reference Software Flow

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

Página 70 - Timer controlled

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

Página 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

Página 72 - Protocol Stack Fundamentals

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

Página 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

Página 74

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

Página 75

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

Página 76

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

Página 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

Página 78

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

Página 79

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

Página 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 –

Página 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

Página 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

Página 83

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 89 - IFI Products and Services

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

Comentários a estes Manuais

Sem comentários