在 MATLAB 中使用 MATLAB 可执行 (MEX) 函数 alt_signaltap_run
从 SignalTap™ II 逻辑分析器获取数据时,SignalTap II 配置文件(.stp)会缓存,以提高重复采集性能。如果 .stp 文件被更改,则当 alt_signaltap_run
该函数被调用多次时,可能不会重新加载。这可能会阻止基于新触发规范获取数据,并产生以下错误:
Error: Can't run SignalTap II Logic Analyzer -- SignalTap II File is not compatible with the file programmed in the device
Error: Can't find the instance. Download a design with SRAM Object File containing this instance.
Error: JTAG communication error. Check hardware setup.
要解决此问题,清除高速缓存,以便在下一次调用该函数时将 .stp 文件重新加载 alt_signaltap_run
。要做到这一点,在 MATLAB 中运行以下命令:
clear alt_signaltap_run