© 2004 Altera CorporationIFI Nios®II GMACIIUser GuideCore Version: 2009.09Document Version: 2010.01 rev 9.1Document Date: 01 2010
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 11IFI GMACII Implementation Design Flows supported− SOPC Builder− Encrypted VHDL Software examples Dev
© 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−
© 2010 Ingenieurbüro Für Ic-Technologie Page 13IFI GMACII Reference Design CycloneII 2C35 Development Board Reference Design− With GMII Interface− Fo
© 2010 Ingenieurbüro Für Ic-Technologie Page 14IFI_GMACIIIFI GMACII Reference Design
© 2010 Ingenieurbüro Für Ic-Technologie Page 15IFI GMACII Reference Design External DPRAM This example is included as source codeIt can be used as s
© 2010 Ingenieurbüro Für Ic-Technologie Page 16IFI GMACII Pricing Encrypted Netlist node locked: 5000 EURO Encrypted Netlist Floating Licens
© 2010 Ingenieurbüro Für Ic-Technologie Page 17IFI GMACII Verification Hardware Tested on − Cyclone/II/III Nios II Development Kits− StratixII Nios I
© 2010 Ingenieurbüro Für Ic-Technologie Page 18Contacting Technical Support Although we have made every effort to ensure that this SOPC Builder Ready
© 2004 Altera CorporationInstall How to install SOPC Builder Ready OpenCore Package Software Examples Installation Install the Driver Library Lic
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 21SOPC Builder Ready OpenCore PackageThe SOPC Builder Ready OpenCore Package contains all files required
© 2010 Ingenieurbüro Für Ic-Technologie Page 22Licensing OpenCorePlus LicenseThis package is shipped with a OpenCorePlus license, <Core installati
© 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
© 2004 Altera CorporationIntegrating the Core using SOPC Builder Prerequisites Adding the Core to your System Using IPToolBench About Documentati
© 2010 Ingenieurbüro Für Ic-Technologie Page 25Integrating the Core with your System using SOPC Builder This section contains instructions on the fol
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 28 Info + Documentation Parameters Information
© 2010 Ingenieurbüro Für Ic-Technologie Page 29
© 2010 Ingenieurbüro Für Ic-Technologie Page 3IFI GMACII Jumboframe support ( compiletime parameter )− Receivebuffer 4 (standard),8,16,32,64 or 128 k
© 2010 Ingenieurbüro Für Ic-Technologie Page 30 Selected system frequency Transmit Buffer Readback for easy software debugging(yes/no) Dualport RAM
© 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
© 2004 Altera CorporationReference Designs Running a Reference Design Creating a Software ProjectRun a Hardware Configuration
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 35Running a Reference Design Click "Generate" to generate the HDL files. Click "Exit&quo
© 2010 Ingenieurbüro Für Ic-Technologie Page 36Creating a Software Project File New Project− Select C/C++ Application− Click NextSelect the PTF o
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 39Port descriptionPortname Direction Usage Descriptionclk125 inputExternal125 MHz clock TX_CLK input Exte
© 2004 Altera CorporationContents Overview Install Integrating the Core using SOPC Builder Reference Designs Using the Core without Nios Necessa
© 2010 Ingenieurbüro Für Ic-Technologie Page 40Port descriptionPortname Direction Usage Descriptionxreaddata[31..0] inputExternalExternal DPRAM readda
© 2004 Altera CorporationNecessary Assignments Assumptions
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 43Necessary Assignments The necessary timing assignments are automatically written in SDC files for you
© 2004 Altera CorporationDetailed Information Address map standard buffers Address map jumbo buffers Registers DMA Transmitter Filters Referenc
© 2010 Ingenieurbüro Für Ic-Technologie Page 45Address map 1 standard buffersbyte address dword address register name0x00000000 0x00000000 Receive Cou
© 2010 Ingenieurbüro Für Ic-Technologie Page 46Address map 2 standard buffersbyte address dword address register name0x00003FC0 0x00000FF0 DMA Control
© 2010 Ingenieurbüro Für Ic-Technologie Page 47Address map 1 Advanced Features ONbyte address dword address register name0x00000000 0x00000000 Receive
© 2010 Ingenieurbüro Für Ic-Technologie Page 48byte address dword address register name0x0001FFA4 0x00007FE9 Configuration rd only0x0001FFA8 0x00007FE
© 2010 Ingenieurbüro Für Ic-Technologie Page 49byte address dword address register name0x0001FFC0 0x00007FF0 DMA Control0x0001FFC4 0x00007FF1 Receive
© 2004 Altera CorporationOverview Brief Description Suitable Applications Block Diagram Feature List Altera ImplementationContacting Technical S
© 2010 Ingenieurbüro Für Ic-Technologie Page 50Define macros 1 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 51Define macros 2 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 52Define macros 3 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 53Define macros 4 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 54Define macros 5 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 55Define macros 6 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 56Define macros 7 ifi_gmacii_regs.h
© 2010 Ingenieurbüro Für Ic-Technologie Page 57Define macros 8 ifi_gmacii_regs.h
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 59Details DMAthe GMACII includes an internal DMA controller with special features: alignment aware and b
© 2010 Ingenieurbüro Für Ic-Technologie Page 6Brief Description IFI_GMACII− This IP combines the advantages of the softwareflexibility with the high
© 2010 Ingenieurbüro Für Ic-Technologie Page 60Details transmitter paddingstarting with revision 1.7 the GMACII transmitter makes the padding to exte
© 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
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 64Summary for older GMACII revisions ARP request filter:Only valid ARP-requests are accepted (length and
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 66 Open ifi_hello_gmacii.h Modify MAC ADDR Modify IP address
© 2010 Ingenieurbüro Für Ic-Technologie Page 67 Burst Destination MAC Burst Destination IP
© 2010 Ingenieurbüro Für Ic-Technologie Page 68 Second set of MAC and IP address − Change the comments to use this
© 2010 Ingenieurbüro Für Ic-Technologie Page 69Reference Software Flow UDP BurstUSE YVALID FOR UDP BURSTTimer controlledHardwareTriggercontrolled01
© 2010 Ingenieurbüro Für Ic-Technologie Page 7Suitable Applications for GMACIIDATA,for example MeasurementSystemsGMACIIALTERA DevicePC SystemData Thro
© 2010 Ingenieurbüro Für Ic-Technologie Page 70Timer controlledOPEN_UDP_TXLoopcount > 0DoneNoYesUDP BURST = 1USE YVALID FOR UDP BURST = 0make heade
© 2010 Ingenieurbüro Für Ic-Technologie Page 71Hardware Trigger controlledOPEN_UDP_TXLoopcount > 0DoneNoYesUDP BURST = 1USE YVALID FOR UDP BURST =
© 2004 Altera CorporationEthernet Background Protocol Stack Fundamentals UDP TCPwhat is theoretical possible
© 2010 Ingenieurbüro Für Ic-Technologie Page 73Protocol Stack Fundamentals The layered modelProtocol stacks are made up of layersOSI 7 layer model of
© 2010 Ingenieurbüro Für Ic-Technologie Page 74Protocol Stack Fundamentals The MAC FramePLSPHYSICAL SIGNALINGMACMEDIA ACCESS CONTROLPMAPHYSICAL MEDIU
© 2010 Ingenieurbüro Für Ic-Technologie Page 75Protocol Stack Fundamentals Example: IP for TCP/IP or UDP/IP− Internet Protocol - IP Destination Addre
© 2010 Ingenieurbüro Für Ic-Technologie Page 76Protocol Stack Fundamentals Example: UDP for UDP/IP − User Datagramm Protocol - UDPIP Data4 Byte CRC2
© 2010 Ingenieurbüro Für Ic-Technologie Page 77UDP – User Datagram Protocol Simplest IP protocol for applications Limited reliability− No guarantee
© 2010 Ingenieurbüro Für Ic-Technologie Page 78Protocol Stack Fundamentals Example: TFTP for UDP/IP − Trivial File Transfer Protocol - TFTPUDP Data4
© 2010 Ingenieurbüro Für Ic-Technologie Page 79Protocol Stack Fundamentals Example: TCP for TCP/IP − Transmission Control Protocol - TCPDestination A
© 2010 Ingenieurbüro Für Ic-Technologie Page 8Not Suitable Applications for GMACIIPC SystemPC SystemPCSystem PCSystemGMACIIALTERA Deviceas Switch or H
© 2010 Ingenieurbüro Für Ic-Technologie Page 80TCP – Transmission Control Protocol Reliable− Guaranteed delivery – using sequence numbers and acknowl
© 2010 Ingenieurbüro Für Ic-Technologie Page 81Other protocols DHCP - Dynamic Host Configuration Protocol− Automatically assign an IP Address ARP –
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 84Revision HistoryRevisionDate Description Versioncode1.0 Aug 2005 Initial release 0x070550101.11.2 Nov 2
© 2010 Ingenieurbüro Für Ic-Technologie Page 85License AgreementPLEASE CAREFULLY REVIEW THE FOLLOWING TERMS AND CONDITIONS BEFORE USING THE IFI IP-MOD
© 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
© 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
© 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
© 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
© 2010 Ingenieurbüro Für Ic-Technologie Page 9Block DiagramDBGIG1 or user PHYDBGIG1100BASE-TX1000BASE-TFull duplexSlaveMACFilterARPICMPUDP/IPTCP/IPNi
Commentaires sur ces manuels