function hdlblkmask_mathlib_reciprocal(curr_blk_name,latencyMode,...
    customLatencyValue,OutDataTypeStr)
%

%   Copyright 2021-2023 The MathWorks, Inc.
if(isnumerictype(OutDataTypeStr) || isa(OutDataTypeStr, 'Simulink.NumericType'))
    OutDataTypeStr = fixed.internal.type.toStringNumericType(OutDataTypeStr);
end

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,'/Reciprocal'], 'LatencyStrategy',latencyString);
hdlset_param([curr_blk_name,'/Reciprocal'], 'CustomLatency',customLatencyValue);
set_param([curr_blk_name,'/Reciprocal'], 'OutDataTypeStr',OutDataTypeStr);


end
