function hdldialog(model)
% HDLCODERUI.HDLDIALOG(MODEL) Open the dialog for HDL code generation.
%   
%   HDLDIALOG will also install a HDL Coder panel in the
%   Configuration Parameters dialog.  
%
%   See also CHECKHDL, MAKEHDL, MAKEHDLTB, HDLSETUP.

%   Copyright 2006-2012 The MathWorks, Inc.

narginchk(1,1);

if ~hdlcoderui.isslhdlcinstalled
    warning(message('HDLShared:hdlcoderui:SLHDLCnotInstalled'));
    return;
end

attachhdlcconfig(model);
configset.showParameterGroup(model, {DAStudio.message('HDLShared:hdldialog:hdlccHDLCodername')});
