Error creading HDL from subsystem

19 ビュー (過去 30 日間)
Douglas
Douglas 2011 年 10 月 28 日
回答済み: Kiran Kintali 2020 年 11 月 1 日
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 日
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.

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by