def METHOD_NAME(self):
    """Get tool report"""
    if "target" not in self.__dict__:
        raise APIError("No attached target!")
    if "name" not in self.__dict__:
        raise APIError("No module name specified!")
    target = self.target
    if target.tool.name == "vivado_hls":
        if "csyn" not in target.tool.mode and target.tool.mode != "debug":
            raise APIError(
                "Not supported mode {target.tool.mode}. Use csyn mode to retrieve the report instead."
            )
    else:
        raise HCLNotImplementedError("target tool {target.tool.name} not supported")
    return report_stats(target, target.project)