Main Content

addExternalPortInterface

Class: hdlcoder.Board
Package: hdlcoder

Define external port interface for board object

Syntax

addExternalPortInterface('IOPadConstraint',constraints)

Description

addExternalPortInterface('IOPadConstraint',constraints) adds a generic external port interface to an hdlcoder.Board object. You can add at most one external port interface to your board object.

Use this method if you want the External Port option to be available in the HDL Workflow Advisor Target Platform Interface dropdown list. If you use this method to add an external port, in the HDL Workflow Advisor, you must manually specify pin names in the Bit Range / Address / FPGA Pin field.

Input Arguments

expand all

IO pad constraints, specified as a cell array of character vectors.

Example: {'IOSTANDARD = LVCMOS25'}

Example: {'IOSTANDARD = LVCMOS25','SLEW = SLOW'}

Tips

  • To get IO constraint names for your board, view the board documentation.

Alternatives

If you know the details of the external interface, and want to make them available as UI dropdown list options in the HDL Workflow advisor, use the addExternalIOInterface method instead. For example, using hdlcoder.Board.addExternalIOInterface, you can predefine characteristics of the interface such as the name, port bit width, signal direction, and valid pin names.

Version History

Introduced in R2015a