Write memory locations on FPGA board from Simulink
HDL Verifier Support Package for Intel Boards
The AXI Master Write block communicates with the AXI master IP when it is running on an FPGA board. The block forwards write commands to the IP to access memory-mapped locations on the FPGA board.
Before using this block, you must create an AXI master IP and integrate it in your FPGA design. For more information, see Set Up MATLAB as AXI Master.
data
— Data words to write on the FPGA boardInput data to write on the FPGA board, specified as a scalar or vector. Before
sending the write request to the FPGA, the block converts the input data to
uint32
, int32
, uint64
, or
int64
. The data type conversion follows these rules.
If the input data is of type double
, the block converts the
data to type int32
or int64
depending on the
data-width of the AXI master IP.
If the input data is of type single
, the block converts the
data to type uint32
or uint64
depending on
the AXI master IP data width.
If the bit width of the input data type is less than the AXI Master data width, the data is extended to the width of the AXI Master data width.
If the bit width of the input data type is greater than the AXI master data
width, the block converts the data to type int32
,
uint32
, int64
, uint64
,
to match the data width of the AXI master IP and signedness of the original data
type.
If the input data is a fixed-point data type, the block writes the stored integer value of the data.
When you specify a large operation size, such as writing a block of double data rate (DDR) memory, the block automatically breaks the operation into multiple bursts, using the maximum supported burst size. The maximum supported burst size is 256 words.
Data Types: single
| double
| int8
| uint8
| int16
| uint16
| int32
| uint32
| fixed point
Address
— Starting address for write operation0
(default) | nonnegative integer multiple of 4 or 8 | nonnegative hexadecimal value multiple of 4 or 8Specify the starting address for the write operation as a nonnegative integer or
hexadecimal value. The block converts the address data type to
uint32
or uint64
according to the AXI master
IP address width. The address must refer to an AXI slave memory location controlled by
the AXI master IP on your FPGA board.
Memory Mapping Guidelines
If the AXI master IP address width is 32 bits, the memory is 4 bytes aligned,
and each address is a 4-byte increment (0x0
,
0x4
, 0x8
). For example the address
0x1
returns an error.
If the AXI master IP address width is 64 bits, the memory is 8 bytes aligned,
and each address is an 8-byte increment (0x0
,
0x8
, 0x10
). For example, specifying the
address 0x1
or 0x4
are both invalid and
return an error.
If the AXI master IP address width is 32 bits and the Burst
type parameter is set to Increment
, the
block increments the address by 4 bytes.
If the AXI master IP address width is 64 bits and the Burst
type parameter is set to Increment
, the
block increments the address by 8 bytes.
Do not use a 64-bit AXI master for accessing 32-bit registers.
Example: 0xa4
Burst type
— AXI4 burst typeIncrement
(default) | Fixed
In Increment
mode, the AXI master writes a vector of data to
contiguous memory spaces, starting with the specified address. In
Fixed
mode, the AXI master writes all data to the same
address.
Vector register data with strobe synchronization
— Write data to registers with strobe synchronizationoff
(default) | on
To enable writing data to a set of registers with strobe synchronization, select this parameter. Enable this parameter when your FPGA design includes strobe synchronization generated by HDL Coder™. For more information about strobe synchronization, see the "Vector Data Read/Write with Strobe Synchronization" section in IP Core User Guide (HDL Coder).
Strobe address
— Strobe address used for strobe synchronization0
(default) | nonnegative integer multiple of 4 or 8 | nonnegative hexadecimal value multiple of 4 or 8Set the absolute address for the strobe generated with HDL Coder. The absolute address is the sum of the base address and the strobe offset provided by the IP core report.
Example: If the base address is 0x41000000
and offset is
0x110
, the absolute address is
0x41000110
.
To enable this parameter, select Vector register data with strobe synchronization.
Type
— Type of interface used for communication with FPGA boardJTAG
(default) | UDP
| PCIe
Specify the interface type for communicating between the host and the FPGA.
To view these parameters, open the AXI Master Interface Configuration dialog box by clicking Configure global parameters. The visible parameters depend on the Type parameter value.
Global parameters apply to the entire Simulink® model.
Vendor
— FPGA brand nameIntel
| Xilinx
Specify the manufacturer of your FPGA board. The AXI master IP varies depending on the FPGA board type.
To enable this parameter, click Configure global parameters.
AXI data width
— Data width of AXI Master IP on FPGA32
(default) | 64
Select the data width, in bits, of the AXI master IP on the FPGA.
For PCI-Express, set this value to 32
. For JTAG or Ethernet
connections, set this value to 32
or
64
.
To enable this parameter, click Configure global parameters.
Cable type
— Type of JTAG cable used for communication with FPGA board (Xilinx® only)auto
(default) | FTDI
Specify the type of JTAG cable used for communication with the FPGA board. Use this parameter when more than one cable is connected to the host computer.
When you set this parameter to auto
(default), the block automatically
detects the JTAG cable type. The block prioritizes searching for Digilent® cables and uses this process to detect the cable type.
The AXI Master Write block searches for a Digilent cable. If the block finds:
Exactly one Digilent cable, it uses that cable for communication with the FPGA board
More than one Digilent cable – it returns an error. To resolve this error, specify the desired cable using the Cable name parameter.
No Digilent cables, it searches for an FTDI cable
If no Digilent cable is found, the AXI Master Write block searches for an FTDI cable. If the block finds:
Exactly one FTDI cable, it uses that cable for communication with the FPGA board
More than one FTDI cable, it returns an error – To resolve this error, specify the desired cable using the Cable name parameter.
No FTDI cables, it returns an error – To resolve this error, connect a Digilent or FTDI cable.
If it finds two cables of different types, it prioritizes the
Digilent cable. To use an FTDI cable, set this parameter to
FTDI
.
When you set this parameter to FTDI
, the block searches for FTDI cables.
If the object finds:
Exactly one FTDI cable, it uses that cable for communication with the FPGA board
More than one FTDI cable, it returns an error – To resolve this error, specify the desired cable using the Cable name parameter.
No FTDI cables, it returns an error – To resolve this error, connect a Digilent or FTDI cable.
For more details, see Select from Multiple JTAG Cables.
To enable this parameter, set Type to JTAG
and
Vendor to Xilinx
.
Cable name
— Name of JTAG cable used for communication with FPGA boardauto
(default) | name of connected JTAG cableSpecify this parameter if more than one JTAG cable of the same type are connected to the host computer. If more than one JTAG cable is connected to the host computer, and you do not specify this parameter, the block returns an error. The error message contains the names of the available JTAG cables. For more details, see Select from Multiple JTAG Cables.
To enable this parameter, set Type to
JTAG
.
Clock frequency in MHz
— JTAG clock frequency15
(default) | positive scalarSpecify the JTAG clock frequency in MHz. The JTAG frequency depends on the type of cable and the maximum clock frequency supported by the FPGA board. Check the board documentation for the supported frequency range.
To enable this parameter, set Type to
JTAG
.
Chain position
— Position of FPGA in JTAG chain (Xilinx only)auto
(default) | nonnegative integerSpecify this parameter value as a nonnegative integer if more than one FPGA or
Zynq® device is on the JTAG chain. Otherwise, select
auto
(default) for automatic detection of chain
position.
To enable this parameter, set Type to
JTAG
and Vendor to
Xilinx
.
Instruction registers before FPGA
— Sum of instruction register lengths for all devices before target FPGA (Xilinx only)0
(default) | nonnegative integerSpecify this parameter value as a nonnegative integer if more than one FPGA or Zynq device is on the JTAG chain.
To enable this parameter, set Type to
JTAG
and Vendor to
Xilinx
.
Instruction registers after FPGA
— Sum of instruction register length for all devices after target FPGA (Xilinx only)0
(default) | nonnegative integerSpecify this parameter value as a nonnegative integer if more than one FPGA or Zynq device is on the JTAG chain.
To enable this parameter, set Type to
JTAG
and Vendor to
Xilinx
.
Device address
— IP address of FPGA board192.168.0.2
(default) | IP addressSpecify the IP address of the Ethernet port on the FPGA board.
Example: 192.168.0.10
To enable this parameter, set Type to
UDP
.
Port
— User datagram protocol (UDP) port number of FPGA board50101
(default) | integer from 255 to 65,535Specify the UDP port number of the target FPGA as an integer from 255 to 65,535.
To enable this parameter, set Type to
UDP
.
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
Select web siteYou can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.