Pg022 Axi Datamover
Pg022 Axi Datamover
Pg022 Axi Datamover
Chapter 1: Overview
Feature Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Unsupported Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Licensing and Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Example
VHDL
• AXI4 Compliant Design
Overview
The AXI DataMover is a key interconnect infrastructure IP that enables high throughput
transfer of data between the AXI4 memory-mapped and AXI4-Stream domains. The AXI
DataMover provides the MM2S and S2MM AXI4-Stream channels that operate
independently in a full-duplex like method. The AXI DataMover IP core is a key building
block with 4 KB address boundary protection, automatic burst partitioning, and provides
the ability to queue multiple transfer requests using nearly the full bandwidth capabilities of
the AXI4-Stream protocol. Furthermore, the AXI DataMover provides byte-level data
realignment allowing memory reads and writes to any byte offset location. Based on the
requirement of the channels, they can be configured as Basic or Full.
Figure 1-1 and Figure 1-2 show block diagrams of the AXI DataMover core. There are two
sub blocks:
• MM2S: This block handles transactions from the AXI4 to the AXI4-Stream domain. It
has its dedicated AXI4-Stream compliant command and status queues, reset block, and
error signals. Based on command inputs, the MM2S block issues a read request on the
AXI4 interface. Read data can be optionally stored inside the MM2S block. Datapath
interfaces (AXI4-Read and AXI4-Stream Master) can optionally be made asynchronous
to command and status interfaces (AXI4-Stream Command and AXI4-Stream Status).
• S2MM: This block handles transactions from the AXI4-Stream to AXI4 domain. It has its
dedicated AXI4-Stream compliant command and status queues, reset block, and error
signals. Based on command inputs and input data from the AXI4-Stream interface, the
S2MM block issues a write request on the AXI4 interface. Input stream data can be
optionally stored inside a S2MM block. Datapath interfaces (AXI4-Read and
AXI4-Stream Master) can optionally be made asynchronous to command and status
interfaces (AXI4-Stream Command and AXI4-Stream Status).
0065HDGSDWK
$;,6WUHDP6ODYH&RPPDQG
&PG6WV/RJLF
$;,6WUHDP0DVWHU6WDWXV
;
X14018-
021417
Feature Summary
AXI4 Compliant
The AXI DataMover core is fully compliant with the AXI4 interface and the AXI4-Stream
interface.
Unaligned Transfers
The AXI DataMover core optionally supports the Data Realignment Engine (DRE). When DRE
is enabled, data is realigned to the byte (8 bits) level on the Memory Map datapath. DRE
support is provided on the AXI4-Stream interface for TDATA widths up to 64 bits.
If the DRE is enabled, data reads can start from any Buffer Address byte offset, and the read
data is aligned such that the first byte read is the first valid byte out on the AXI4-Stream.
Similarly, when the DRE is enabled, the writes can happen at any byte offset address. What
is considered aligned or unaligned is based on the Memory Map data width. For example,
if Memory Map Data Width = 32, data is aligned if it is located at address offsets of 0x0, 0x4,
0x8, 0xC, etc. Data is unaligned if it is located at address offsets of 0x1, 0x2, 0x3 and so forth.
Note: Performing unaligned transfers when DRE is disabled will give unpredictable results.
Asynchronous Clocks
The AXI DataMover core supports asynchronous clock domain for Command/Status Stream
interface and Memory Map interface.
Applications
The AXI DataMover provides high-speed data movement between system memory and an
AXI4-Stream-based target. This core is intended to be a standalone core for a custom
design.
Unsupported Features
The following AXI4 features are not supported by the DataMover design.
• User signals
• Locking transfers
• Caching transfers
• Circular Burst transfers
Information about this and other Xilinx LogiCORE IP modules is available at the Xilinx
Intellectual Property page. For information on pricing and availability of other Xilinx
LogiCORE IP modules and tools, contact your local Xilinx sales representative.
Product Specification
Performance
The AXI DataMover is characterized using methods described in the Vivado Design Suite
User Guide: Designing with IP (UG896) [Ref 1]. Table 2-1 shows the results of the
characterization runs.
Latency
Table 2-2 describes the latency for the AXI DataMover core. Latency is measured in
simulation and indicates AXI DataMover core latency cycles exclusive of system dependent
latency or throttling.
Throughput
Table 2-3 describes the latency for the AXI DataMover core. The table provides performance
information for a typical configuration. Throughput testing consisted of eight parent
commands loaded into the AXI DataMover core with each command having a BTT value as
1 MB and each channel operating simultaneously (full duplex). The core was configured for
synchronous operation meaning m_axis_mm2s_cmdsts_aclk =
m_axis_s2mm_cmdsts_awclk = m_axi_mm2s_aclk = m_axi_s2mm_aclk.
Resource Utilization
The AXI DataMover resource utilization for various parameter combinations measured with
7 series, Zynq®-7000 (Table 2-4) and UltraScale™ devices (Table 2-5).
Unaligned Transfer
Indeterminate BTT
Store and Forward
Streaming Width
MMap Width
MMap Width
Burst Length
Burst Length
Async Mode
Async Mode
Addr Width
Block RAM
BTT Width
BTT Width
Type
Type
Slice
Luts
Reg
32 Basic 32 32 16 16 NA NA NA Basic 32 32 16 16 NA NA NA NA 207 543 645 0
32 Full 32 32 16 16 FALSE TRUE FALSE Full 32 32 16 16 FALSE TRUE FALSE FALSE 430 1158 1128 2
32 Full 64 64 8 23 FALSE TRUE FALSE Full 64 64 8 23 FALSE TRUE FALSE FALSE 545 1435 1497 3
32 Full 64 32 8 16 FALSE TRUE TRUE Full 64 32 8 16 FALSE TRUE TRUE FALSE 574 1515 1563 3
32 Full 32 32 16 16 TRUE TRUE FALSE Full 32 32 16 16 TRUE FALSE FALSE TRUE 613 1277 1737 6
64 Full 32 32 16 16 FALSE TRUE FALSE Full 32 32 16 16 FALSE TRUE FALSE FALSE 504 1303 1336 2
64 Full 32 32 16 16 TRUE TRUE FALSE Full 32 32 16 16 TRUE FALSE FALSE TRUE 589 1322 1680 8
Unaligned Transfer
Unaligned Transfer
Indeterminate BTT
Store and Forward
Streaming Width
MMap Width
MMap Width
Burst Length
Burst Length
Async Mode
Async Mode
Addr Width
Block RAM
BTT Width
BTT Width
Slice/CLB
Type
Type
Luts
Reg
32 Basic 32 32 16 16 NA NA NA Basic 32 32 16 16 NA NA NA NA 134 558 645
32 Full 32 32 16 16 FALSE TRUE FALSE Full 32 32 16 16 FALSE TRUE FALSE FALSE 265 1193 1130 2
32 Full 64 64 8 23 FALSE TRUE FALSE Full 64 64 8 23 FALSE TRUE FALSE FALSE 347 1481 1499 3
32 Full 64 32 8 16 FALSE TRUE TRUE Full 64 32 8 16 FALSE TRUE TRUE FALSE 352 1569 1564 3
32 Full 32 32 16 16 TRUE TRUE FALSE Full 32 32 16 16 TRUE FALSE FALSE TRUE 313 1300 1740 6
64 Full 32 32 16 16 FALSE TRUE FALSE Full 32 32 16 16 FALSE TRUE FALSE FALSE 316 1357 1338 2
64 Full 32 32 16 16 TRUE TRUE FALSE Full 32 32 16 16 TRUE FALSE FALSE TRUE 353 1451 2000 8
Port Descriptions
The AXI DataMover I/O signals are described in Table 2-6.
Design Information
Command Interface
The DataMover operations are controlled by an AXI slave stream interface that receives
transfer commands from the user logic. The MM2S and the S2MM each have a dedicated
command interface. A command is loaded with a single data beat on the input command
stream interface. The width of the command word is normally 72 bits if 32-bit AXI
addressing is being used in the system. However, the command word width is extended (by
parameterization) if the system address space grows beyond 32 bits. For example, a 64-bit
address system requires the command word to be 104 bits wide to accommodate the wider
starting address field. The command interface is an AXI4-Stream interface so the total
number of bits should be an integer multiple of 8. For example, if the address space is
configured as 33 bits, the address portion in the command should be stuffed to make it 40
bits. This is to ensure compliance with the AXI4-Stream protocol. AXI Datamover will
internally ignore the stuffed bits.
The format of the command word is shown in Figure 2-1 and detailed in Table 2-7. It is the
same for either the MM2S or S2MM DataMover elements. The command format allows the
specification of a single data transfer from 1-byte to 8,388,607 bytes (7FFFFF hex bytes). A
command loaded into the command interface is often referred to as the parent command of
a transfer. The DataMover automatically breaks up large transfers into intermediate bursts
(child transfers) that comply with the AXI4 protocol requirements.
[&$&+( [86(5 569' 7$* 6$''5 '55 (2) '6$ 7\SH %77
1 $GGUHVV:LGWKIRU0HPRU\0DSDQGVKRXOGEHDPXOWLSOHRI ;
(N+39) –
RSVD Reserved
(N+36) (1)
Command TAG
(N+35) – This field is an arbitrary value assigned that is user assigned to the command.
TAG
(N+32) (1) The TAG flows through the DataMover execution pipe and gets inserted into the
corresponding status word for the command.
Start Address
This field indicates the starting address to use for the memory-mapped side of
(N+31) –32(1) SADDR the transfer requested by the command. If DRE is enabled, the lower order
address bits of this field indicate the starting alignment to load on the memory
mapped side of the DRE.
DRE ReAlignment Request
This bit is only used if the optional DRE is included by parameterization. The bit
31 DRR indicates that the DRE alignment needs to be re-established prior to the
execution of the associated command. The DRE stream side alignment is derived
from the DSA field of the command. The Memory Mapped side alignment is
derived from the least significant bits of the SADDR field.
End of Frame
This bit indicates that the command is an End of Frame command. This generally
affects the MM2S element (Read Master) because it causes the stream output
logic to assert the TLAST output on the last data beat of the last transfer needed
to complete the command. If DRE is included, this also causes the DRE to flush
30 EOF out any intermediate data at the conclusion of the last transfer of the command
and submit it to the stream output (in the case of the MM2S Read Master) or to
the AXI Write Data Channel (in the case of the S2MM Write Master). This bit
should be set for S2MM commands (when the Indeterminate BTT mode is
disabled) when TLAST is expected to arrive with the number of bytes
programmed in the command.
Notes:
1. N is the width of memory-mapped address bus. If the address width is configured as 33, then N should be considered as 40
while generating the command and the upper 7 address bits should be stuffed. The stuffed bits are ignored by the AXI
Datamover. This must be done to ensure that the width of command bus is a multiple of 8.
2. These fields are valid only when Enable xUSERxCACHE is checked in the Vivado Integrated Design Environment (IDE).
Command FIFO
The command interface of a DataMover element is designed to allow command queuing.
The commands are queued in a FIFO.
The command FIFO is by default a synchronous FIFO using the same clock as the memory
mapped data and address channels of the associated DataMover element. However, you can
specify an asynchronous command interface FIFO. This allows the command interface to be
clocked at a different (generally much slower) frequency than the memory-mapped
interface.
P
QV QV QV QV QV
V
BDFON
BFPGBWYDOLG
BFPGBWUHDG\
;
Status Interface
The status of DataMover transfer operations is provided by an AXI Master Stream interface
that relays transfer status to the user logic. The MM2S and the S2MM each have a dedicated
Status Interface. A status word is read with a single data beat on the Status Stream interface.
The width of the status word is fixed at 8 bits except when S2MM is enabled in
indeterminate mode (S2MM Status Format in Indeterminate BTT Mode (IBTT).)
The format of the status word is shown in Figure 2-3 and detailed in Table 2-8. It is the same
for either the MM2S or S2MM DataMover elements.
X-Ref Target - Figure 2-3
;
The format of the S2MM status word with Indeterminate BTT mode enabled is shown in
Figure 2-4 and detailed in Table 2-9. This status format does not apply to the MM2S
DataMover status interface. See Indeterminate BTT Mode for more information.
X-Ref Target - Figure 2-4
;
Table 2‐9: Special S2MM Status Word Details (Indeterminate BTT Mode Enabled)
Bits Field Name Description
End of Packet
31 EOP This bit indicates that the S2MM Stream input received a tlast assertion during
the execution of the DataMover command associated with the status word.
This is not an error condition.
Bytes Received
30 to 8 BRCVD This field indicates the actual number of bytes received on the stream interface
at the point where s_axis_s2mm_tlast was asserted by the Stream Master.
Transfer OKAY
This bit indicates that the associated transfer command has been completed
7 OKAY with the OKAY response on all intermediate transfers.
0 = Command had a non-OKAY response during all associated transfers.
1 = Command had a OKAY response during all associated transfers.
Slave Error
Indicates the DataMover encountered a slave reported error condition for the
associated command. This is received by the response inputs from the AXI4
6 SLVERR interface.
0 = No Error
1 = Slave Asserted Error Condition
Decode Error
Indicates the DataMover encountered an address decode error condition for
the associated command. This is received by the response inputs from the AXI4
interface and indicates an address decode timeout occurred on an address
5 DECERR generated by the DataMover element while executing the corresponding
command.
0 = No Error
1 = Address Decode Error Condition
Internal Error
Indicates the DataMover encountered an internal error condition for the
associated command. A BTT (Bytes to Transfer) value of 0 (zero) in the
4 INTERR command word can cause this assertion.
Additional conditions are to be determined.
0 = No Error
1 = Internal Error Condition
TAG
3 to 0 TAG This 4-bit field echoes the value of the TAG field of the associated input
command whose completion generated the status.
Status FIFO
The Status Interface of a DataMover is designed to allow for status queuing corresponding
to the available command queuing on the Command Interface. The status values are
“queued” in a FIFO.
The Status FIFO is by default a synchronous FIFO using the same clock as the memory
mapped interface of the associated DataMover element. However, you can specify an
asynchronous Command/Status Interface FIFO. This allows the command and status
interfaces to be clocked at a different (generally much slower) frequency than the
associated memory-mapped interface.
*_aclk
*_sts_tvalid
*_sts_tready
*_sts_tlast
*_sts_tkeep
X12283
An additional feature of the Indeterminate BTT mode is the absorption of overflow data
from the input stream channel. Overflow is defined as the stream data that is received that
exceeds the BTT value for the corresponding parent transfer command and the EOF bit is
also set in that command. The data absorption occurs from the point of the BTT value being
reached to the next TLAST data beat.
Example Design
The connection of these ports to an external user logic is shown in Figure 2-6. This is
representative of the loopback connection on the AXI4-Stream side with external storage
facility. The user logic should have the ability to control the AXI DataMover Address posting
to the AXI4 bus through the mm2s_allow_addr_req and s2mm_allow_addr_req
signals. When asserted High, the associated DataMover Address Controller is allowed to
post a transfer address to the AXI4 bus and thus commit to a transfer. The
mm2s_allow_addr_req controls the MM2S Address Controller and the
s2mm_allow_addr_req controls the S2MM Address Controller. When asserted Low, the
associated Address Controller is inhibited from posting transfer address to the AXI4 bus.
The AXI DataMover also provides status back to the user logic indicating when an address
set has been committed to the AXI4 bus through the mm2s_addr_req_posted and
s2mm_addr_req_posted signals. In addition, the MM2S and S2MM also provide a status
bit indicating when a scheduled Read or Write Data Channel transfer has completed
through the mm2s_rd_xfer_cmplt and s2mm_wr_xfer_cmplt signals.
This control and status mechanism allows the AXI DataMover to pipeline Read requests to
the AXI4 without over-committing the Data FIFO capacity (filling it up and throttling the
AXI4 Read data Channel). It also can keep the DataMover from issuing Write transfers until
the write data is actually present in the Data FIFO. See the timing diagrams in Figure 2-8
and Figure 2-9 for a better understanding of usage of these signals.
X-Ref Target - Figure 2-6
$;,'DWD0RYHU 8VHU/RJLF
0066WUHDP&KDQQHO'02XWSXW
006 PPVBUGB[IHUBFPSOW
PPVBDOORZBDGGUBUHT
PPVBDGGUBUHTBSRVWHG 3UHGLFWLYH
6WRUHDQG 'DWD
)RUZDUG ),)2
VPPBDOORZBDGGUBUHT
VPPBDGGUBUHTBSRVWHG &RQWURO/RJLF
VPPBZUB[IHUBFPSOW
5FYG
VPPBZUBOGBQ[WBOHQ /(1
600 /(1
VPPBZUBOHQ ),)2
&PSU
6006WUHDP&KDQQHO'0,QSXW
;
Figure 2‐6: AXI DataMover Address Posting Control and Status Interface Use Case
Request Spawning
One important aspect of the DataMover operation is the ability to spawn multiple child AXI
requests when executing a single command from the corresponding Command FIFO.
Request spawning occurs when the requested Bytes to Transfer (BTT) specified by the
command exceeds a parameterized burst data beat limit (default is 16 but can also be set to
32, 64, 128, or 256).
When the soft halt operations are completed, the MM2S asserts the mm2s_halt_cmplt
output. This output remains asserted until the MM2S is reset through the hard reset input
m_axi_mm2s_aresetn (or m_axis_mm2s_cmdsts_aresetn if asynchronous command
interface is in use).
When the soft halt operations are completed, the S2MM asserts the s2mm_halt_cmplt
output. This output remains asserted until the S2MM is reset by the hard reset input
m_axi_s2mm_aresetn (or m_axis_s2mm_cmdsts_aresetn if the asynchronous
command interface is in use).
DataMover Basic
Some applications of the DataMover do not need the high-performance features it
provides. In these applications, resource utilization is more important than performance.
The DataMover provides the ability to select a reduced function option through the Vivado
IDE.
• 32-bit and 64-bit Memory Mapped Data Width and 8, 16, 32, and 64-bit Stream width
(parameterized). Starting transfer address must be aligned to address boundaries that
are multiples of the Stream Data width (in bytes).
• Maximum AXI4 Burst Length support of 2, 4, 8, 16, 32, and 64 data beats
(parameterized).
• No DRE support.
• One-Deep Command and Status Queuing (Parent command). The Command and Status
FIFOs are replaced with a FIFO register for each.
• Commanded transfer lengths (Bytes to Transfer) are limited to the Max AXI4 Burst
Length multiplied by the Stream data width (in bytes).
Example: Maximum burst length = 32, Stream Data Width = 4 bytes (32 bits), the
maximum commanded transfer length (BTT) is 128 bytes.
(N+35) – (N+32) (1) TAG You assign this field an arbitrary value to the command. The TAG
flows through the DataMover execution pipe and gets inserted
into the corresponding status word for the command.
Start Address
(N+31) –32(1) SADDR This field indicates the starting address to use for the memory
mapped side of the transfer requested by the command.
This field is ignored by the DataMover Basic. Can be any value
31 – 4 Ignored
but zeroes are recommended.
TYPE
23 TYPE Specifies the type of AXI4 access. A value of 1 means INCR
access, while a value of 0 means a FIXED address access.
This field is ignored by the DataMover Basic. Can be any value
22 –(X+1) Ignored
but zeros are recommended.
Bytes to Transfer
This field indicates the total number of bytes to transfer for the
X–0 BTT command. The maximum allowed value is set by the following
formula:
Max Burst Length x (Streaming Data width)/8
Notes:
1. N is the width of the Address Memory Mapped Address bus. If the address space selected is 33 bits, N should be
considered as 40 and the upper 7 bits of the address should be stuffed. This has to be done to make the data width
a multiple of 8.
;
Dataflow:
IMPORTANT: A single parent command can generate multiple child commands on the AXI4 Interface.
Status signals are asserted when all child commands are processed.
;
Dataflow:
IMPORTANT: A single parent command can generate multiple child commands on the AXI4 Interface.
Status signals are asserted when all child commands are processed.
Note: In the absence of any S2MM command, AXI DataMover will pull the
s_axis_s2mm_tready signal to Low after taking in four beats of streaming data. This will
throttle the input data stream. To have a minimum amount of throttling, ensure that a valid
command is issued to the S2MM interface much before the actual data arrives.
AXI DataMover does not support null bytes. (TKEEP completely deasserted). A start of a streaming
packet is identified by TVALID while its end is determined by TLAST. AXI DataMover does not
support sparse/null TKEEP between the packet boundaries. TKEEP can be sparse only at TLAST
beat. TKEEP can also be sparse at the start of a packet when DRE (unaligned transfers) is enabled.
),)2
6WV
5G&QWO
;
Figure 3-2 shows a multichannel application of DataMover in the S2MM path. Incoming
TDEST information can be used to pick the corresponding destination address on the AXI4
side and the same TDEST value can be stored in the register space.
X-Ref Target - Figure 3-2
8VHU%XIIHU&RQWURO/RJLF 5G'DWD
$;,/LWH 5HJLVWHUV
),)2
6WV
;
Clocking
The AXI DataMover has two clock inputs for each of the MM2S and S2MM blocks for a total
of four clock inputs. The m_axi_mm2s_aclk is the main synchronizing clock for the MM2S
block. This clock synchronizes both the associated AXI4 interface and Stream interface. The
second clock for the MM2S element is m_axis_mm2s_cmdsts_aclk. This clock is used
only when MM2S is configured in asynchronous mode. When used, it synchronizes the user
sides of the Command and Status interfaces.
The S2MM block has identical clocking schemes as the MM2S block but with two different
clocks, the m_axi_axi_s2mm_aclk and m_axis_s2mm_cmdsts_awclk.
Resets
The AXI DataMover has two reset inputs for each of the MM2S and S2MM blocks for a total
of four reset inputs.
AXI DataMover requires that the input reset assertion must be a minimum of three clock
periods of the synchronizing clock. Table 3-1 shows the clock and reset signals and its
associated interface.
Table 3‐1: Clock, Reset and its Associated Interface
Asynchronous Mode
Asynchronous Mode
1. Open a project by selecting File then Open Project or create a new project by selecting
File then New Project in the Vivado design tools.
2. Open the IP catalog and navigate to any of the taxonomies.
3. Double-click AXI DataMover to bring up the AXI DataMover Vivado Integrated Design
Environment (IDE).
For details, see the Vivado Design Suite User Guide: Designing with IP (UG896) [Ref 1] and
the Vivado Design Suite User Guide: Getting Started (UG910) [Ref 3].
The AXI DataMover Vivado IDE contains one screen with two tabs (Figure 4-1 and
Figure 4-2) that provide information about the core, allow configuration of the core, and
provides the ability to generate the core.
Note: Figures in this chapter are illustrations of the Vivado IDE. This layout might vary from the
current version.
If you are customizing and generating the core in the IP integrator, see the Vivado Design
Suite User Guide: Designing IP Subsystems using IP Integrator (UG994) [Ref 4] for detailed
information. Vivado IDE might auto-compute certain configuration values when validating
or generating the design, as noted in this section. You can view the parameter value after
successful completion of the validate_bd_design command.
X-Ref Target - Figure 4-1
Component Name – The base name of the output files generated for the core. Names must
begin with a letter and can be composed of any of the following characters: a to z, 0 to 9,
and “_”.
Basic Options
The following describes the fundamental options that affect the MM2S and S2MM channels
of the AXI DataMover core.
• MM2S Channel Options – This box allows you to configure the MM2S channel
options.
° Channel Type – Choose Full or Basic. Selecting Full allows the MM2S channel to be
configured for all possible combination and advance features. The Basic mode
restricts some of features and allows the MM2S to be used only for 32 or 64-bit
wide data.
° Memory Mapped Data Width – Specifies the data width in bits of the AXI4 Read
bus. Valid values are 32, 64, 128, 256, 512, and 1,024. Depending on the Channel
Type, these options vary.
° Stream Data Width – Specifies the data width in bits of the MM2S Stream bus.
Valid values are 8, 16, 32, 64, 128, 256, 512, and 1,024. This value cannot be more
than the Memory Mapped Data Width.
° Maximum Burst Size – This option specifies the maximum size of the burst cycles
on the AXI MM2S Memory Map Read interface. In other words, this setting specifies
the granularity of burst partitioning. For example, if the burst length is set to 16, the
maximum burst on the memory map interface is 16 data beats. Smaller values
reduce throughput but result in less impact on the AXI infrastructure. Larger values
increase throughput but result in a greater impact on the AXI infrastructure. Valid
values are 2, 4, 8, 16, 32, 64, 128, and 256 based on the data width that is selected.
° Bytes To Transfer (BTT) Bit Used – Specifies the valid number of bits in the
number of BTT field of the MM2S command. Valid options are 8 to 23.
• S2MM Channel Options – This box allows you to configure the S2MM channel
options.
° Channel Type – You can choose a Full, Basic, or Omit. Selecting Full allows the
S2MM channel to be configured for all possible combination and advance features.
The Basic mode restricts some of features and allows the S2MM to be used only for
32 or 64-bit wide data. The Omit mode completely disables the channel.
° Memory Mapped Data Width – Specifies the data width in bits of the AXI4 Write
bus. Valid values are 32, 64, 128, 256, 512, and 1,024. The choices vary depending
on the Channel Type chosen.
Note: When the IP is used in the IP integrator, the Memory Mapped Data Width parameter
is auto set based on the data width of the Streaming interface. You can change this value by
switching it to "Manual" mode.
° Stream Data Width – Specifies the data width in bits of the S2MM Stream bus.
Valid values are 8, 16, 32, 64, 128, 256, 512, and 1,024. This value cannot be more
than the Memory Mapped Data Width.
Note: When the IP is used in the Vivado IP integrator, the Stream Data Width parameter is
automatically set based on the connection made.
° Maximum Burst Size – This option specifies the maximum size of the burst cycles
on the AXI S2MM Memory Map Read interface. In other words, this setting specifies
the granularity of burst partitioning. For example, if the burst length is set to 16, the
maximum burst on the memory map interface is 16 data beats. Smaller values
reduce throughput but result in less impact on the AXI infrastructure. Larger values
increase throughput but result in a greater impact on the AXI infrastructure. Valid
values are 2, 4, 8, 16, 32, 64, 128, and 256 based on the data width that is selected.
° Bytes To Transfer (BTT) Bit Used – Specifies the valid number of bits in the
number of the BTT field of the S2mm command. Valid options are 8 to 23.
• Enable xCache and xUser – Select this option if you wish to change the *cache and
*user signals of the AXI4 interface.
• Enable MM2S Control Signals, Enable S2MM Control Signals - Enabling this exposes
all the control and status signals of the MM2S, S2MM interface. When enabled, you
need to connect the signals carefully. By default, these are not exposed and tied to
default states.
• Address Width (32 -64) Specify the width of the address space. It can be any value
between 32 and 64.
Advanced Options
The following describes the advanced options of the MM2S and S2MM channels of the AXI
DataMover core.
• MM2S Channel Options – This box allows you to configure the advance options of the
MM2S channel options.
The following options are only available when the channel is configured in Full mode.
• Enable Asynchronous Clocks – This setting allows you to operate the MM2S
Command and Status Stream interface asynchronously with the MM2S Memory Map
interface.
Note: The Enable Asynchronous Clocks parameter is automatically set when the IP is used in the
IP integrator.
• Allow Unaligned Transfers – This setting enables or disables the MM2S Data
Realignment Engine (DRE). When checked, the DRE is enabled and allows data
realignment to the byte (8 bits) level on the MM2S Memory Map datapath. For the
MM2S channel, data is read from the memory. If the DRE is enabled, data reads can
start from any Buffer Address offset, and the read data is aligned such that the first
byte read is the first valid byte out on the AXI4-Stream. What is considered aligned or
unaligned is based on the Memory Map data width.
• Enable Store and Forward – This setting provides the inclusion/omission of the MM2S
Store and Forward function. This option is available in Full mode only. Further, this
option is always enabled when the memory-map data width is different than the
streaming data width.
• ID width – This value sets the width of the ID ports. Setting this to 0 disables the ID
ports.
• ID Value – This is the value that is put on the ID ports.
• S2MM Channel Options – This box allows you to configure the advance options of the
S2MM channel options.
The following options are only available when the channel is configured in Full mode.
• Enable Asynchronous Clocks – This setting allows you to operate the S2MM
Command and Status Stream interface asynchronously with S2MM Memory Map
interface.
Note: The Enable Asynchronous Clock parameter is automatically set when the IP is used in the
IP integrator.
• Allow Unaligned Transfers – This option enables or disables the S2MM Data
Realignment Engine (DRE). When checked, the DRE is enabled and allows data
realignment to the byte (8 bits) level on the S2MM Memory Map datapath. For the
S2MM channel, data is written to the memory. If the DRE is enabled, data writes can
start from any Buffer Address offset, and the read data is aligned such that the first
byte read is the first valid byte out on the AXI4-Stream. What is considered aligned or
unaligned is based on the Memory Map data width.
• Enable Indeterminate BTT Mode – This setting provides the Indeterminate BTT mode.
This is needed when the number of bytes to be received on the input S2MM Stream
Channel is unknown at the time the transfer command is posted to the DataMover
S2MM command input. When enabled, the Store and Forward option is not available
for use.
• Enable Store and Forward – This setting provides the inclusion/omission of the S2MM
Store and Forward function. This option is available in Full mode only.
Indeterminate-BTT mode takes care of the Store and Forward, as such the Store and
Forward option is not available when I-BTT feature is enabled.
• ID width – This value sets the width of the ID ports. Setting this to 0 disables the ID
ports.
• ID Value – This is the value that is put on the ID ports.
User Parameters
Table 4-1 shows the relationship between the Vivado IDE fields in the Vivado Design Suite
(described in Customizing and Generating the Core) and the User Parameters (which can be
viewed in the Tcl Console).
Output Generation
For details, see the Vivado Design Suite User Guide: Designing with IP (UG896) [Ref 1].
Clock Frequencies
The m_axis_mm2s_cmdsts_aclk should be less than or equal to m_axi_mm2s_aclk.
Similarly, m_axis_s2mm_cmdsts_awclk should be less than or equal to
m_axi_s2mm_aclk.
Clock Management
This section is not applicable for this IP core.
Clock Placement
This section is not applicable for this IP core.
Banking
This section is not applicable for this IP core.
Transceiver Placement
This section is not applicable for this IP core.
Simulation
For comprehensive information about Vivado simulation components, as well as
information about using supported third-party tools, see the Vivado Design Suite User
Guide: Logic Simulation (UG900) [Ref 5].
IMPORTANT: For cores targeting 7 series or Zynq-7000 devices, UNIFAST libraries are not supported.
Xilinx IP is tested and qualified with UNISIM libraries only.
For information about implementing the example design, see Implementing the Example
Design in Chapter 5.
Example Design
This chapter contains information about the example design provided in the Vivado®
Design Suite.
The top module instantiates all components of the core and example design that are
needed to implement the design in hardware, as shown in Figure 5-1. This includes clock
generator, register configuration, data generator, and data checker modules.
X-Ref Target - Figure 5-1
&RPSRQHWQDPH!BH[GHVYKG
WRS
006&RPPDQGJHQ
D[LVBFPGBJHQBPPVYKG
$;,5' 006676&KHFN
5HDG'DWD*HQHUDWRU D[LVBVWVBUHDGYKG
D[LBZULWHBPDVWHUYKG
006'DWD&KHFN
D[LVBUHDGBGDWDYKG
'87
$;,:5 600'DWDJHQ
:ULWH'DWD&KHFNHU D[LVBZULWHBPDVWHUYKG
D[LBVPPBUHDGYKG
600&RPPDQGJHQ
D[LVBFPGBJHQBVPPYKG
600676&KHFN
7RH[DPSOH
D[LVBVWVBUHDGYKG
GHVLJQ
PRGXOHV
FORFNBLQ
GRQH
&ORFN*HQHUDWRU
UHVHW VWDWXV
FORFNBJHQYKG
;
This example design demonstrates transactions on the AXI4 and AXI4-Stream interfaces of
the Device Under Test (DUT).
Clock generator: The Clocking Wizard is used to generate the clocks for the example
design. When DUT is in synchronous mode, The Clocking Wizard generates a 100 MHz clock
for all the AXI interfaces in the example design. When DUT is in asynchronous mode, a 50
MHz clock for the command interface and a 100 MHz clock for the AXI4 and AXI4-Stream
interface are generated by the Clocking Wizard. DUT and other modules of the example
design are kept under reset until MMCME2 is locked.
Read Data generator: This uses an AXI block RAM which is filled (with a fixed amount of
transfers) after MMCM is locked. MM2S channel reads this AXI block RAM and transfers
data to the AXI4-Stream interface.
MM2S STS Checker: This module checks the status that is received from the MM2S
channel.
Read Data checker: This module checks the data transferred on the MM2S AXI4-Stream
interface.
Write path generator: When the Write (S2MM) channel is configured, this module drives
the transactions (with a fixed amount of transfers) on the S2MM AXI4-Stream interface.
S2MM STS Checker: This module checks the status that is received from the S2MM
channel.
Write path checker: This module checks the data received on the AXI4 interface. Data
received on the AXI4 interface is also written into another AXI block RAM.
The test starts soon after the MMCM is locked. The 'Done' pin is asserted after the test is
completed. If the data transfer is successful then the 'Status' pin is asserted. These two pins
can be connected to an LED to know the status of the test.
1. Right-click the core in the Hierarchy window, and select Open IP Example Design.
2. A new window pops up, asking you to specify a directory for the example design. Select
a new directory or keep the default directory.
A new project is automatically created in the selected directory and it is opened in a new
Vivado Integrated Design Environment (IDE) window.
3. In the Flow Navigator (left-side pane), click Run Implementation and follow the
directions.
Table 5-2 shows the files delivered as part of the test bench.
Table 5-3 shows the XDC file delivered as part of example design.
The XDC delivered with the example design has I/O constraints configured for the KC705
board. These constraints are commented by default. Uncomment the constraints before
implementing the example design on KC705 board.
Simulation Results
The simulation script compiles the AXI DataMover example design and supporting
simulation files. It then runs the simulation and checks to ensure that it completed
successfully.
If the test passes, the following message displays: Test Completed Successfully
If the test hangs, the following message displays: Test Failed!! Test Timed Out
WRSBWE
FORFNBLQ
FRPSRQHQWQDPH!BH[GHVYKG
WRS
VWDWXV
7HVW6WDWXV
GRQH
;
Debugging
This appendix includes details about resources available on the Xilinx Support website and
debugging tools.
Documentation
This product guide is the main document associated with the AXI DataMover core. This
guide, along with documentation related to all products that aid in the design process, can
be found on the Xilinx Support web page or by using the Xilinx Documentation Navigator.
Download the Xilinx Documentation Navigator from the Downloads page. For more
information about this tool and the features available, open the online help after
installation.
Answer Records
Answer Records include information about commonly encountered problems, helpful
information on how to resolve these problems, and any known issues with a Xilinx product.
Answer Records are created and maintained daily ensuring that users have access to the
most accurate information available.
Answer Records can be located by using the Search Support box on the main Xilinx support
web page. To maximize your search results, use proper keywords such as
• Product name
• Tool message(s)
• Summary of the issue encountered
A filter search is available after results are returned to further target the results.
AR: 47651.
Technical Support
Xilinx provides technical support in the Xilinx Support web page for this LogiCORE™ IP
product when used as described in the product documentation. Xilinx cannot guarantee
timing, functionality, or support if you do any of the following:
• Implement the solution in devices that are not defined in the documentation.
• Customize the solution beyond that allowed in the product documentation.
• Change any section of the design labeled DO NOT MODIFY.
To contact Xilinx Technical Support, navigate to the Xilinx Support web page.
The Vivado® Design Suite debug feature inserts logic analyzer and virtual I/O cores directly
into your design. The debug feature also allows you to set trigger conditions to capture
application and integrated block port signals in hardware. Captured signals can then be
analyzed. This feature in the Vivado Integrated Design Environment (IDE) is used for logic
debugging and validation of a design running in Xilinx devices.
The Vivado logic analyzer is used with the logic debug IP cores, including:
See the Vivado Design Suite User Guide: Programming and Debugging (UG908) [Ref 7].
Hardware Debug
• What value should be driven on mm2s_allow_addr_req and
s2mm_allow_addr_req if you do not want to use these signals?
Answer: When AXI DataMover goes through soft shutdown, it flushes internal FIFOs,
thus you will find some residual data appearing on streaming side.
Xilinx Resources
For support resources such as Answers, Documentation, Downloads, and Forums, see Xilinx
Support.
References
To search for Xilinx documentation, go to www.xilinx.com/support
Unless otherwise noted, IP references are for the product documentation page.
These documents provide supplemental material useful with this product guide:
Revision History
The following table shows the revision history for this document.