Build Options; Plugs_Debug (Default Value = 1); Plugs_Plug_Count (Default Value = 6); Plugs_Adapter_Count (Default Value = 2) - Altera Nios Ethernet User Manual

Development kit user guide
Hide thumbs Also See for Nios Ethernet:
Table of Contents

Advertisement

Software Overview

Build Options

42
The following build options are provided for modulating the features and
the footprint of the Plugs Library.

PLUGS_DEBUG (Default Value = 1)

This build option may be set to zero, to disable all debug-printing
features, or 1 or 2 to enables debug-printing for plugs that are created with
the ne_plugs_flag_debug_rx or ne_plugs_flag_debug_tx flags
set. When set to zero, no printing code is linked to the plug.

PLUGS_PLUG_COUNT (Default Value = 6)

This build option sets the maximum number of plugs that you can create.
The library can handle a maximum of 32 plugs. The library itself uses 2 or
3 ports per adapter for managing ARP, pings, and DNS. Changing this
option affects the amount of static storage used by the library.
1
When using a stacked reference design (two adapters), it is
necessary to increase the default value number. The
recommended value is 10.

PLUGS_ADAPTER_COUNT (Default Value = 2)

The Plugs Library can support multiple network adapters. This build
option sets the maximum number of adapters that can be used. It affects
the amount of static storage used by the library.

PLUGS_DNS (Default Value = 1)

The Plugs Library lets you establish connections to a remote network
device using either its name or its IP address. If you use its name, the Plugs
Library contacts a domain name server to translate it into an IP address. If
your application does not need to establish outgoing connections (the
application is a server only), or uses IP addresses only, then this build
option can be set to zero to omit the code that implements name lookups.

PLUGS_PING (Default Value = 1)

In general, every network device should respond to an ICMP echo request
message (ping). You can disable a ping response to save a small amount
of code space by setting this build option to zero.
Nios Ethernet Development Kit User Guide
Altera Corporation

Advertisement

Table of Contents
loading

Table of Contents