Hello Community, I created a Simulink Model for translation with HDL Coder. For optimization reasons I activated sharing (in 2 Subystems) and streaming (in 1 Subsystem). The content of these subsystems is in general reduced to the blocks to optimize.
Sharing and streaming is successfull. But Path Balancing fails during generating HDL Code with the following Error:
Error using hdlcoder.pir/balancePathDelays Assertion failed: .\pir_transforms\PathBalancer.cpp:763:m_relativeLcm > 0 Error in C:\Programme\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@HDLCoder\makehdl.p>doAutomaticDelayBalancing (line 488) Error in C:\Programme\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\@slhdlcoder\@HDLCoder\makehdl.p>makehdl (line 120) Error in C:\Programme\MATLAB\R2011b\toolbox\hdlcoder\hdlcoder\privmakehdl.p>privmakehdl (line 18) Error in makehdl (line 82) privmakehdl(varargin{:}) Error in C:\Programme\MATLAB\R2011b\toolbox\shared\hdlshared\hdlContextMenu.p>GenerateHDLCallback (line 122)
The HDL Geneartion Report is not created. In the pictures you see the second level of the model and a subsystem wich is optimized by sharing and one which is optimized by by streaming. If i try generating HDL code Generation for these subsystems in a blank environment everything works fine.
Has anybody an idea what the cause of the problem is? Thank you. Jens
Best Answer