function v = validateBlock(~, hC)
%validateBlock

% Copyright 2019-2020 The MathWorks, Inc.

% Base struct.
v = hdlvalidatestruct;

% Find out if the block uses floating-point inputs anywhere.
hasFloatingPoint = fixed.emblib.checkForFloatInputsOutputs(hC);

% If NFP is on and ports are single/double, error out.
nfpMode = targetcodegen.targetCodeGenerationUtils.isNFPMode;
if nfpMode && hasFloatingPoint
    v(1) = hdlvalidatestruct(1,...
    message('fixed:emblib:NfpNotSupported', hC.Name));
end

end
