The Terasic NET-FMC is a Gigabit Ethernet transceiver with an FMC interface. It offers
network transfers of up to 1 Gbps with the host board using an FMC 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 NET-FMC can be connected any FMC(HPC) interfaces.
Figure 1-1 The NET-FMC package contents
1-2NET-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 help if you encounter any problems:
Terasic Technologies
9F., No.176, Sec.2, Gongdao 5th Rd, East Dist, Hsinchu City, 30070. Taiwan
Email: support@terasic.com
Tel.: +886-3-575-0880
Website: http://www.terasic.com
NET-FMC
User Manual
- 2 -
www.terasic.com
February 3, 2017
Chapter 2
Introduction of the NET-FMC Card
This chapter describes the architecture and configuration of the NET-FMC Board including
block diagram and components 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-FMC Board:
NET-FMC
User Manual
- 3 -
www.terasic.com
February 3, 2017
Ethernet RJ45 Connector x4.
Ethernet PHY chip 88E1111 x4.
FMC Connector(HPC).
Mode Switch x4.
Link Status LEDs Group x4.
2-1Features
The NET-FMC board has many features that allow users to implement a wide range of
design circuits, from simple circuits to various multimedia projects.
The following hardware is provided on the board:
Chip P/N: 88E1111.
10/100/1000BASE-T IEEE 802.3 compliant.
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-2Block 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 transmit the
data between host board and Ethernet PHY 88E1111 through MAC interface. Also,
four-port integrated 10/100/1000 Gigabit Ethernet Transceiver supported
SGMII/GMII/MII/RGMII MAC interfaces is installed for direct connection to a MAC/Switch
port. There are four group LEDs indicting the link status.
NET-FMC
User Manual
- 4 -
www.terasic.com
February 3, 2017
Figure 2-3 Block Diagram of NET-FMC Board
NET-FMC
User Manual
- 5 -
www.terasic.com
February 3, 2017
2-3Connectivity
Terasic NET-FMC is able to connect to any FPGA development kit equipped with
FMC(HPC) connector. The below picture Figure 2-4 shows the connections with TR5
board.
Figure 2-4 Connect the NET-FMC to TR5 board’s FMCD port
NET-FMC
User Manual
- 6 -
www.terasic.com
February 3, 2017
Chapter 3
Using the NET-FMC Board
This chapter provides instructions on how to use Ethernet PHY 88E1111 and FMC
connector on the HDMI-FMC board.
3-1Ethernet PHY 88E1111
Terasic NET-FMC Board equips with four Ethernet PHY named 88E1111, which is an
integrated 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 Independent
Interface (SGMII) for direct connection to a MAC/Switch port.
Figure 3-1 shows the connections between the FMC (HPC), the 88E1111 Ethernet PHY,
and RJ-45 connector. Ethernet PHY 88E1111 function are controlled by the management
Figure 3-1 System Overview with 88E1111 device
NET-FMC
User Manual
- 7 -
www.terasic.com
February 3, 2017
interface via NETx_MDC and NETx_MDIO. There is a LED used to indicate the status of
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 Transmit Enable,
TBI Transmit Data 8
2.5V
NET0_TX_ER
HA14_P/J15
Output
Ethernet-0 GMII/MII Transmit Error, TBI
Transmit Data 9
2.5V
NET0_TX_D[0]
LA08_N/G13
Output
Ethernet-0 GMII/MII/TBI Transmit Data 0
2.5V
NET0_TX_D[1]
LA04_P/H10
Output
Ethernet-0 GMII/MII/TBI Transmit Data 1
2.5V
NET0_TX_D[2]
LA03_N/G10
Output
Ethernet-0 GMII/MII/TBI Transmit Data 2
2.5V
NET0_TX_D[3]
LA13_P/D17
Output
Ethernet-0 GMII/MII/TBI Transmit Data 3
2.5V
NET0_TX_D[4]
HA20_N/E19
Output
Ethernet-0 GMII/TBI Transmit Data 4
2.5V
NET0_TX_D[5]
HB03_N/E22
Output
Ethernet-0 GMII/TBI Transmit Data 5
2.5V
NET0_TX_D[6]
HB03_P/E21
Output
Ethernet-0 GMII/TBI Transmit Data 6
2.5V
NET0_TX_D[7]
HB05_P/E24
Output
Ethernet-0 GMII/TBI Transmit Data 7
2.5V
NET0_RX_CLK
LA13_N/D18
Input
Ethernet-0 GMII/MII Receive Clock, TBI
62.5 MHz Receive Clock 0
2.5V
NET0_RX_DV
LA05_N/D12
Input
Ethernet-0 GMII/MII Receive Valid, TBI
Transmit Data 8
2.5V
1000BASE-T link via NETx_LED_LINK1000.
The 88E1111 device incorporates the Marvell Virtual Cable Tester(VCT) feature, which
uses Time Domain Reflectometry(TDR) technology for the remote identification of potential
cable malfunctions, thus reducing equipment returns and service calls. Using VCT, the
88E1111 device detects and reports potential cabling issues such as pair swaps, pair
polarity and excessive pair skew.
The 88E1111 device uses advanced mixed-signal processing to perform equalization, echo
and crosstalk cancellation, data recovery, and error correction at a gigabit per second data
rate. The device achieves robust performance in noisy environments with very low power
dissipation.
3-2FMC Connector
Table 3-1 shows the pin out and pin definitions of NET-FMC board.
Table 3-1 Pin Assignment of NET-FMC FMC interface
NET-FMC
User Manual
- 8 -
www.terasic.com
February 3, 2017
NET0_RX_ER
HA20_P/E18
Input
Ethernet-0 GMII/MII Receive Error, TBI
Transmit Data 9
Ethernet-3 Parallel LED output for
1000BASE-T link/speed or link indicator
2.5V
NET3_RST_n
LA25_N/G28
Output
Ethernet-3 Hardware Reset, active low
2.5V
NET-FMC
User Manual
- 13 -
www.terasic.com
February 3, 2017
Chapter 4
Example Codes
This chapter provides Nios based examples for users to get started using the NET-FMC
board.
4-1Remote Update Portal
A web server is implemented based on the socket’s application program interface (API)
provided by the NicheStack TCP/IP Stack Nios II Edition running on a MicroC/OS-II RTOS
to serve web content from the TR5 development board. Using DHCP protocol, the web
server is able to request a valid IP from the Gateway. The server 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.
Function block diagram
Figure 4-2 shows the function block diagram of remote-update portal demonstration.
Altera Triple Speed Ethernet is configured as 10/100/1000Mb Ethernet MAC with
1000BASE-X/SGMII PCS. A Generic Tri-state Controller(Flash Controller) is configured as
a 1Gb Flash controller to connect the off-chip Flash chip. The SGDMA-RX and SGDMA-TX
Figure 4-1 hardware setup of remote-update portal demonstration
NET-FMC
User Manual
- 14 -
www.terasic.com
February 3, 2017
are used to transmit data between memory and Ethernet. The QSYS system requires one
50MHz clock resource and the Nios II program is reseting from Flash.
Figure 4-2 Function block diagram of remote-update portal demonstration
Design Tools
Quartus Prime 16.1
Nios II Eclipse 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 File
Demo Batch File Folder:
TR5_RevC_NET_FMCA_SGMII_update_portal_net0_161\demo_batch
The demo batch file includes following files:
NET-FMC
User Manual
- 15 -
www.terasic.com
February 3, 2017
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.
Add Sof and Hex Files. The files are added to the convert programmer defalt when
Figure 4-3 Selecting Conversion Setup Data
NET-FMC
User Manual
- 16 -
www.terasic.com
February 3, 2017
the .cof file openned as shown in Figure 4-4.
Figure 4-4 adding 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.
NET-FMC
User Manual
- 17 -
www.terasic.com
February 3, 2017
Figure 4-5 Hardware Setup on TR5
Press add fileand choose the TR5_PFL.sof in factory_pof directory.
Configure the FPGA by pressing Start button.
Press Auto Detect button after 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
Check all the files Program and Verify option as in Figure 4-7 and press Start button
the factory_pof directory and choose factory_web_server.pof file.
to write the Flash.
NET-FMC
User Manual
- 18 -
www.terasic.com
February 3, 2017
Figure 4-7 Program and Verify Options
Wait about 10 minutes until the pof file written to the flash successfully, then close the
software.
Get the IP address
Power down the TR5 board.
Set ETH0 MODE on the NET_FMC card to SGMII mode.The SW0[6:0] on NET-FMC
should be set to 010100.
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 Shell as shown in Figure 4-8. The
command shell is located in the Nios II EDS Installation dircetory, such as
D:\intelFPGA\16.1\nios2eds.
NET-FMC
User Manual
- 19 -
www.terasic.com
February 3, 2017
Figure 4-8 Open nios2 terminal in Nios II Command Shell
The first time you open 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.
NET-FMC
User Manual
- 20 -
www.terasic.com
February 3, 2017
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.
Remote update your design
Create your custom Quartus project. If your project contains a nios II system with a
Figure 4-11 access the web content in browser
NET-FMC
User Manual
- 21 -
www.terasic.com
February 3, 2017
software, you should add a CFI_Flash device on address map 0x00000000 and set
the nios2 reset vector to the Flash device. The offset should be 0x071c0000.
In Nios II Command Shell, convert your custom sof and elf file to flash file with the
--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 web page, choose your hardware and software flash files, then press the Upload
button to starting write your design files to the Flash on TR5 board.
The browser will goto the reset_system page when the write process finished.
Set the FACTORY_LOAD switch (SW4) to 1 and the BOOT_PAGE LED(D24) light on.
Press the MAX_RST(BUTTON5), the FPGA will be configured with your design.