Create input port for subsystem or external input (HDL Coder)
The Inport block is available with Simulink®.
For information about the simulation behavior and block parameters, see Inport.
This block has a single, default HDL architecture.
BidirectionalPort Setting | Description |
---|---|
on | Specify the port as bidirectional. The following requirements apply:
For more information, see Specify Bidirectional Ports. |
off (default) | Do not specify the port as bidirectional. |
Target platform interface type for DUT ports, specified as a
character vector. The IOInterface
block property
is ignored for Inport and Outport blocks
that are not DUT ports.
To specify valid IOInterface
settings,
use the HDL Workflow Advisor:
In the HDL Workflow Advisor, in the Set Target > Set Target Interface step, in the Target platform interface table, in the Target Platform Interfaces column, use the drop-down list to set the target platform interface type.
Save the model.
The IOInterface
value is saved as an HDL
block property of the port.
For example, to view the IOInterface
value,
if the full path to your DUT port is hdlcoder_led_blinking/led_counter/LED
,
enter:
hdlget_param('hdlcoder_led_blinking/led_counter/LED', 'IOInterface')
Target platform interface port mapping for DUT ports, specified
as a character vector. The IOInterfaceMapping
block
property is ignored for Inport and Outport blocks
that are not DUT ports.
To specify valid IOInterfaceMapping
settings,
use the HDL Workflow Advisor:
In the HDL Workflow Advisor, in the Set Target > Set Target Interface step, in the Target platform interface table, in the Target Platform Interfaces column, use the drop-down list to set the target platform interface type.
In the Bit Range / Address / FPGA Pin column, if you want to change the default value, enter a target platform interface mapping.
Save the model.
The IOInterfaceMapping
value is saved as
an HDL block property of the port.
For example, to view the IOInterfaceMapping
value,
if the full path to your DUT port is hdlcoder_led_blinking/led_counter/LED
,
enter:
hdlget_param('hdlcoder_led_blinking/led_counter/LED',... 'IOInterfaceMapping')