to release its lock." during hardware co-simulation with shared memory blocks?">
I am using frame-based acceleration in my hardware co-simulation model. After generating a hardware co-simulation block (which contains a lockable shared memory) and adding it to a testbench model (which contains shared memory write and read blocks), I receive the following message:
"Error reported by S-function 'xltoshmem' in 'model/Shared Memory Write': --The hardware co-simulation block timed out while waiting for the shared memory named <shmem_in> to release its lock."
Lockable shared memories for frame-based simulation acceleration can only be used in "free-running" simulation mode.
To correct this issue, open up the paremeters for your hardware co-simulation block and change the simulation mode from "single stepped" to "free running".
For more information on using shared memories in hardware co-simulation, see the section titled "Shared Memory Support" in the System Generator for DSP User Guide.
See also (Xilinx Answer 24290), for more information on using Shared Memories.