Documentation

Ethernet Init

Initialize network card for real-time raw Ethernet communication

Library

Simulink® Real-Time™ Library for Ethernet

Description

Use the Ethernet Init block to initialize the Ethernet communication channel.

You must use an Ethernet Init block for each Ethernet board.

Block Parameters

This block has three tabs, Device, Addressing, and Advanced.

Device

Device ID

From the list, select a unique integer to identify the Ethernet board. Use this ID to associate the other Ethernet blocks with this board.

Driver

Identifies the driver for each chip family supported. Possible values are Intel 8255X and Intel Gigabit.

PCI bus

Enter the PCI bus number for the Ethernet card.

PCI slot

Enter the PCI slot number for the Ethernet card.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Addressing

Address source

From the list, select:

  • EEPROM

    Allow the block to get the Ethernet card MAC address that is built into the Ethernet card.

  • Specify

    Enable the MAC parameter so that you can manually enter a MAC address for the Ethernet card.

MAC

Enter the MAC address for the Ethernet card.

Enable this parameter by selecting Specify for the Address source parameter.

Rx promiscuous

Select this check box to direct the model to receive all packets regardless of their destination address.

Multicast address list

Enter a list of multicast address vectors as a cell array. By default, this parameter contains an empty cell array. The Ethernet Rx block uses these addresses in addition to the broadcast address and unicast address.

Advanced

You do not normally need to modify the values of the parameters in this tab. Changing the values of these parameters can change the behavior of your system.

Rx bad frames

Select this check box to direct the model to receive all packets, including erroneous ones (such as CRC error, alignment error, and so forth).

Rx short frames

Select this check box to direct the model to receive all packets, including frames that are less than 64 bytes in length.

    Note:   The Intel® Gigabit Ethernet controller does not distinguish between bad packets and short packets. Therefore, checking either Rx Bad Frames or Rx Short Frames has the same results for Driver type Intel Gigabit.

Max MTU

Specify a maximum transmission unit number (MTU). This parameter allows you to specify a smaller maximum transmission unit number. The default is 1518.

Tx threshold

Enter a value to control when the Ethernet device will begin to perform direct memory access (DMA) on packets from memory. The default is 224.

    Note:  

    • This parameter only applies for Driver type Intel 8255X.

    • Before you change this parameter, see Intel 8255x 10/100 Mbps Ethernet Controller Family — Open Source Software Developer Manual.

Tx buffers

Enter the maximum number of buffers to hold in the queue before the driver is to drop new transmit requests. The default is 128.

Rx buffers

Enter the maximum number of buffers to hold in the queue before the driver is to drop new receive packets. The default is 64.

    Note:   For both Tx Buffers and Rx Buffers, the number of buffers must be a multiple of 8.

Display tuning information

Select this check box to enable a display of statistical data collected during the run of the model.

Was this topic helpful?