Home
HSMC-NET
Contents
1. S CLKp HSMC CLKIN pO S CLKn HSMC Tx cO gt Wo QTH 090 ALTERA Figure 3 1 The pin outs on the HSMC connector The Table 3 1 below lists the HSMC signal direction and description Q The power pins are not shown in the Table 3 1 12 Terasic HSMC NET User Manual www terasic com www Cerasic com ANOTE RYA Table 3 1 The pin assignments for the HSMC connector J1 Signal Name NET1_S_RX_p NET1_S_RX_n NET1_RX_CRS NET1 S TX p NET1 RX D7 NET1 S TX n NET1 RX D1 NET1 RX D5 NET1 RX D2 NET1 RX D6 NET1 RX DO NET1 RX D3 NET1 RX D4 NET1 RX COL NET1 RX DV NET1 LED LINK1000 NET1 RX CLK NET1 TX D1 NET1 TX CLK NET1 TX D5 NET1 RX ER NET1 TX ER NET1 TX D6 NET1 TX EN NET1 TX D7 NET1 TX DO NET1 RESETn NET1 TX D4 NET1 MDC NET1 MDIO NET1 TX D2 NET1 INTn NET1 TX D3 GTX CLK HSMC Pin Number 42 44 47 48 49 50 53 55 56 59 60 61 62 65 66 67 68 71 72 73 74 77 78 79 80 83 84 85 86 89 90 91 92 95 Direction Input Input Input Output Input Output input input input input input input Input input input input input output input output input output output output output output output output output inout output output output output 13 Terasic HSMC_NET User Manual www terasic com Description SGMII receive data positiv
2. B This section describes the procedures of running the demonstration FPGA Configuration Demonstration Setup File Locations and Instructions e Project directory Demo Batch e Reminder Select the appropriate DE3 Device Folder 26 Terasic HSMC NET User Manual www terasic com www Cerasic com S RYA e Bit Stream used DE3 NET DDR2 sof amp simple socket server elf e Note To compile the Quartus Project requires the Triple Speed Ethernet License which can be obtained from Altera e Confirm the THCB HFF adaptor is connected to the DE3 HSTC connector before connecting the HSMC NET daughter board e Poweron the DE3 board with the USB cable connected to the USB Blaster port as well as connecting the Ethernet Cable from the Gateway device to the Ethernet Transceiver e Open the Simple Socket Server by executing the de3_net bat file where the IP address and port number are assigned as shown below in x PHY 6 6 Auto Negotiation PASSED F PHY H H Checking link PHY A A Link established PHY H H Speed 188 Duplex Full reset hit neuer cleared 18882 CHD COHFIG HxHBHBHH2HBH Mode changed to GMII to copper mode Disable KGMII Timing Control PHY reset post initialization CMD COHFIG BxBHdBBBH2H3 tse_sqdma_read_init descriptor chain desc lt i depth created mctest init called IP address of eti 192 168 1 234 Created Inet main task Prio 227 Created
3. clock tick task Prio 35 Acquired IP address via DHCP client for interface eti IP address 192 168 21 181 Subnet Mask 255 255 255 868 Gateway 192 168 21 1 Simple Socket Server starting up sss_taskl Simple Socket Server listening on port 38 Created simple socket server task amp Prio 4d Figure 4 12 Simple Socket Server e To establish connection start the telnet client session by executing open_telnet bat file and include the IP address assigned by the DHCP server provided IP along with the port number as shown below in 21 w rasic com Terasic HSMC_NET User Manual www terasic com 2 x 1H TER FH Hicrosoft Telnet Client Escape PFE CTRL 1 Microsoft Telnet open 172 168 21 181 38 Figure 4 13 Telnet Client e From the Simple Socket Server Menu enter the commands in the telnet session Start the session by initializing the seven segment LED by entering the letter s followed by a return Entering a number from zero through three followed by a return causes the corresponding LEDs D0 D3 to toggle on or off on the DE3 host board e Observe the LED indications on the HSMC NET daughter board showing what speed 15 connected as well as the LEDs D4 D7 blinking sequence is a lot faster connected to 1000Mbps compared to 100Mbps Le fr BS VB 4 0 Overview B This section describes the design concepts for the HSMC NET demonstration The Simple S
4. 0 gm tx en gm tx err eth_ mode set 1000 set 10 en 10 10 100 1000 Ethernet MAC rx_clk m_rx_d 3 0 m_rx_en m rx err gm rx 7 0 gm rx dv gm rx err Figure 4 7 shows how gigabit Ethernet PHYs are connected to the MAC via GMII Terasic HSMC NET User Manual 22 www terasi c com NOS RYA In this next section describes the steps to create the Simple Socket Server using Nios II We create a new project in Nios II using the project template Simple Socket Server The PTF file created using the SOPC builder in Quartus II 1s used m the Select Target Hardware section Hew Project Nios H C C Application SOFC Builder system file must be specified simple socket server specify Location Location E NboardXHET v 1 0 0 CDROMMIO MExampleziDESADE3 WET 150 GMII WET1 softs Select Target Hardware CFU Select Froject Template Blank Project Board Diagnostics Lount Binary Hello Freestanding Hello Microl 0S II Hello World Hello World Small Memory Test Memory Test Small Simple Socket Server Simple Socket Server RGMIIJ Heb Server Heb Server EGMIIJ Description Runs a TCP IP socket server Details Simple Socket Server uses the industry standard Sockets interface to TCP IP This application shows how to initialize the HicheStack TCP IF Stack and run a simple server application allowing a FC to communicate with a Hios II system via Ether
5. J1 e Marvell 88E1111 Ethernet Device U2 U3 e Voltage Regulator REGI REG2 e 2C EEPORM UI e LED Configuration 2 2 Block Diagram Figure 2 3 shows the block diagram of the HSMC NET board Terasic HSMC NET User Manual www terasic com www terasic com MAC Interface xL OLIN 019 00 OLSN OL OLAN XL OLAN eB MAC Interface I2C Interface arem LLAN ML LL3N 00L LLIN OL LL3N 2 m D S lt gt Figure 2 3 The block diagram of the HSMC NET board Terasic HSMC_NET User Manual www terasic com HSMC Connector www terasic com Chapter 3 Board Components This section illustrates the detailed information of the components connector interfaces and the pin mapping tables of the HSMC NET board 3 1 The HSMC NET Connector B This section describes pin definition of the HSMC NET interface onboard All the control and data signals of the Ethernet transmitter and receiver are connected to the HSMC connector so users can fully control the HSMC daughter board through the HSMC interface Power is derived from 3 3V and 12V of the HSMC connector Terasic HSMC NET User Manual www terasic com www terasic com HSMC SCL TDO2TDI Terasic HSMC_NET User Manual www Cerasic com 10 HSMC SDA TDO2TDI www terasic com NETO S CLKp HSMC CLKIN p1 NETO S CLKn HSMC CLKIN n1 NET1 S RX p NET1 S n NET1 S TX p NET1 S TX n NET1 RX D2 NE
6. establish connection with the Simple Socket Server where it 1s continuously listening on the port Once the connection is established between the Telnet client and Simple Socket server the Telnet client is able to send packets which are received by the Nios II processor and through the Simple Socket Server it will send server command to the DE3 The packet sent contains LED command which is extracted and dispatched to the LED command queue for processing by the LED management tasks 4 7 Nios Program B This section describes the design flow and the Nios II software components 29 Terasic HSMC NET User Manual www terasic com www Cerasic Figure 4 15 Nios Program Software Architecture Figure 4 15 shows the software architecture of the Nios Program for the simple socket server The top block containing the Nios II processor and the necessary hardware to be implemented into the DE3 host board The software device drivers contain the necessary device drivers needed for the Ethernet and other hardware components to function The HAL API block provides the interface for the software device drivers while the MicroC OS II provides communication services to the NicheStack and the Simple Socket Server The NicheStack TCP IP Stack software block provides networking services to the application block where it contains the tasks for Simple Socket Server and also LED management 30 Terasic HSMC NET User Manual www terasic com Chapt
7. D4 NETO TX D7 NETO RX COL NETO RX ER NETO RX D6 NETO TX ER NETO RX D5 NETO TX EN NETO RX D3 NETO TX DO NETO RX D1 NETO TX D4 NETO RX CLK NETO TX D6 NETO TX CLK NETO MDIO NETO TX D1 NETO MDC NETO TX D2 NETO INTn NETO TX D3 NETO RESETn NETO S RX p NETO S RX n NETO S TX p S CLKp 96 97 98 101 102 103 104 107 108 109 110 113 114 115 116 119 120 121 122 125 126 127 128 131 132 133 134 137 138 139 140 146 149 151 155 156 input output input input input input input input input output input output input input input output input output input output input output input output input inout output output output output output output input input output input Terasic HSMC_NET User Manual www terasic com 14 SGMII 625 MHz positive receive clock Ethernet 0 Transmit Clock Ethernet 0 SGMII 625 MHz negative receive clock Ethernet 0 Receive code group bit 2 Ethernet 0 Parallel LED output for link indicator Ethernet 0 Receive code group bit 0 Ethernet 0 Carrier Sense pin Ethernet 0 Receive data valid pin Ethernet 0 Receive code group bit 7 Ethernet 0 Transmit code group bit 5 Ethernet 0 Receive code group bit 4 Ethernet 0 Transmit code group bit 7 Ethernet 0 GMII and MII Collision pin Ethernet 0 Receive Error pin Ethernet 0 Receive code group bit 6 Ethernet 0 Transmit Error Pin Ethernet 0 Receive code gro
8. EPROM VCC33 HSMC SDA iis ic RSS VCC33 R36 R1 Default Address 0x0 2k VCC33 Figure 3 2 The block diagram of the EEPROM and HSMC connector _ Table 5 2 The pin assignments of the EEPROM 01 Table 3 2 The pin assignments of the EEPROM UT EEPROM Pin EEPROM Signal X HSMCPin HSMC Signal Name m Number Name Number 5 HSMC_SDA 33 HSMC_SDA 6 HSMC SCL 34 HSMC SCL 15 Terasic HSMC NET User Manual www terasic com www Cerasic com Chapter 4 Demonstrations ee This chapter illustrates how to build a simple socket server created in Nios II 4 1 Introduction B This section describes the functionality of the demonstration briefly In this demonstration we use DE3 as the host board connected to the HSMC NET daughter board However the HSMC NET and Cyclone III FPGA Starter Kit Demo is also available in the HSMC NET CD ROM We will illustrate how to create a simple socket server generated in Nios II using the Ethernet daughter board with the DE3 host board As indicated in the block diagram in Figure 4 1 the Nios II processor is used to communicate with the Client via 88E1111 Ethernet Device Terasic HSMC_NET User Manual www terasic com www 1000 100 10 Mbps CAT 5 Gateway with DHCP Ethernet Daughter Card FPGA Ethernet Daughter Card Nios ll Simple Socket Server Figure 4 1 Block diagram of demonstration As
9. MC NET Webpage for New Main boatd 31 I Terasic HSMC_NET User Manual www terasic com Chapter 1 Introduction The Terasic HSMC NET is a Gigabit Ethernet transceiver with a High Speed Mezzanine Connector HSMC interface It offers network transfers of up to 1 Gbps with the host board using a HSMC connector Also it provides a fully integrated Ethernet solution enabling fast implementation design shortening development times and allows you to focus on the core functions of the system design Lastly the HSMC NET can be connected any HSMC HSTC interfaces 1 1 Features Figure 1 15 5 the photo of the HSMC NET board The important features are listed below e One HSMC connector for interface conversion which is fully compatible with Cyclone III Starter Kit and DE3 host boards e Duel Port Integrated 10 100 1000 Gigabit Ethernet transceiver Supports GMII MII RGMII TBI MAC interfaces for direct connection to a MAC S witch port e Dynamically configurable to support 10Mbps 100Mbps Fast Ethernet or 1000Mbps Gigabit Ethernet operation e Uses standard Cat 5 UTP unshielded twisted pair cabling e Requires a 25 MHz reference clock driven from a dedicated oscillator e Complete Reference Designs Terasic HSMC_NET User Manual www terasic com www Figure 1 1 The HSMC NET board 1 2 About the KIT This section describes the package conte
10. Part of the Nios II NicheStack TCP IP Network Stack is a software suite of networking protocols designed to provide an optimal solution for designing network connected embedded devices with the Nios II processor A telnet client application is used to communicate with the simple socket server issuing commands over a TCP IP socket to the Ethernet connected NicheStack TCP IP Stack running Nios II on the DE3 host board with a simple socket server The Simple Socket Server continues to listen for commands on a TCP IP port and operates the DE3 LEDs according to the commands from the telnet client NicheStack TCP IP stack uses the MicroC OS If RTOS multithreaded environment to provide immediate access to a stack for Ethernet connectivity for the Nios II processor The Nios II processor system contains an Ethernet interface or media access control MAC 4 2 How the Demonstration is built The section describes the steps using Quartus II Nios and SOPC builder in generating the demonstration The demonstration is setup using the DE3 System builder v1 4 2 by configuring the DE3 I O components and also building a connection between DE3 and HSMC NET In DE3 configuration we enabled the IO HSTC connector Group C to connect to the HSMC NET shown in Figure 4 2 Also we want to enable the IO Group B connector to use the DDR2 SO DIMM in addition enabling LED Seg7 and Button which are used in the demonstration Terasic HSMC NET User Manual www terasic co
11. T1 RX DO NET1 RX D4 NET1 RX DV NET1 RX CLK NET1 TX CLK NET1 RX ER NET1 TX D6 NET1 TX D7 NET1 RESETn NET1 MDC NET1 TX D2 NET1 TX D3 161 162 164 11 Terasic HSMC_NET User Manual www Cerasic com VCC33 IO KO OO IN IN IN IN IN IO IO O1 O1 O1 in pH pA D gt KO IN gt IN O1 C2 j N O1 IN CO gt KO CRS NET1 RX 07 D1 NET1 RX D5 NET1 RX D6 NET1 RX D3 COL NET1 LED LINK1000 NET1 TX D1 NET1 TX D5 NET1 TX ER NET1 TX EN 1 TX DO NET1 TX D4 NET1 MDIO NET1 INTn HSMC CLKOUT 1 NET1 GTX HSMC CLKOUT n1 NETO GTX CLK www terasic com 165 169 166 170 ___ 1 168 NETO LED LINK1000 102 101 NET0_RX_D2 NETO RX CRS 104 NETO RX DO NETO RX D7 108 107 NETO RX DV NETO RX D4 110 109 NETO RX D5 B NETO RX COL 114 NETO TX D7 NETO RX D6 116 NETO RX ER a NETO RX D5 20 119 NET0_TX_ER NET0_RX_D3 122 NETO TX EN 124 123 NETO RX D1 126 NETO TX DO NETO RX CLK 128 127 NETO TX D4 NETO TX CLK 132 NETO TX D6 TX 01 134 NETO MDIO 136 135 TX 02 138 NETO MDC NETO TX D3 140 NETO INTn 144 14 NETO RESETn 146 148 NETO S RX 150 NETO S RX n 152 154 156 158 160 HSMC CLKOUT NETO S TX p HSMC CLKOUT n0 NETO S TX n
12. dard of the HSTCC male connector has been changed from 3 3 V LVTTL to 2 5V Also the DDR2 SODIMM component is added in the board list by building a connection with the DE3 board 18 Terasic HSMC_NET User Manual www terasic com www Cerasic com Terasic DES System Builder 1 4 3 File Help Board Selection stem Configuration Connection Board Configuration Board Description DDB SODIM n mem 5271 18 Class I DORe_SODIMM J9 DDR2 SO DIMM HSTCU Male 2 5 s HSTC Male J5 HSTC C TOP HSTCC Female 2 5 Female Jb HSTC C BOTTOM DDR2_S0ODIMM DDR2_SODIMM DDR2 SODIMM SSTL 18 Class DOR2_SODIMM DDR 50 01 ETHERNET ETHERNET ETHERNET 2 54 HST Female 2 ETHERNET Dl DCC CLR 2 Add Edit Remove Move Down Generate 4 e amp B In the System Configuration rea drag and drop the mouse to eztablizh delete connection between two connectors Figure 4 3 Note A 2 5V standard voltage must be used for the HSMC NET daughter board The following step we use the SOPC builder to create our SOPC The SOPC includes the CPU processor On Chip memory DDR2 controller JTAG UART system ID timer Triple Speed Ethernet Scatter Gather DMA controller and peripherals which are linked together contained in the Nios II hardware system that are used when building a project In the Triple Speed Ethernet IP Core configuration the interfac
13. e Ethernet 1 SGMII receive data negative Ethernet 1 Carrier Sense pin Ethernet 1 SGMII transmit data postive Ethernet 1 Receive code group bit 7 Ethernet 1 SGMII transmit data negative Ethernet 1 Receive code group bit 1 Ethernet 1 Receive code group bit 5 Ethernet 1 Receive code group bit 2 Ethernet 1 Receive code group bit 6 Ethernet 1 Receive code group bit 0 Ethernet 1 Receive code group bit 3 Ethernet 1 Receive code group bit 4 Ethernet 1 GMII and MII Collision pin Ethernet 1 Receive data valid pin Ethernet 1 Parallel LED output for link indicator Ethernet 1 Receive Clock provides a clock reference Ethernet 1 Transmit code group bit 1 Ethernet 1 Provides a clock reference Ethernet 1 Transmit code group bit 5 Ethernet 1 Receive Error pin Ethernet 1 Transmit Error Pin Ethernet 1 Transmit code group bit 6 Ethernet 1 Transmit Enable Ethernet 1 Transmit code group bit 7 Ethernet 1 Transmit code group bit 0 Ethernet 1 Hardware reset active low Ethernet 1 Transmit code group bit 4 Ethernet 1 Management data clock reference Ethernet 1 Management data pin Ethernet 1 Transmit code group bit 2 Ethernet 1 Polarity pin Ethernet 1 Transmit code group bit 3 Ethernet 1 Transmit Clock Ethernet 1 www terasic com NU S RYA NETO S CLKp NETO GTX CLK NETO S CLKn NETO RX D2 NETO LED LINK1000 NETO RX DO NETO RX CRS NETO RX DV NETO RX D7 NETO TX D5 NETO RX
14. e is set to GMII interface as well as using the internal FIFO shown in Figure 4 4 19 Terasic HSMC_NET User Manual www terasic com www Cerasic com ut Documentation Parameter Settings Core Configuration Options FIFO Options N PCS SGMII Options Core variation 10 100 1000Mb Ethernet 10H00H000Mb Ethernet MAC Use internal FIFO 1000BASE X SGMII PCS Figure 4 4 Triple Speed Ethernet Core Configuration In the Mac Options section the MDIO module is included that controls the PHY Management Module associated with the MAC block shown in Figure 4 5 The host Clock divisor is to divide the MAC control register interface clock to produce the MDC clock output on the MDIO interface The MAC control register interface clock frequency is 100 MHz and the desired MDC clock frequency 15 2 5 MHz a host clock divisor of 40 should be used 20 Terasic HSMC_NET User Manual www terasic com www Cerasic com Documentation Parameter Settings Core Configuration P FIFO Options p PCS SGMII Options Ethernet MAG Options Enable MAC 10 100 half duplex support Enable local loopback on MIVGMIVRGMII Enable supplemental MAC unicast addresses Include statistics counters Enable 64 bit statistics byte counters Include multicast hashtable Align packet headers to 32 bit boundary Enable ful duplex flow control Enable VLAN detection Figure 4 5 Triple Speed Ethernet MAC Opti
15. else the hardware could be damaged 1 4 Getting Help Here are some places to get help 1f you encounter any problem e Email to support terasic com e Taiwan amp China 886 3 550 8800 e Korea 82 2 512 7661 e Japan 81 428 77 7000 Terasic HSMC_NET User Manual www terasic com www Cerasic com Chapter 2 Architecture This Chapter covers the architecture of the HSMC NET board including its PCB and block diagram 2 1 Layout and Components The picture of the HSMC NET board is shown in Figure 2 1 and Figure 2 2 It depicts the layout of the board and indicates the location of the connectors and key components mE www lerosic com og Bus B Ethernet Transceiver J2 88E1111 Device 25 MHz Oscillator Y 1 EM 25 Ethernet Transceiver J3 3 d T x gt an _ 25 MHz Oscillator Y2 T Tub EEPROM U1 LED Configuration 88E1111 Device Figure 2 1 The HSMC NET PCB and component diagram Terasic HSMC NET User Manual www terasic com www terasic com www lerasic com p DO HSMC Connector J1 i Tm I 1 r 19 MEE U HLO VO 4 2174 0915F Figure 2 2 The HSMC NET Back side HSMC connector view The following components are provided on the HSMC NET board e Ethernet Transceiver J2 J3 e 25MHz Oscillator Y 1 Y2 e HSMC expansion connector
16. er 5 Appendix 5 1 Revision History Date Change Log M _ MAY 9 2009 Initial Version October 12 2010 Modify picture description 5 2 Always Visit HSMC NET Webpage for New Main board We will be continuing providing interesting examples and labs on our HSMC NET Webpage Please visit www altera com or hsmcnet terasic com for more information Copyright O 2010 Terasic Technologies All rights reserved 3 Terasic HSMC NET User Manual www terasic com www Cerasic com
17. le Socket Server it uses GMII mode interface which we have to modify in the ins tse mac c code shown in Figure 4 10 Around line 327 the code marvell cfe gmii tse iface mi base is included in order for the Simple Socket Server to operate in GMII mode 24 TuasiC Terasic HSMC NET User Manual www terasic com www terasic ee s e n I Y NOS RIA 8 simple socket E network_utilities 8 simple socket ic altera avalon_tse c ins tse 52 is EB gt if tse hw use shared fifo 1 ALTERA MULTI CHAN FIFO SEC FULL THRESHOLD tse hw tse shared fifo rx ctrl base tse hw tse shared fi ALTERA MULTI CHAN FIFO ALMOST FULL THRESHOLD tse hw gt tse shared fifo rx ctrl base tse hw tse shai else Initialize MAC registers IOWR ALTERA TSEMAC FRM LENGTH tse iface mi base ALTERA TSE MAC MAX FRAME LENGTH ALTERA TSEMAC RX ALMOST EMPTY tze iface mi base 8 IOWR ALTERA TSEMAC RX ALMOST FULL tse iface mi base B ALTERA TSEMAC TX ALMOST EMPTY tse iface mi base 8 IOWR ALTERA TSEMAC TX ALMOST FULL tse iface mi base 3 E ALTERA TSEMAC TX SECTION EMPTY tse iface mi base t
18. m www Cerasic Terasic DES System Builder Y1 4 3 Board Selection oystem Configuration Connection Board Configuration Board Description DES Configuration General Enable Led Board Name Enable Seq Enable Usb w FPGA EP3SL150F1152C2 m Enable Button Enable Sdeard Enable Slide Switch Temp Sensor Group D 1 Enable Connector 10 Group amp 1 Enable Connector Type JHSTC 0 and 1 Standard 3 357 Standard 2 GPIO M ame 2100 GPIO 1 PIO Enable Connector Group Enable Connector ETHERNET Type 5 gt Type DDR SD DIMHM Standard 3 3 4 LYTTL m Standard 1555 M ame HSTCE Mame DDR2 GROUP EEE E m Voltage Level Indicator E ance 1 Select a board the Board Selection area then click Add button to add the board to the system Figure 4 2 System Builder DE3 Configuration Next we want to add the Ethernet board to our system builder and establish a connection with the DE3 board shown in Figure 4 3 The I O standard voltage for the HSMC NET daughter board is 2 5V Once the connection is established between DE3 board and HSMC NET board the DE3 System builder will change the I O standard of the connector to fit with the daughter board automatically The I O stan
19. net This example requires the Microl OS II RTOS and WicheStack Stack Hios II Edition software components It Figure 4 8 Nios Project Simple Socket Server After the project 1s created open network utilities c to modifty the flash section which uses flash to store the MAC address Since the demonstration uses DE3 host board which doesn t have flash memory the flash portion of the code can be commented out shown in Figure 4 9 as well as inserting our own Mac Address 23 Terasic HSMC NET User Manual www terasic com www Cerasic com simple socket E network utilities c ic simple socket ser ic altera_avalon_tse c ins_tse_mac c 13 Comment Qut Ad ddrfo DO Added Code mac addr X mac addr 2 mac addr 3 mac addr 4 mac addr 5 it error EB Comment Qut g tu LL ct v ct d Lu LL l rt E ct 1 Cu ct 1 E ct H BI F ct u F Py ct u BB B D 1 mp dee deep quit m u Bonon n A H H H H dgu ow mp jej ct e fo to m m im m m im EB pu D r to rt ct Hh RR Hh Hh Hh H on d printf TYour Ethernet MAC address 02xX 202xX 202x 202x 202x 502xVXn mac 0 Figure 4 9 network utilities c modified code In the Simp
20. nt e HSMC NET board x 1 e System CD ROM x 1 The CD contains technical documents of the HSMC NET and one reference design along with the source code ier com HSHC MET _ a d 9 a ET Figure 1 2 HSMC NET Package Terasic HSMC NET User Manual www terasic com www Cerasic com NOS RIA 1 3 Assemble the HSMC NET Board This section describes how to connect the HSMC NET daughter board to a main board and using DE3 as an example shown in Figure 1 4 The HSMC NET daughter board connects to the main boards through the HSMC Interface For the DE3 the HSMC NET can be connected to any DE3 s four HSTC connectors using a THCB HFF adapter card Figure 1 3 can be found in the DE3 mM JJ Inn E e Lud Lag E on many Re yess LF LINC Hum m sae re www terasic com le nha ul T 7 L LE U i C e NIIT L a mm 6 9 E aH u Wu BE Figure 1 4 The DE3 board connected to the HSMC NET daughter board Terasic HSMC_NET User Manual www terasic com www Cerasic com ANOTE RIA Q Do not attempt to connect remove the HSMC NET daughter board to from the main the main board when the power is on or
21. ocket Server uses the industry standard sockets interface to TCP IP It uses DHCP protocol to requests a valid IP from the Gateway During the device initialization process the NicheStack TCP IP Stack system code calls get addr and get addr to set the MAC and IP addresses for the network interface 28 Terasic NET User Manual www terasic com w rasic com NOS RYA Once MAC address is generated Autonegotiation 1s initiated where both connected devices the Ethernet Marvel 88 1111 and Gateway devices broadcasts its transmission parameters speed and duplex mode By default the MAC Interface for the Ethernet Device is set to RGMII In this demonstration we are using GMII MAC interface which can be configured through the management interface of the 88E1111 Ethernet device 10 100 1000 Mbps 88E1111 Device Ethernet MAC MAC Interface option Media Types GMII MII 10 BASE T TBI 100 BASE TX RGMII 1000 BASE T RTBI Figure 4 14 88EE111 Device Interface Block Diagram in Figure 4 14 shows the MAC interface options and supported media types for the HSMC NET board It supports copper media interface which is connected to an RJ 45 connector though magnetic supporting physical media for 1000BASE T and IOBASE T Once the link is established an IP address is assigned to the Ethernet device along with the port number Through the TCP and port number the demonstration uses Telnet client to
22. ons Once the Triple Speed Ethernet IP configuration has been set and necessary hardware connections has been made shown in Figure 4 6 click on generate 21 Terasic HSMC_NET User Manual www terasic com www Cerasic com Module Mame lt E2 EJ pio button amp 1 pio dip sw amp 1 pio sw amp 1 tse mac transmit control port sudma tx ane descriptor read m read out sgdma rx uu descriptor read descriptor write m write in descriptor memory 21 inti PIO Parallel VO Avalon Memory Mapped Slave PIO Parallel VO Avalon Memory Mapped Slave PIO Parallel lO Avalon Memory Mapped Slave Triple S5peed Ethernet Avalon Streaming Sink Avalon Memory Mapped Slave Avalon Memory Mapped Slave Avalon Memory Mapped Master Avalon Memory Mapped Master Avalon Memory Mapped Master Avalon Streaming Source Avalon Memory Mapped Slave Avalon Memory Mapped Master Avalon Memory Mapped Master Avalon Memory Mapped Master Avalon Streaming Sink On Chip Memory or ROM Avalon Memory Mapped Slave Figure 4 6 SOPC builder The Block diagram shows the connection for programmable 10 100 1000 Ethernet operation via GMII Reference Clock 10 100 1000 PHY Optional tie to 0 if not used 125 25 2 5 MHz 25MHz gt dg 25 2 5 MHz Clock Driver s eee de tx m tx d 3 0 tx err gm tx 7
23. se hw tse tx depth 16 1024 4 IOWR ALTERA TSEMAC TX SECTION FULL tse iface mi base 0 32 4 start transmit when there are 48 I IOWR ALTERA TSEMAC RX SECTION EMPTY tse iface mi base tse hw gt tse rx depth 16 f 4000 4 IOWR ALTERA TSEMAC RX SECTION FULL tse iface mi base 0 Added Code if EIHHDR BIAS 0 ETHHDR BIAS 2 dprintf tse mac init Error Unsupported Ethernet Header Bias Value tdXn ETHHDR BIAS return ENP PARAM H if ETHHDR BIAS 0 f alt 32 temp reg Figure 4 10 ins tse mac c modified code 4 3 System Requirements B following items are required for the HSMC NET Server demonstration e HSMC NET e DDR2 SO DIMM Bundled in the e DE3 Board e THCB HFF adapter card Not required for Cyclone III FPGA Starter Kit amp HSMC NET Demo e Standard Cat 5 UTP unshielded twisted pair cable e Gateway Router e USB Blaster cable 4 4 Setup the Demonstration Figure 4 11 shows how to setup hardware for the HSMC NET Server demonstration 25 Terasic HSMC NET User Manual www terasic com www terasic com 1000 100 10 Mbps CAT 5 Ethernet Driver Nios Simple Socket Server O FPGA Figure 4 11 The hardware setup for the HSMC NET server demonstration Q A THCB HFF adapter card is used to establish connection with DE3 and HSMC NET daughter board 4 5 Demo Operation
24. ter www terasic com HSMC NET Terasic HSMC NET Daughter Board User Manual ter 5 eros hldi C0 Rar a Ue Preliminary Version 2010 by Terasic Chapter 1 SEF I CI usu Zb __ tinea 2 Jl n M c O 0 2 L ADO Ia 3 L3 Assemble the HSMC NBT 0 4 Ip re surda A S 5 Chapter 2 ATCHIEGCIUF B u u axt xcti tton ee 6 O O 6 PARA Sd ore 7 Chapter 3 Board Component 9 Dik Estonie O PET 9 x Ce EER T 15 Chapter 4 Brei 16 AMI IAG UA OM uuu u uu m 16 4 2 How the Demonstration IS eue vsu ues quu QUO Pe _ __ _6_____ 17 4 3 System Requirements 25 4A Setup the Demonstration 25 2 TD Lu u n 26 ays 28 4 7 Nios al nee nnn nnn en a nn an nn en re ee eee tct ety 29 Chapter 5 APDE eu ee ee 31 MN TRC VIG TASTE Yc ae cc care sce 31 5 2 Always Visit HS
25. up bit 5 Ethernet 0 Transmit Enable Ethernet 0 Receive code group bit 3 Ethernet 0 Transmit code group bit 0 Ethernet 0 Receive code group bit 1 Ethernet 0 Transmit code group bit 4 Ethernet 0 Receive Clock provides a clock reference Ethernet 0 Transmit code group bit 6 Ethernet 0 Provides a clock reference Ethernet 0 Management data pin Ethernet 0 Transmit code group bit 1 Ethernet 0 Management data clock reference Ethernet 0 Transmit code group bit 2 Ethernet 0 Polarity pin Ethernet 0 Transmit code group bit 3 Ethernet 0 Hardware reset active low Ethernet 0 SGMII receive data positive Ethernet 0 SGMII receive data negative Ethernet 0 SGMII transmit data postive Ethernet 0 SGMII 625 MHz positive receive clock www terasic com NOTE RIA Ethernet 1 NETO S TX n 21157 output transmit data negative Ethernet 0 SGMII 625 MHz negative receive clock 5 CLKn 158 Ethernet 1 3 2 2 Serial EEPROM B This section describes the 2 Serial EEPROM on the HSMC NET board The HSMC NET board provides an EEPROM UI which is configured by the I2C interface The size of the EEPROM is 2K bit which can store MAC information or user s data The Default I2C slave address is 0 0 The detailed pin description between the HSMC connector and EEPROM is shown below in Figure 3 2 21 VCC33 R32 HSMC SCL w E
Download Pdf Manuals
Related Search
HSMC NET hsmc competition hsbcnet login hamc.com hmc net hmc network hmc netherlands hsm netsoins hmc network install upgrade hsm network hsm netherlands hsc net ttuhsc
Related Contents
Multiviewer Stream Media Player User Manual JVC HR-J655EA User's Manual Annexe 18000-N47-TS03X 品名:`13-CBR400R (型式:EBL 取扱説明書 - 日立の家電品 このたびはデジタルカメラ 「DSC50NTPJ をお買い上げいた Hi-Step User guide - Ladders Tristar Espresso Maker Samsung Poseidon Big Asia Top Loader with Silver Nano, 13 kg, Imperial Silver User Manual Belkin 8820ED00378_F7D4301_V1 Network Router User Manual Copyright © All rights reserved.
Failed to retrieve file