hdlset_param question
As part of an automated HDL coder script, I need to check for all Reference Models used within the design that the ‘ReferenceModelPrefix’ which is accessed as ‘HDL Block Properties’ is clear. The script sets ‘ReferenceModelPrefix’ using the following:-
hdlset_param(refModelsFullPath{i}, ‘ReferenceModelPrefix’, ”)
refModelsFullPath{i} is an array that I use to generate the absolute hierarchy path for each Reference Model in my design.
This works perfectly for a hierarchical path such as the following:-
SubSystem_Top/SubSystel_level1/RefModel_a
If I have a Reference model embedded inside RefModel_a giving me the following hierarchy:-
SubSystem_Top/SubSystel_level1/RefModel_a/RefModel_b
Then the hdlset_param command fails with an error:-
In this case ‘ mss_rx_ss’ is equivalent to my ‘RefModel_a’
I’m assuming that I can’t use an absolute path that contains multiple hierarchical levels of Model Reference, is there an equvalent command or alternative that I could use to set the ‘ReferenceModelPrefix’ parameter this way?
Many thanks in advance.As part of an automated HDL coder script, I need to check for all Reference Models used within the design that the ‘ReferenceModelPrefix’ which is accessed as ‘HDL Block Properties’ is clear. The script sets ‘ReferenceModelPrefix’ using the following:-
hdlset_param(refModelsFullPath{i}, ‘ReferenceModelPrefix’, ”)
refModelsFullPath{i} is an array that I use to generate the absolute hierarchy path for each Reference Model in my design.
This works perfectly for a hierarchical path such as the following:-
SubSystem_Top/SubSystel_level1/RefModel_a
If I have a Reference model embedded inside RefModel_a giving me the following hierarchy:-
SubSystem_Top/SubSystel_level1/RefModel_a/RefModel_b
Then the hdlset_param command fails with an error:-
In this case ‘ mss_rx_ss’ is equivalent to my ‘RefModel_a’
I’m assuming that I can’t use an absolute path that contains multiple hierarchical levels of Model Reference, is there an equvalent command or alternative that I could use to set the ‘ReferenceModelPrefix’ parameter this way?
Many thanks in advance. As part of an automated HDL coder script, I need to check for all Reference Models used within the design that the ‘ReferenceModelPrefix’ which is accessed as ‘HDL Block Properties’ is clear. The script sets ‘ReferenceModelPrefix’ using the following:-
hdlset_param(refModelsFullPath{i}, ‘ReferenceModelPrefix’, ”)
refModelsFullPath{i} is an array that I use to generate the absolute hierarchy path for each Reference Model in my design.
This works perfectly for a hierarchical path such as the following:-
SubSystem_Top/SubSystel_level1/RefModel_a
If I have a Reference model embedded inside RefModel_a giving me the following hierarchy:-
SubSystem_Top/SubSystel_level1/RefModel_a/RefModel_b
Then the hdlset_param command fails with an error:-
In this case ‘ mss_rx_ss’ is equivalent to my ‘RefModel_a’
I’m assuming that I can’t use an absolute path that contains multiple hierarchical levels of Model Reference, is there an equvalent command or alternative that I could use to set the ‘ReferenceModelPrefix’ parameter this way?
Many thanks in advance. matlab, simulink, hdl coder MATLAB Answers — New Questions