Error creading HDL from subsystem

I changed the stateflow model of a state machine that I was previously able to generate HDL code for. I was using Matlab and Simulink 2010b the first time I generated HDL code for the state machine and I am now using 2011b. I now receive the following errors and warnings
Failure to init the model 'SPI_Controller' Error using initModel (line 33) Error due to multiple causes.
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@SimulinkFrontEnd\setupAndInitModel.p>setupAndInitModel (line 19)
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@SimulinkFrontEnd\generatePIR.p>generatePIR (line 19)
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@HDLCoder\runPirFrontEnd.p>runPirFrontEnd (line 15)
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@HDLCoder\makehdl.p>runCheckHdlAndPirFrontEnd (line 262)
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@HDLCoder\makehdl.p>makehdl (line 47)
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\privmakehdl.p>privmakehdl (line 18)
Error in makehdl (line 82) privmakehdl(varargin{:})
Error in C:\Program Files (x86)\MATLAB\R2011b\toolbox\shared\hdlshared\hdlContextMenu.p>GenerateHDLCallback (line 122)
Caused by: Error using initModel (line 33) Error using create_file_name_info (line 263) unexpected compiler Error using initModel (line 33) Cannot complete engine interface method
Any help is appreciated
Thank you
Doug

댓글 수: 1

Kaustubha Govind
Kaustubha Govind 2011년 10월 28일
Do you happen to recall what changes you made to the model? I would also recommend reporting this to MathWorks Tech Support.

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

답변 (1개)

Kiran Kintali
Kiran Kintali 2020년 11월 1일

0 개 추천

This is a model compilation issue and not HDL Code generation issue. Press ctrl-d or compile the model and make sure there are no errors before HDL code generation.

카테고리

도움말 센터File Exchange에서 Code Generation에 대해 자세히 알아보기

질문:

2011년 10월 28일

답변:

2020년 11월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by