Main Content

setMemoryBaseAddress

Set base address of external DDR memory

Since R2024b

Description

setMemoryBaseAddress(hub,baseAddress) sets the base address of the external DDR memory for the first data capture IP. hub is a customized data capture hub object. Specify the base address by using baseAddress to indicate where you want to store the captured data in the DDR memory.

example

setMemoryBaseAddress(hub,baseAddress,DataCaptureName=dataCaptureIPName) sets the base address of the external DDR memory for a data capture IP specified by dataCaptureIPName.

Examples

collapse all

This example uses a customized data capture hub object, hub, that connects with two data capture IPs. The first data capture IP is datacapture1 and the second data capture IP is datacapture2.

To utilize the external DDR memory for data storage, you must set Storage type to External memory while generating the data capture IPs using the FPGA Data Capture Component Generator tool.

Set the base address of the DDR memory for the datacapture1 IP.

setMemoryBaseAddress(hub,"40000000");

Set the base address of the DDR memory for the datacapture2 IP.

setMemoryBaseAddress(hub,"80000000",DataCaptureName="datacapture2");

Input Arguments

collapse all

Data capture hub object that interacts with each data capture IP, specified as a dataCaptureHub object.

Base address of the external DDR memory, specified as a character vector or string scalar. Use this value to indicate where you want to store the captured data in the DDR memory.

Name of the data capture IP, specified as a character vector or string scalar. The default value for this argument is "generatedIPName1", where generatedIPName1 is the name of the first data capture IP set by the Generated IP name parameter of the FPGA Data Capture Component Generator tool.

Version History

Introduced in R2024b