Visible to Intel only — GUID: tuq1645775051190
Ixiasoft
1. About this Document
2. Introduction
3. Nios® V Processor Hardware System Design with Intel® Quartus® Prime Pro Edition and Platform Designer
4. Nios® V Processor Software System Design
5. Nios® V Processor Configuration and Booting Solutions
6. Nios® V Processor - Using the MicroC/TCP-IP Stack
7. Nios® V Processor Debugging, Verifying, and Simulating
8. Document Revision History for the Nios® V Embedded Processor Design Handbook
5.1. Introduction
5.2. Linking Applications
5.3. Nios® V Processor Booting Methods
5.4. Introduction to Nios® V Processor Booting Methods
5.5. Nios® V Processor Booting from Configuration QSPI Flash
5.6. Nios V Processor Booting from On-Chip Memory (OCRAM)
5.7. Summary of Nios V Processor Vector Configuration and BSP Settings
7.4.1. Prerequisites
7.4.2. Setting Up and Generating Your Simulation Environment in Platform Designer
7.4.3. Creating Nios V Processor Software
7.4.4. Generating Memory Initialization File
7.4.5. Generating System Simulation Files
7.4.6. Running Simulation in the QuestaSim Simulator Using Command Line
Visible to Intel only — GUID: tuq1645775051190
Ixiasoft
6.7.3.1. Network Task Configuration
In this example design, the µC/TCP-IP stack has three configurable tasks, the Receive task, the Transmit De-allocation task and the Timer task. Each task is configured with its own task priority and task stack size.
In order to place a task at higher priority, you have to register it with a lower value, and vice versa. The third-party vendor recommends configuring the task priorities as listed below for optimum performance.
- Network Transmit (TX) De-allocation task (Highest priority)
- Network timer task
- Network Receive (RX) task (Lowest Priority)
As for the task stack size, it is dependent on the processor architecture and compiler used. Configuring the stack size to 4,096 bytes is deemed sufficient for most applications.
Settings | Description | Default Value |
---|---|---|
TX_TASK_PRIO | Network TX De-allocation Task Priority | 1u |
RX_TASK_PRIO | Network RX Task Priority | 3u |
TMR_TASK_PRIO | Network Timer Task Priority | 5u |
TX_TASK_SIZE | Network TX De-allocation Task Stack Size | 4096u |
RX_TASK_SIZE | Network RX Task Stack Size | 4096u |
TMR_TASK_SIZE | Network Timer Task Stack Size | 4096u |
Default network task configuration in uc_tcp_ip_init.c
#define TX_TASK_SIZE (4096u)
#define RX_TASK_SIZE (4096u)
#define TMR_TASK_SIZE (4096u)
static const unsigned TX_TASK_PRIO = 1u;
static const unsigned RX_TASK_PRIO = 3u;
static const unsigned TMR_TASK_PRIO = 5u;