addEthernetMACInterface
Class: hdlcoder.Board
Package: hdlcoder
Define Ethernet MAC interface for board object
Syntax
addEthernetMACInterface('InterfaceType',interfacetype,'MACAddress',macaddress,'IPAddress',ipaddress,'NumChannels',channels,'PortAddresses',portaddresses,'EthernetMACConstraintFile',constraintfile)
Description
addEthernetMACInterface('InterfaceType',
adds an Ethernet media access controller (MAC) Hub intellectual property (IP) to an interfacetype
,'MACAddress',macaddress
,'IPAddress',ipaddress
,'NumChannels',channels
,'PortAddresses',portaddresses
,'EthernetMACConstraintFile',constraintfile
)hdlcoder.Board
object.
Use this function if your board has the Ethernet physical layer (PHY) and you want to use
the Ethernet
option for the Insert AXI Manager (HDL
Verifier required) and FPGA Data Capture (HDL Verifier
required) reference design parameters in the Set Target Reference
Design task of the HDL Workflow Advisor.
Note
AXI manager and FPGA data capture in the HDL Workflow Advisor support programmable logic (PL) Ethernet only. The processing system (PS) Ethernet is not supported.
Input Arguments
Examples
Define Ethernet MAC Interface for Kintex-7 KC705 Development Board
Define an Ethernet MAC interface for an hdlcoder.Board
object that you create for the Xilinx®
Kintex®-7 KC705 development board.
Create an hdlcoder.Board
object for the Kintex-7 KC705 board.
hB = hdlcoder.Board;
hB.BoardName = 'Xilinx Kintex-7 KC705 development board';
Define an Ethernet MAC interface for the created board object.
hB.addEthernetMACInterface( ... 'InterfaceType','GMII', ... 'MACAddress','0x000A3502218A', ... 'IPAddress','192.168.0.2', ... 'NumChannels',2,... 'PortAddresses',[50101 50102], ... 'EthernetMACConstraintFile','../kc705_ethernet_gmii.xdc');
Related Topics
Tips
For details about the Ethernet interface type, MAC and IP addresses, number of AXI-stream channels in the Ethernet MAC Hub IP and their UDP port numbers, and constraints for your board, view the board documentation.
Version History
Introduced in R2022b