www.gusucode.com > hdlcoder 案例代码 matlab源码程序 > hdlcoder/DisplayHDLRelatedNondefaultModelParametersExample.m

    %% Display HDL-Related Nondefault Model Parameters  

%% 
% Open the model. 
sfir_fixed  

%% 
% Set HDL-related model parameters for the |symmetric_fir| subsystem. 
hdlset_param('sfir_fixed/symmetric_fir', 'SharingFactor', 3)
hdlset_param('sfir_fixed/symmetric_fir', 'InputPipeline', 5)  

%% 
% Display HDL-related nondefault model parameters for the |symmetric_fir|
% subsystem. 
hdlsaveparams('sfir_fixed/symmetric_fir') 

%%
% The output identifies the subsystem and displays its HDL-related parameter
% values.