Documentation

Ethernet Init

Initialize network card for real-time raw Ethernet communication

  • Library:
  • Ethernet

Description

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

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

Parameters

expand all

Device

From the list, select a unique number to identify the Ethernet board.

Identifies the driver for each chip family supported.

Enter the PCI bus number for the Ethernet card.

Enter the PCI slot number for the Ethernet card.

Enter the base sample time or a multiple of the base sample time.

Addressing

From the list, select:

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

  • Specify — Explicitly enter a MAC address for the Ethernet card.

Dependency

Selecting Specify makes the MAC parameter visible.

Enter the MAC address for the Ethernet card.

Dependency

To make this parameter visible, set Address source to Specify.

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

Enter a list of multicast address vectors as a cell array. The Ethernet Rx block uses these addresses in addition to the broadcast address and unicast address.

Advanced

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

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

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.

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

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

This parameter only applies to Driver type Intel 8255X. Before you change this parameter, see Intel 8255x 10/100 Mbps Ethernet Controller Family — Open Source Software Developer Manual.

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

The number of buffers must be a multiple of 8.

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

The number of buffers must be a multiple of 8.

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

See Also

Introduced in R2008b

Was this topic helpful?