%% Check Subsystem for Compatibility with HDL Code Generation  
% Check that the subsystem |symmetric_fir| is compatible with HDL code generation,
% then generate HDL.   

%% 
% Open the |sfir_fixed| model. 
sfir_fixed 

%%
% The model opens in a new Simulink(R) window.  

%% 
% Use the |checkhdl| function to check  whether the |symmetric_fir| subsystem
% is compatible with HDL code generation.
hdlset_param('sfir_fixed','TargetDirectory','C:/HDL_Checks/hdlsrc');
checkhdl('sfir_fixed/symmetric_fir')
%%
% |checkhdl| completed successfully, which means that the model is
% compatible for HDL code generation. To generate code, use |makehdl|
makehdl('sfir_fixed/symmetric_fir') 

%%
% The generated VHDL(R) code for the |symmetric_fir| subsystem is saved
% in |hdlsrc\sfir_fixed\symmetric_fir.vhd|.  

%% 
% Close the model. 
bdclose('sfir_fixed');   



%% 
% Copyright 2012 The MathWorks, Inc.