background image

 

 

 

NET-FMC 
User Manual 

- 17 - 

 

www.terasic.com 

January 16, 2018 

 

 

 

 

 

 

  Batch file for USB-Blaster II: test.bat, test.sh 

  FPGA configure file: TR5_golden_top.sof 

  Nios II program: web_server.elf 

 

Demonstration Setup 

Please follow below procedures to setup the demonstrations. 

Generate factory_web_server.pof file 

 

Make sure Quartus Prime and Nios II are installed on your PC. 

 

Execute  the  add_path.bat  file  in  factory_pof  directory  to  add  your  file  location  to 

the .cof file. Or you will meet the error that hex files can not open. 

 

Open  the  TR5_RevC_NET_FMCA_SGMII_update_portal_net0_161  project  with 

Quartus software. 

 

Open the Convert Programming Files window. 

 

Click  the  Open  Conversion  Setup  Data  button and  choose  the  flash_web_server.cof 

file in factory_pof directory as shown in 

Figure 4-3

 

Figure 4-3 Selecting Conversion Setup Data 

 

Add  Sof  and  Hex  Files.  The  files  are  added  to  the  convert  programmer  defalt  when 

Содержание NET-FMC

Страница 1: ...NET FMC User Manual 1 www terasic com January 16 2018 ...

Страница 2: ...M CD 1 1 3 GETTING HELP 1 CHAPTER 2 INTRODUCTION OF THE NET FMC CARD 2 2 1 FEATURES 3 2 2 BLOCK DIAGRAM OF THE NET FMC BOARD 3 2 3 CONNECTIVITY 5 2 4 MODE SWITCH X 4 SETTING 5 CHAPTER 3 USING THE NET FMC BOARD 8 3 1 ETHERNET PHY 88E1111 8 3 2 FMC CONNECTOR 9 CHAPTER 4 EXAMPLE CODES 15 4 1 REMOTE UPDATE PORTAL 15 CHAPTER 5 APPENDIX 24 ...

Страница 3: ... be connected any FMC HPC interfaces Figure 1 1 The NET FMC package contents 1 2 NET FMC System CD The NET FMC System CD contains all the documents and supporting materials associated with NET FMC including the user manual reference designs and device datasheets Users can download this system CD from the link http net fmc terasic com cd 1 3 Getting Help Here are the addresses where you can get hel...

Страница 4: ...nents related Figure 2 1 The NET FMC Board PCB and Component Diagram of top side Figure 2 2 The NET FMC Board PCB and Component Diagram of bottom side The photographs of the NET FMC are shown in Figure 2 1 and Figure 2 2 They depict the layout of the board and indicates the location of the connectors and the key components on the top and bottom side The following components are provided on the NET...

Страница 5: ...nt Support MAC Interface GMII MII RGMII SGMII Ethernet RJ45 Connector x4 Use standard Cat 5 UTP cabling Mode Switch Support GMII MII RGMII SGMII Four 25 MHz reference clock driven from dedicated oscillator 2 2 Block Diagram of the NET FMC Board Figure 2 3 shows the NET FMC Block Diagram Four 25 MHz reference clock driven from dedicated oscillator are required for Ethernet PHY 88E1111 FMC Connector...

Страница 6: ...NET FMC User Manual 4 www terasic com January 16 2018 Figure 2 3 Block Diagram of NET FMC Board ...

Страница 7: ...our Ethernet ports ETH0 ETH3 via four Marvell 88E1111 Ethernet PHY chips Each switch SW0 SW3 is corresponding to one Ethernet port to switch Ethernet port work modes from RGMII to GMII MII or SGMII SW0 is used for ETH0 port SW1 is used for ETH1 port SW2 is used for ETH2 port and SW3 is used for ETH3 port Table 2 1 describes the working mode switch settings for ENET0 ENET3 port work modes Table 2 1...

Страница 8: ...Take ETH0 as an example Set ETH0 MODE on the NET_FMC card to RGMII mode default The SW0 6 1 on NET FMC should be set to 001010 as shown in Figure 2 5 Figure 2 5 SW0 setting for ETH0 port RGMII mode Set ETH0 MODE on the NET_FMC card to GMII MII mode The SW0 6 1 on NET FMC should be set to 001001 as shown in Figure 2 6 Figure 2 6 SW0 setting for ETH0 port GMII MII mode ...

Страница 9: ...ser Manual 7 www terasic com January 16 2018 Set ETH0 MODE on the NET_FMC card to SGMII mode The SW0 6 1 on NET FMC should be set to 010100 as shown in Figure 2 7 Figure 2 7 SW0 setting for ETH0 port SGMII mode ...

Страница 10: ... 10 100 1000 ultra gigabit Ethernet transceiver device for Ethernet 10BASE T 100BASE TX and 1000BASE T applications It contains all the active circuitry required to implement the physical layer functions to transmit and receive data on standard CAT 5 unshielded twisted pair The 88E1111 device supports the Gigabit Media Independent Interface GMII MII Reduced GMII RGMII and Serial Gigabit Media Inde...

Страница 11: ...e 3 1 shows the pin out and pin definitions of NET FMC board Table 3 1 Pin Assignment of NET FMC FMC interface Signal Name FMC Pin Name Number Pin Direction Description I O Standard NET0_GTX_CLK LA01_P_CC D8 Output Ethernet 0 GMII TBI Transmit Clock 2 5V NET0_TX_CLK HA11_P J12 Input Ethernet 0 MII Transmit Clock TBI 62 5 MHz Receive Clock 1 2 5V NET0_TX_EN LA08_P G12 Output Ethernet 0 GMII MII Tra...

Страница 12: ...t Ethernet 0 GMII MII Collision TBI Mode Loopback 2 5V NET0_S_CLKp LA00_P_CC G6 Input Ethernet 0 SGMII 625 MHz Receive Clock 2 5V NET0_S_CLKn LA00_N_CC G7 Input NET0_S_TX_p HA04_P F7 Output Ethernet 0 SGMII Transmit Data 2 5V NET0_S_TX_n HA04_N F8 Output NET0_S_RX_p HA05_P E6 Input Ethernet 0 SGMII Receive Data 2 5V NET0_S_RX_n HA05_N E7 Input NET0_MDC LA03_P G9 Output Ethernet 0 Management Refere...

Страница 13: ...1_P H16 Input Ethernet 1 GMII MII TBI Receive Data 1 2 5V NET1_RX_D 2 LA07_N H14 Input Ethernet 1 GMII MII TBI Receive Data 2 2 5V NET1_RX_D 3 LA07_P H13 Input Ethernet 1 GMII MII TBI Receive Data 3 2 5V NET1_RX_D 4 HB04_P F25 Input Ethernet 1 GMII TBI Receive Data 4 2 5V NET1_RX_D 5 HB13_P E30 Input Ethernet 1 GMII TBI Receive Data 5 2 5V NET1_RX_D 6 HB04_N F26 Input Ethernet 1 GMII TBI Receive D...

Страница 14: ...5V NET2_TX_D 6 HB02_N F23 Output Ethernet 2 GMII TBI Transmit Data 6 2 5V NET2_TX_D 7 HB01_P J24 Output Ethernet 2 GMII TBI Transmit Data 7 2 5V NET2_RX_CLK LA30_P H34 Input Ethernet 2 GMII MII Receive Clock TBI 62 5 MHz Receive Clock 0 2 5V NET2_RX_DV LA31_P G33 Input Ethernet 2 GMII MII Receive Valid TBI Transmit Data 8 2 5V NET2_RX_ER HB15_P J33 Input Ethernet 2 GMII MII Receive Error TBI Trans...

Страница 15: ...I Transmit Data 9 2 5V NET3_TX_D 0 LA32_P H37 Output Ethernet 3 GMII MII TBI Transmit Data 0 2 5V NET3_TX_D 1 LA31_N G34 Output Ethernet 3 GMII MII TBI Transmit Data 1 2 5V NET3_TX_D 2 LA33_N G37 Output Ethernet 3 GMII MII TBI Transmit Data 2 2 5V NET3_TX_D 3 LA32_N H38 Output Ethernet 3 GMII MII TBI Transmit Data 3 2 5V NET3_TX_D 4 HA18_N J19 Output Ethernet 3 GMII TBI Transmit Data 4 2 5V NET3_T...

Страница 16: ...BI Mode Loopback 2 5V NET3_S_CLKp HB21_P E36 Input Ethernet 3 SGMII 625 MHz Receive Clock 2 5V NET3_S_CLKn HB21_N E37 Input NET3_S_TX_p HA15_P F16 Output Ethernet 3 SGMII Transmit Data 2 5V NET3_S_TX_n HA15_N F17 Output NET3_S_RX_p HA16_P E15 Input Ethernet 3 SGMII Receive Data 2 5V NET3_S_RX_n HA16_N E16 Input NET3_MDC LA24_N H29 Output Ethernet 3 Management Reference Clock 2 5V NET3_MDIO LA24_P ...

Страница 17: ... can process basic requests to serve HTML JPEG GIF PNG JS CSS SWF ICO files from a single zip file stored onto the flash memory on the TR5 board User can remote update the web server by rewrting the design files to the flash on the TR5 board Figure 4 1 shows the hardware setup of demonstration Figure 4 1 hardware setup of remote update portal demonstration Function block diagram Figure 4 2 shows t...

Страница 18: ...16 1 Demonstration Source Code Quartus Prime project directory TR5_RevC_NET_FMCA_SGMII_update_portal_net0_161 Nios II Eclipse TR5_RevC_NET_FMCA_SGMII_update_portal_net0_161 software Nios Project Compilation Before you attempt to compile the reference design under Nios II Eclipse make sure the project is cleaned first by clicking Clean from the Project menu of Nios II Eclipse Demonstration Batch Fi...

Страница 19: ...your PC Execute the add_path bat file in factory_pof directory to add your file location to the cof file Or you will meet the error that hex files can not open Open the TR5_RevC_NET_FMCA_SGMII_update_portal_net0_161 project with Quartus software Open the Convert Programming Files window Click the Open Conversion Setup Data button and choose the flash_web_server cof file in factory_pof directory as...

Страница 20: ...ng sof and hex files Press Generate button to generate the new factory_web_server pof in factory_pof directory Write the factory_web_server pof into Flash Open Quartus Prime Programmer Connect a Mini USB Cable between the TR5 Board J6 and the PC Open Hardware Setup window and choose DE5 USB 1 as shown in Figure 4 5 ...

Страница 21: ...r the FPGA configured successfully You will see a CFI_1Gb Flash detected on the JTAG chain Press Yes to update the device list as shown in Figure 4 6 Figure 4 6 Updating the device Use the mouse choose the CFI_1Gb device and press Change File button browse to the factory_pof directory and choose factory_web_server pof file Check all the files Program and Verify option as in Figure 4 7 and press St...

Страница 22: ...0 Connect the RJ45 Ethernet cable to the ETHERNET 0 on NET_FMC daughter card Make sure the VDDJ for FMCA port on TR5 board is 2 5V The 7 8 Pin of JP5 on TR5 board should be shorted Connect the NET_FMC card on FMCA J11 port on TR5 mainboard Please note the demonstration is in FMCA not in FMCD Set SW4 FACTORY_LOAD on TR5 mainboard to 0 Repower the board Open the nios2 terminal in Nios II Command She...

Страница 23: ...en the terminal the system will request you to type four digital number to generate the MAC address You can type any 4 digital numbers as shown in Figure 4 9 Figure 4 9 type 4 digital numbers Repower the Board again and use the nios2 terminal get the IP address as shown in Figure 4 10 We use the ip address 192 168 21 102 for example ...

Страница 24: ...nual 22 www terasic com January 16 2018 Figure 4 10 get the ip address Type the IP address in your web browser as shown in Figure 4 11 then you can access the web content Figure 4 11 access the web content in browser ...

Страница 25: ... be changed according to your quartus project name For elf file elf2flash base 0x00000000 end 0x07FFFFFF reset 0x071c0000 input xxx elf output xxx flash boot SOPC_KIT_NIOS2 components altera_nios2 boot_loader_cfi srec the elf file name should be changed according to your nios2 software project name you can use the batch file in flash_convert directory to convert your sof and elf to flash In the we...

Страница 26: ...24 www terasic com January 16 2018 Chapter 5 Appendix Revision History Version Change Log V1 0 Initial Version V1 1 Add Section 2 4 Mode Switch x 4 Setting Copyright Statement Copyright 2017 Terasic Inc All rights reserved ...

Отзывы: