Error creading HDL from subsystem
2 views (last 30 days)
Show older comments
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 Comment
Kaustubha Govind
on 28 Oct 2011
Do you happen to recall what changes you made to the model? I would also recommend reporting this to MathWorks Tech Support.
Answers (1)
Kiran Kintali
on 1 Nov 2020
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.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!