function [mapName, relativePathToMapFile, found] = getBlockHelpMapNameAndPath(block_type)
%  Returns the mapName and the relative path to the maps file for this block_type

%  Internal note:
%   First column is the "System object name", corresponding to the block,
%   Second column is the anchor ID, the doc uses for the block.
%   For core blocks, the first column is the 'BlockType'.

% Copyright 2020-2021 The MathWorks, Inc.

blks = {...
    'fixed.system.ModByConstant', 'fixed_system_modbyconstant'; ...
    'fixed.system.internal.modbyconstant_hdl', 'Modulo_by_Constant_HDL_Optimized'; ...
    'fixed.system.DivideByConstantAndRound', 'fixed_system_divideByConstantAndRound'; ...
    };

relativePathToMapFile = '/fixedpoint/fixedpoint.map';

found = false;
% See whether or not the block is a DSP System Toolbox core or built-in
i = strcmp(block_type, blks(:,1));

if ~any(i)
    mapName = 'User Defined';
else
    found = true;
    mapName = blks(i,2);
end
