User`s guide

Memory Copy
Purpose Copy to and from memory section
Library Cxxx DSP Chip Support in Embedded IDE Link CC
Description In generated code, this block copies variables or data from and to
processor memory as con gured by the block parameters. Your model
can contain as many of these blocks as you require to m anipulate
memory on your processor.
Each block works with one variable, address, or set of addresses
provided to the block. Parameters for the block let you specify both
the source and destination for the memory copy, as well as o ptions for
initializing the memory locations.
Using parameters provided by the block, you can change options like
the memory stride and offset at ru n time. In addition, by selecting
various parameters i n the bloc k, y ou can write to mem ory at program
initialization, at program termination, and at every sample time. The
initialization process occurs once, rather than occurring for every read
and w rite operation.
With the custom source code options, the block enables you to add
custom ANSI C source code before and a fter each memory read and
write (copy) operation. You can use the custom code capability to lock
and unlock registers before and after accessing them. For example,
some processors have registers that you may n eed to unlock and
lock with EALLO W and EDIS macros before and after y our program
accesses them.
If your processor or bo ard supports quick direct m emory access (QDMA)
the block provides a param eter to check that implements the QDMA
copy operation, and enables you to specify a function call that can
indicate that the QDMA copy is nished. Only the C621x, C64xx, and
C671x processor families s upport QDM A copy.
Block Operations
This block performs operations at three periods during program
execution—initialization, real-time operations, and termination. W ith
the o ptions for setting memory init ialization and termination, you
9-26