Nios_ii_8.0_back
所属分类:VHDL/FPGA/Verilog
开发工具:matlab
文件大小:7423KB
下载次数:11
上传日期:2013-05-27 19:32:17
上 传 者:
前行无止境
说明: altera FPGA nios 实例,实现网络通信。
(altera FPGA nios example, network communications.)
文件列表:
Nios_ii_8.0_back\.sopc_builder\filters.xml (65, 2013-03-21)
Nios_ii_8.0_back\.sopc_builder\install.ptf (12389, 2013-03-21)
Nios_ii_8.0_back\.sopc_builder\install2.ptf (6235, 2013-03-21)
Nios_ii_8.0_back\.sopc_builder\preferences.xml (514, 2013-03-21)
Nios_ii_8.0_back\altpllpll_0.bsf (3687, 2012-08-23)
Nios_ii_8.0_back\altpllpll_0.ppf (491, 2012-08-23)
Nios_ii_8.0_back\altpllpll_0.qip (464, 2012-08-23)
Nios_ii_8.0_back\altpllpll_0.v (16411, 2012-08-23)
Nios_ii_8.0_back\altpllpll_0_bb.v (12376, 2012-08-23)
Nios_ii_8.0_back\altpllpll_0_wave0.jpg (540026, 2012-08-23)
Nios_ii_8.0_back\altpllpll_0_waveforms.html (709, 2012-08-23)
Nios_ii_8.0_back\altpllsys_pll.cmp (967, 2013-03-21)
Nios_ii_8.0_back\altpllsys_pll.ppf (493, 2013-03-21)
Nios_ii_8.0_back\altpllsys_pll.qip (472, 2013-03-21)
Nios_ii_8.0_back\altpllsys_pll.v (16433, 2013-03-21)
Nios_ii_8.0_back\altpllsys_pll_bb.v (12398, 2013-03-21)
Nios_ii_8.0_back\altpllsys_pll_wave0.jpg (550956, 2012-09-04)
Nios_ii_8.0_back\altpllsys_pll_waveforms.html (719, 2012-09-04)
Nios_ii_8.0_back\altplltse_pll.bsf (4899, 2012-08-22)
Nios_ii_8.0_back\altplltse_pll.ppf (646, 2012-08-22)
Nios_ii_8.0_back\altplltse_pll.qip (472, 2012-08-22)
Nios_ii_8.0_back\altplltse_pll.v (20382, 2012-08-22)
Nios_ii_8.0_back\altplltse_pll_bb.v (15750, 2012-08-22)
Nios_ii_8.0_back\altplltse_pll_wave0.jpg (1016499, 2012-08-22)
Nios_ii_8.0_back\altplltse_pll_waveforms.html (647, 2012-08-22)
Nios_ii_8.0_back\button_no_shake.bsf (1762, 2012-08-21)
Nios_ii_8.0_back\button_no_shake.cmp (1052, 2012-08-22)
Nios_ii_8.0_back\button_no_shake.inc (1189, 2012-08-22)
Nios_ii_8.0_back\button_no_shake.v (386, 2012-08-21)
Nios_ii_8.0_back\button_no_shake_inst.v (1073, 2012-08-22)
Nios_ii_8.0_back\cpu.ocp (840, 2013-03-21)
Nios_ii_8.0_back\cpu.sdc (3954, 2013-03-21)
Nios_ii_8.0_back\cpu.v (396784, 2013-03-21)
Nios_ii_8.0_back\cpu_0.ocp (840, 2012-08-21)
Nios_ii_8.0_back\cpu_0.sdc (3774, 2012-08-21)
Nios_ii_8.0_back\cpu_0.v (181096, 2012-08-21)
Nios_ii_8.0_back\cpu_0_jtag_debug_module_sysclk.v (6774, 2012-08-21)
Nios_ii_8.0_back\cpu_0_jtag_debug_module_tck.v (7997, 2012-08-21)
Nios_ii_8.0_back\cpu_0_jtag_debug_module_wrapper.v (9440, 2012-08-21)
Nios_ii_8.0_back\cpu_0_ociram_default_contents.mif (5878, 2012-08-21)
... ...
Readme - Simple Socket Server Software Example
DESCRIPTION:
A Simple Socket Server that controls development board LEDs.
Requirements:
-Supported Example Hardware Platforms:
Standard
Full Featured
-Supported Development Boards
Nios Development Board, Stratix II Edition
Nios Development Board, Stratix Professional Edition
Nios Development Board, Stratix Edition
Nios Development Board, Cyclone Edition
Nios Development Board, Cyclone II Edition
-System Library settings:
RTOS Type - MicroC/OS-II
Software Component - NicheStack TCP/IP Stack - Nios II Edition
Period System Timer - SYS_CLK_TIMER
PERIPHERALS USED:
This example exercises the following peripherals:
- Ethernet MAC (named "lan91c111" in SOPC Builder)
- PIO, 8-bit output (named "led_pio" in SOPC Builder)
- PIO, 16-bit output (named "seven_seg_pio" in SOPC Builder)
- STDOUT device (UART or JTAG UART)
SOFTWARE SOURCE FILES:
This example includes the following software source files:
- iniche_init.c: Contains main() and SSSInitialTask() to initialize NicheStack
and then create the other tasks once network has been properly initialized.
Tasks which will use sockets, such as the SSSSimpleSocketServerTask() in this
example, must be created with TK_NEWTASK. All other tasks can be created by directly
calling the MicroC/OS-II API to create a task, i.e. OSTaskCreateExt().
- simple_socket_server.c: Implementation of a simple_socket_server including all necessary sockets
calls to handle a single socket connection & process received commands.
- network_utilities.c: Contains MAC address and IP address routines to
manage addressing. These are used by NicheStack during initialization, but are
implementation-specific (you set your MAC address to whatever you want.. or read
it from your own special non-volatile memory.
- network_utilities.h: Contains prototype for function get_board_mac_addr().
- led.c: Contains tasks to manage board LED commands and update LED displays.
LEDManagementTask interprets commands, and toggles the row of 8 LEDS or signals the
LED7SegLightshowTask in response to commands received from the host running telnet.
The LEDManagementTask reads data from a MicroC/OS-II SSSLEDCommandQ Queue which
receives its data from the SSSSimpleSocketServerTask. LED7SegLightshowTask controls the
7-segment display.
- simple_socket_server.h: Definitions for the entire example application.
- alt_error_handler.h: Definitions for 3 error handlers, one each for MicroC-OS/II, Network,
and Simple Socket Server Application.
- alt_error_handler.c: Implementation for 3 error handlers, one each for MicroC-OS/II,
Network, and Simple Socket Server Application.
BOARD/HOST REQUIREMENTS:
This example requires an Ethernet cable connected to the development board's
RJ-45 jack, and a JTAG connection with the development board. If the host
communication settings are changed from JTAG UART (default) to use a
conventional UART, a serial cable between board DB-9 connector and the host is
required.
If DHCP is available (and enabled in the Software component configuration page, from
the system library properties configuration page), NicheStack TCP/IP Stack will attempt
to obtain an IP address from a DHCP server. Otherwise, a static IP address (defined in
Simple_Socket_Server.h) will be assigned after a DHCP timeout.
ADDITIONAL INFORMATION:
This is an example socket server using NicheStack TCP/IP Stack on MicroC/OS-II. The server
implements simple commands to control board LEDs through a separate MicroC/OS-II
task. It is in no way a complete implementation of a telnet server.
A good introduction to sockets programming is the book "Unix Network Programming" by
Richard Stevens. Additionally, the text "Sockets in C", by Donahoo & Calvert, is a concise
& inexpensive text for getting started with sockets programming.
This example will not run on the Instruction Set Simulator (ISS).
Once the simple socket server example is running and has obtained an IP address (shown
in the terminal window of Nios II IDE), you can connect to it over a network by typing the
following command in a command shell on a development host:
telnet 30
This command will try to connect to the Simple Socket Server using port 30.
近期下载者:
相关文件:
收藏者: