Error creading HDL from subsystem

17 Ansichten (letzte 30 Tage)
Douglas
Douglas am 28 Okt. 2011
Beantwortet: Kiran Kintali am 1 Nov. 2020
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 Kommentar
Kaustubha Govind
Kaustubha Govind am 28 Okt. 2011
Do you happen to recall what changes you made to the model? I would also recommend reporting this to MathWorks Tech Support.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kiran Kintali
Kiran Kintali am 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.

Kategorien

Mehr zu Code Generation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by