NET-FMC
User Manual
- 15 -
www.terasic.com
January 16, 2018
Chapter 4
Example Codes
This chapter provides Nios based examples for users to get started using the NET-FMC
board.
4-1
Remote 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.
U
ser 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 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