function hdlblkmask_mathlib_sin(curr_blk_name,latencyMode,...
    customLatencyValue,iterations)
%

%   Copyright 2021-2023 The MathWorks, Inc.

switch(latencyMode)
    case 1
        latencyString ='Max';
    case 2
        latencyString ='Min';         
    case 3
        latencyString ='Custom';
    case 4
        latencyString ='Zero';
    otherwise
        latencyString ='Max';
end

hdlset_param([curr_blk_name,'/Sin'], 'LatencyStrategy',latencyString);
hdlset_param([curr_blk_name,'/Sin'], 'CustomLatency',customLatencyValue);
set_param([curr_blk_name,'/Sin'],'NumberOfIterations',num2str(iterations));

end
