Altera DE2-115 User Manual Page 115

  • Download
  • Add to my manuals
  • Print
  • Page
    / 121
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 114
114
Nios II Processor
Software Device Drivers
HAL API
MicroC/OS-II
NicheStack TCP/IP Software Component
Application Specific System Initialization
Web Server Application
Figure 6-33 Nios II Program Software Architecture
Finally, the detail descriptions for Software flow chart of the Web Server program are listed in
below:
Firstly, the Web Server program initiates the MAC and net device then calls the get_mac_addr()
function to set the MAC addresses for the PHY. Secondly, it initiates the auto-negotiation process to
check the link between PHY and gateway device. If the link exists, the PHY and gateway devices
will broadcast their transmission parameters, speed, and duplex mode. After the auto-negotiation
process has finished, it will establish the link. Thirdly, the Web Server program will prepare the
transmitting and receiving path for the link. If the path is created successfully, it will call the
get_ip_addr() function to set up the IP address for the network interface. After the IP address is
successfully distributed, the NicheStack™ TCP/IP Stack will start to run for Web Server application.
Figure 6-34 describes this demo setup and connections on DE2-115. The Nios II processor is
running NicheStack™ on the MicroC/OS-II RTOS.
Note: your gateway should support DHCP because it uses DHCP protocol to request a valid IP from the
Gateway, or else you would need to reconfigure the system library to use static IP assignment. Furthermore, the
web server demonstration uses the RGMII or MII interface to access the TCP/IP. You can switch the MAC
Page view 114

Comments to this Manuals

No comments