Documentation

Ethernet Init

Initialize network card for real-time raw Ethernet communication

  • Library:
  • Ethernet

Description

To initialize the Ethernet communication channel, use the Ethernet Init block. Use a separate Ethernet Init block for each Ethernet board.

Note

The Ethernet Init and Buffer Mngmt blocks are combined in the Real-Time Ethernet Configuration block. For new development, use this block.

Parameters

expand all

Device

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

Identifies the driver for each chip family that the block supports.

Enter the PCI bus number for the Ethernet card.

Enter the PCI slot number for the Ethernet card.

Enter the PCI function number for the Ethernet card.

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

Addressing

From the list, select:

  • EEPROM — The block gets the Ethernet card MAC address that is built into the Ethernet card.

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

Dependency

To see the MAC parameter, select Specify.

Enter the MAC address for the Ethernet card.

Dependency

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

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

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

Advanced

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

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

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

Specify a maximum transmission unit number (MTU). With this parameter, you can specify a smaller maximum transmission unit number.

Enter a value that controls when the Ethernet device begins to perform direct memory access (DMA) on packets from memory.

This parameter applies only 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 that the driver holds in the queue before it drops new transmit requests.

The number of buffers must be a multiple of 8.

Enter the maximum number of buffers that the driver holds in the queue before it drops new receive packets.

The number of buffers must be a multiple of 8.

To enable a display of statistical data collected during the run of the model, select this check box.

Introduced in R2008b

Was this topic helpful?