write_xml_report (::quartus::report)

The following table displays information for the write_xml_report Tcl command:

Tcl Package and Version

Belongs to ::quartus::report 1.0

Syntax write_xml_report [-h | -help] [-long_help]
 
<filename>
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
<filename> Name of XML Report Database File to which to write
Description
Writes the current Compilation Report or Simulation Report to the specified
XML Report Database File (.xml).
Example Usage
# Load the ::quartus::flow and ::quartus::report packages
load_package flow
load_package report

# Create new project
set project_name "chiptrip"
project_new $project_name -overwrite

# Run quartus_map
execute_module -tool map

## Create XML Report Database File (.xml)
load_report
file delete -force $project_name.xml
puts [write_xml_report $project_name.xml]
unload_report

# Close project
project_close
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_OK 0 INFO: Report written to XML Report Database File: <string>. No action is required.
TCL_ERROR 1 ERROR: Can't write XML Report Database File: <string> -- report does not exist. Make sure that an existing report is loaded. Type load_report -h for more information.