Optimizing Reflective Memory
- Updated2025-04-08
- 3 minute(s) read
Improve the use of your reflective memory usage by reducing the dynamic data size, creating channel mappings between targets, and using data channels selectively with non-VeriStand systems.
- Launch your project in the VeriStand Editor.
- In the Project Files pane, left-click a system definition file (.nivssdf) and select Configure in System Explorer.
-
To optimize your reflective memory performance, complete any of the following
tasks.
Goal Tasks Rationale Reduce the dynamic data size of the data sharing network to 0. - Click Data Sharing Network.
- On the Data Sharing Network configuration page, enter the Dynamic Data Size as 0.
Dynamic Data Size specifies the number of channels in reflective memory to reserve for dynamically mapping channel data at run time. Reflective memory can negatively impact performance. Reducing the number of channels to 0 avoids decreasing performance.Note This is only recommended for systems that do not execute stimulus profiles or perform data logging that references channels across multiple targets.Create channel mappings between targets in the system definition file. - Create channel mappings between targets.
- Prevent reflective memory used by VeriStand from overlapping with any
non-VeriStand traffic on the bus.
- Click Configure Mappings
.
- In the System Configuration Mappings dialog box, click the Network drop-down and select Reflective Memory Network .
- Click OK.
- Click .
- On the Reflective Memory Network Configuration page, enter a Start Memory Address and Maximum End Address Block to limit the range of addresses the systems can use.
- Click Configure Mappings
Rather than using data channels to read and write data between targets in a system definition, create channel mappings between targets. When you configure channel mappings, VeriStand uses optimized reflective memory.
When sending data from a VeriStand system to a non-VeriStand system, manually select channels to add to reflective memory and read those channels from the non-VeriStand system. - Click .
- Click Export Channels.
- In the Export Channels to Reflective Memory dialog box, select channels to export and click OK.
- Click .
- On the Reflective Memory Network Configuration page, click Export memory table to file.
VeriStand adds the channels you export to the direct memory access (DMA) block write for the target. This reduces CPU usage.
After selecting the channels to export, you must configure the non-VeriStand systems to read the memory addresses of the exported channels. The Export memory table to file option creates a text file that contains the memory addresses when you deploy the system definition file.
When a VeriStand system must read data from a non-VeriStand system, add data channels to only the targets that require the data. - Click .
- Click Add Data Channel.
Data channels allow you to specify the reflective memory addresses a VeriStand target reads. However, you should only add data channels you intend to use. VeriStand reads the memory addresses one at a time. The more addresses VeriStand reads, the slower the performance.
- Save the system definition file.
Related Information
- Adding Reflective Memory Networks
Use a reflective memory card to split up a simulation model to execute simultaneously on different target systems.
- Mapping Channels and Aliases
Connect channels or aliases to one another.