docstr: Create the xclbin for the given model and target platform.
  
  Args:
      model (ModelGraph): Compiled and build model.
      platform (str, optional): Development/Deployment target platform, must be installed first.
          The host machine only requires the deployment target platform. Refer to the Getting Started section of
          the Alveo guide. Defaults to 'xilinx_u250_xdma_201830_2'.
docstr_tok: ["Create","the","xclbin","for","the","given","model","and","target","platform",".","Args",":","model","(","ModelGraph",")",":","Compiled","and","build","model",".","platform","(","str",",","optional",")",":","Development\/Deployment","target","platform",",","must","be","installed","first",".","The","host","machine","only","requires","the","deployment","target","platform",".","Refer","to","the","Getting","Started","section","of","the","Alveo","guide",".","Defaults","to","'xilinx_u250_xdma_201830_2","'","."]
code: def make_xclbin(self, model, platform="xilinx_u250_xdma_201830_2"):
      """Create the xclbin for the given model and target platform.
  
      Args:
          model (ModelGraph): Compiled and build model.
          platform (str, optional): Development/Deployment target platform, must be installed first.
              The host machine only requires the deployment target platform. Refer to the Getting Started section of
              the Alveo guide. Defaults to 'xilinx_u250_xdma_201830_2'.
      """
      curr_dir = os.getcwd()
      abs_path_dir = os.path.abspath(model.config.get_output_dir())
      os.chdir(abs_path_dir)
      os.makedirs("xo_files", exist_ok=True)
      try:
          os.system("vivado -mode batch -source design.tcl")
      except Exception:
          print("Something went wrong, check the Vivado logs")
      project_name = model.config.get_project_name()
      ip_repo_path = (
          abs_path_dir
          + "/"
          + project_name
          + "_prj"
          + "/solution1/impl/ip"
      )
      os.makedirs("xclbin_files", exist_ok=True)
      os.chdir(abs_path_dir + "/xclbin_files")
      # TODO Add other platforms
      vitis_cmd = (
          "v++ -t hw --platform "
          + platform
          + " --link ../xo_files/"
          + project_name
          + "_kernel.xo -o'"
          + project_name
          + "_kernel.xclbin' --user_ip_repo_paths "
          + ip_repo_path
      )
      try:
          os.system(vitis_cmd)
      except Exception:
          print("Something went wrong, check the Vitis/Vivado logs")
      os.chdir(curr_dir)
  
file_path: hls4ml/hls4ml/backends/vivado_accelerator/vivado_accelerator_backend.py
imports: import os
  from hls4ml.backends import VivadoBackend
  from hls4ml.model.flow import register_flow
  from hls4ml.report import parse_vivado_report
label_desc: Use image node_id 3 for calling the VivadoAcceleratorBackend obj's underlying member method code with example usage: obj.make_xclbin(model, platform) without return types