Selecting the Adapter for Point-to-Point Ethernet Hardware Co-Simulation with M-Hwcosim - 2020.2 English

Vivado Design Suite Reference Guide: Model-Based DSP Design Using System Generator (UG958)

Document ID
Release Date
2020.2 English

When you are performing Point-to-Point Ethernet Hardware Co-Simulation using M-Hwcosim, you can select the desired Ethernet interface i f there are multiple adapters.

This can be achieved with the following sequence of MATLAB console commands:

  1. Get the M-Hwcosim object.

    h = Hwcosim('<model_name.hwc>')

    for example:

    h = Hwcosim('sysgenFSE.hwc')

  2. Get the information for all of the Ethernet adapters.

    >> ifc_arr = xlPPEthernetCosimGetAdapters;

    xlPPEthernetCosimGetAdapters is a helper function to list all available Ethernet adapters in the system into a MATLAB struct array.

  3. Find the human-readable names of the adapters and find the index of the desired adapter.

    >> ifc_arr.desc

    Example output is shown below.

    >> ifc_arr.desc

    ans =

    Please select an Ethernet interface

    ans =

    Infineon AN983/AN985/ADM9511 NDIS5 64-bits X64 Driver (00:1e:e5:d6:d5:fd)

    ans =

    Broadcom NetXtreme Gigabit Ethernet Driver (bc:30:5b:d2:23:0b

    The first index is always "Please select an Ethernet interface". The other indexes are the device description string, the device name, the MAC address, the connection speed, and the maximum frame size of each Ethernet adapter.

  4. Select the index of the Ethernet Adapter connected to the board and set the ethernetInterfaceID property in the M-Hwcosim object. Here the second entry (Infineon adapter) is used.

    >> set(h, 'ethernetInterfaceID', ifc_arr(2).dev);