Error creading HDL from subsystem

2 visualizaciones (últimos 30 días)
Douglas
Douglas el 28 de Oct. de 2011
Respondida: Kiran Kintali el 1 de Nov. de 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 comentario
Kaustubha Govind
Kaustubha Govind el 28 de Oct. de 2011
Do you happen to recall what changes you made to the model? I would also recommend reporting this to MathWorks Tech Support.

Iniciar sesión para comentar.

Respuestas (1)

Kiran Kintali
Kiran Kintali el 1 de Nov. de 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.

Categorías

Más información sobre Code Generation en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by