Real-Time Ethernet Configuration

Configure network interface for real-time raw Ethernet communication

  • Library:
  • Simulink Real-Time / Ethernet

Description

To initialize the network and network buffers, use the Real-Time Ethernet Configuration block.

Parameters

expand all

Device

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

Programmatic Use

Block Parameter: ID

Identifies the drivers for the development computer Ethernet chip families that the block supports.

Programmatic Use

Block Parameter: Driver

Enter the PCI bus number for the Ethernet card.

Programmatic Use

Block Parameter: Bus

Enter the PCI slot number for the Ethernet card.

Programmatic Use

Block Parameter: Slot

Enter the PCI function number for the Ethernet card.

Programmatic Use

Block Parameter: Function

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

Programmatic Use

Block Parameter: SampleTime

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.

To see the MAC parameter, select Specify.

Programmatic Use

Block Parameter: AddressSource

Enter the MAC address for the Ethernet card.

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

Programmatic Use

Block Parameter: MAC

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

Programmatic Use

Block Parameter: RxPromiscuous

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

Programmatic Use

Block Parameter: Multicast

Advanced

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

Programmatic Use

Block Parameter: RxBad

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.

Programmatic Use

Block Parameter: RxShort

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

Programmatic Use

Block Parameter: MaxMTU

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.

Programmatic Use

Block Parameter: TxThreshold

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.

Programmatic Use

Block Parameter: TxBuffers

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.

Programmatic Use

Block Parameter: RxBuffers

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

Programmatic Use

Block Parameter: ShowTune

See Also

External Websites

Introduced in R2014b