hdlcoder.ReferenceDesign.addAXI4StreamInterface - Add AXI4-Stream interface - MATLAB (original) (raw)
Class: hdlcoder.ReferenceDesign
Namespace: hdlcoder
Add AXI4-Stream interface
Syntax
addAXI4StreamInterface('MasterChannelConnection',Master_Channel_Port,'SlaveChannelConnection',Slave_Channel_Port) addAXI4StreamInterface('MasterChannelConnection',Master_Channel_Port,'SlaveChannelConnection',Slave_Channel_Port), Name,Value
Description
addAXI4StreamInterface('MasterChannelConnection',[Master_Channel_Port](#buqpi%5F2-1-master%5Fchannel%5Fport),'SlaveChannelConnection',[Slave_Channel_Port](#buqpi%5F2-1-slave%5Fchannel%5Fport))
adds an AXI4-Stream interface to an hdlcoder.ReferenceDesign
object.
addAXI4StreamInterface('MasterChannelConnection',[Master_Channel_Port](#buqpi%5F2-1-master%5Fchannel%5Fport),'SlaveChannelConnection',[Slave_Channel_Port](#buqpi%5F2-1-slave%5Fchannel%5Fport)), [Name,Value](#namevaluepairarguments)
adds and defines an AXI4-Stream interface, with additional options specified by one or more Name,Value
pair arguments.
Input Arguments
Reference design port connected to the IP core AXI4-Stream master interface, specified as a character vector. This port must be an AXI4-Stream slave interface. Ifmaster_channel_enable
is true
, you must specifymaster_channel_port
.
Example: 'axi_dma_0/S_AXIS_S2MM'
Reference design port connected to the IP core AXI4-Stream slave interface, specified as a character vector. This port must be an AXI4-Stream master interface. Ifslave_channel_number
istrue
, you must specifyslave_channel_port
andslave_channel_data_width
.
Example: 'axi_dma_0/M_AXIS_MM2S'
Tip
To add more than one AXI4-Stream interface to your reference design, call theaddAXI4StreamInterface
method multiple times depending on the number of interfaces that you want to add. For each additional interface, specify a unique InterfaceID
.
Name-Value Arguments
Specify optional pairs of arguments asName1=Value1,...,NameN=ValueN
, where Name
is the argument name and Value
is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.
Before R2021a, use commas to separate each name and value, and enclose Name
in quotes.
Name of the AXI4-Stream interface that you add to the reference design, specified as a character vector. To create multiple AXI4-Stream interfaces, make sure that you use unique names for each interface.
Example: 'InterfaceID','AXI4-Stream1'
Master channel enable signal, specified as either true
or false
. By default,MasterChannelEnable
is true
, so you must specifymaster_channel_port
. To use a reference design that has only a Slave channel, setMasterChannelEnable
to false
and do not specify themaster_channel_port
.
Example: 'MasterChannelEnable','false'
Slave channel enable signal, specified as either true
or false
. By default,SlaveChannelEnable
is true
, so you must specifyslave_channel_port
. To use a reference design that has only a Master channel, setSlaveChannelEnable
to false
and do not specify theslave_channel_port
.
Example: 'SlaveChannelEnable','false'
Reference design master channelTDATA
bit width, specified as a positive integer. By default, themaster_channel_data_width
is 32
bits.
Example: 'MasterChannelDataWidth',32
Reference design slave channelTDATA
bit width, specified as a positive integer. By default,slave_channel_data_width
is 32
bits.
Example: 'SlaveChannelDataWidth',32
Indicates if the AXI4-Stream interface is connected to the processor through a DMA. Set this value to true
to enable device tree generation for the IP core AXI4-Stream interfaces.
Example: 'HasDMAConnection','true'
Reference to the corresponding S2MM DMA node in the registered device tree. Set the value to match the name of the corresponding S2MM DMA node in the registered device tree. References to device tree nodes must start with "&"
. To reference a node by its label, specify "&"
before the label, such as"&myLabel"
. To reference a node by its path, specify the path inside "&{"
and"}"
, such as"&{/myNode/childNode}"
.
SetMasterChannelEnable to true
to specify this value.
Example: 'DeviceTreeMasterChannelDMANode','&axi4stream_s2mm'
Reference to the corresponding MM2S DMA node in the registered device tree. Set the value to match the name of the corresponding MM2S DMA node in the registered device tree. References to device tree nodes must start with "&"
. To reference a node by its label, specify "&"
before the label, such as"&myLabel"
. To reference a node by its path, specify the path inside "&{"
and"}"
, such as"&{/myNode/childNode}"
.
SetSlaveChannelEnable to true
to specify this value.
Example: 'DeviceTreeSlaveChannelDMANode','&axi4stream_m2ss'
Version History
Introduced in R2020a