hdl coder error when compiling stateflow

조회 수: 2 (최근 30일)
Amish Rughoonundon
Amish Rughoonundon 2020년 3월 29일
댓글: Amish Rughoonundon 2020년 4월 2일
I can't figure out this error hdl coder is giving me when compiling a stateflow chart with parallel charts
Enumerated name 'IN_NO_ACTIVE_CHILD' is present in types 'state_type_is_TIMEOUT_WATCHER' and 'state_type_is_COUNT_IS_VALID'. Use unique enum type names for HDL code generation.
I attached the chart as pictures
Thanks for any help
  댓글 수: 1
Amish Rughoonundon
Amish Rughoonundon 2020년 3월 29일
It seems hdl coder adds this state IN_NO_ACTIVE_CHILD by itself for the case where the state machine moves to the OFF state as shown below from the vhdl generated.
--case IN_ON:
sf_internal_predicateoutput_0 := hdlcoder_to_stdlogic((( NOT onoff) OR hdlcoder_to_stdlogic(timeoutCycles_unsigned = to_unsigned(0, 32))) = '1');
IF sf_internal_predicateoutput_0 = '1' THEN
is_COUNT_IS_VALID_next <= IN_NO_ACTIVE_CHILD;
is_TIMEOUT_WATCHER_next <= IN_NO_ACTIVE_CHILD;
is_timer_chart1_next <= IN_OFF;
ELSE
I am totally confused by why hdl coder would complain something it did itself. To me it would have made sense to move them back to the state connected to the default transitions????

댓글을 달려면 로그인하십시오.

답변 (1개)

Kiran Kintali
Kiran Kintali 2020년 3월 31일
Can you attach a small version of the model to reproduce the error?
"Enumerated name 'IN_NO_ACTIVE_CHILD' is present in types 'state_type_is_TIMEOUT_WATCHER' and 'state_type_is_COUNT_IS_VALID'. Use unique enum type names for HDL code generation."
We can check if the recommendation is valid or further improvements possible in the workflow.
Thanks
  댓글 수: 1
Amish Rughoonundon
Amish Rughoonundon 2020년 4월 2일
I'll create a small model that reproduces the problem and post it here. Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Code Generation에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by