When I attempt to run the automatically generated testbench in ModelSim, errors are reported regarding the ".dat" files used during simulation.
Why does this occur?
This can occur if the model you generated the HDL testbench from was in a different directory than your "current directory" in MATLAB when the HDL Netlist and testbench were generated, and a relative path was used (i.e., ./netlist).
To resolve the problem, open MATLAB to the directory containing the model and regenerate the model without changing to another directory first. Or, change the output directory to a hardcoded path (i.e., C:/my_netlist).
This issue is resolved in System Generator for DSP 11.2.