Write Memory

Writes to memory available on the FPGA target.

If you implement the memory item using block memory or look-up tables, you can read data only from the clock domain in which the memory is written. In these implementations, optimize your code by using only one writer node and one reader node for each memory item. To read and write in a separate clock domain, use FIFOs or registers.

1378

Inputs/Outputs

datatype_icon

reference in

Reference to the memory item.

datatype_icon

address

Location to write data in memory on the FPGA target.

The valid address range depends on the requested number of elements you specify when creating the input memory item. For example, if you specify a requested number of elements of 65536, the valid address range is 0–65535. If address exceeds the address range, this node returns an error.

datatype_icon

data

Data to write to the memory on the FPGA target.

If the input memory item was configured as read-only, this node does not write the data to the memory.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Default value: No error

datatype_icon

reference out

Reference to the memory item.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Programming Patterns

Transferring Data Using a Memory Item