issue in HDL coding tutorial on Matlab R2012a

조회 수: 1 (최근 30일)
Alberto
Alberto 2014년 4월 18일
답변: Kiran Kintali 2014년 5월 17일
Hi all,
I Just installed the HDL coder and was going through the tutorial (sfir filter function and relevant testbench). Float-to-Fixed Workflow ended smoothly but code generation ended with:
### Begin VHDL Code Generation ### Working on mlhdlc_sfir_FixPt as mlhdlc_sfir_FixPt.vhd ### Generating Resource Utilization Report resource_report.html Error occurred when running post codegeneration tasks Error: failed to run post code generation tasks: MATLAB:save:invalidVarName 'Documents\MATLAB\filter_sfir\codegen\mlhdlc_sfir\hdlsrc\codegen_info.mat' is not a valid variable name.
Any idea?
Thanks

답변 (2개)

Tim McBrayer
Tim McBrayer 2014년 4월 18일
'Documents\MATLAB\filter_sfir\codegen\mlhdlc_sfir\hdlsrc\codegen_info.mat' is a partial path. This path probably won't work unless the curfrent working direcctory of MATLAB is the one containing the referenced 'Documents' subdirectory. is that the case?
What are you specifying for your code generation directory, if any? Can you specify an absolute path?
  댓글 수: 1
Alberto
Alberto 2014년 4월 29일
편집: Alberto 2014년 4월 29일
The entire path was:
D:\data\S2100013\My Documents\MATLAB\filter_sfir\codegen\mlhdlc_sfir\hdlsrc\
I copied the directory containing the exercise into: D:\data\S2100013\matlab_prova\filter_sfir\codegen\mlhdlc_sfir\hdlsrc\
After this I could pass this step. It looks like the empty character in "My Documents" was causing the issue:
Thanks Alberto

댓글을 달려면 로그인하십시오.


Kiran Kintali
Kiran Kintali 2014년 5월 17일
This is a known issue in R2012a and has been in subsequent releases.

카테고리

Help CenterFile Exchange에서 HDL Coder에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by