function htmlfilename = hdlcoderhelp
% HDLCODERHELP HDL Coder Toolbox example help function.
% Returns path to HTML help information file corresponding
% to the example.
%
% LIMITATIONS: The info block calling this function
%              MUST be in the root of the example model.

% Copyright 2014 The MathWorks, Inc.

modelname = get_param(gcb, 'Parent');

if strcmpi(modelname, 'hdlcoderFFTHDLOptimizedExample_Burst') || ...
        strcmpi(modelname, 'hdlcoderFFTHDLOptimizedExample_Streaming') || ...
        strcmpi(modelname, 'hdlcoderPolyphaseFilterBankHDLExample_4tap') || ...
        strcmpi(modelname, 'hdlcoderPolyphaseFilterBankHDLExample_HDLChannelizer')
    htmlfilename1 = regexprep(modelname, '_.*$', '');
else
    htmlfilename1 = modelname;
end

htmlfilename = fullfile(matlabroot, 'toolbox', 'hdlcoder', 'hdlcoderdemos', ...
    'html', [htmlfilename1 '.html']);

end % [EOF]
