DE4 User Manual
123
www.terasic.com
June 20, 2018
Figure 5
–14 Nios II project simple socket server
Overview
The Simple Socket 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
NichStack TCP/IP Stack system code calls get_mac_add() and get_ip_add() to get the MAC and IP
addresses for the network interface.
Once the MAC address is generated, Autonegotiation is initiated where both connected devices, the
Ethernet (Marvel 88E1111) and Gateway devices broadcasts its transmission parameters, speed and
duplex mode. By default, the MAC interface for the Ethernet device is set to SGMII. In this
demonstration, we are using SGMII MAC interface which can be configured through the
management interface of the 88E1111 Ethernet device. Once the link is established an IP address is
assigned to the Ethernet device along with the port number. Through TCP and port number, the
demonstration uses Telnet client to establish connection with the Simple Socket Server, where it is
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 DE4. The
packet sent contains LED command which is extracted and dispatched to the LED command queue
Summary of Contents for ALTERA DE4
Page 1: ...DE4 User Manual 1 www terasic com June 20 2018 ...
Page 54: ...DE4 User Manual 54 www terasic com June 20 2018 ...
Page 83: ...DE4 User Manual 83 www terasic com June 20 2018 Figure 3 8 Access DDR2 SO DIMM memory ...
Page 92: ...DE4 User Manual 92 www terasic com June 20 2018 Figure 3 17 Fan Control of the DE4 ...
Page 150: ...DE4 User Manual 150 www terasic com June 20 2018 Figure 5 35 SOPC builder ...