Export schematic
Syntax
write_schematic [‑force] [‑format <arg>] [‑orientation <arg>]
[‑scope <arg>] [‑name <arg>] [‑quiet] [‑verbose] <file>
Returns
name of the output file
Usage
Name | Description |
---|---|
[-force]
|
Overwrite existing file |
[-format]
|
Values: native or pdf. read_schematic can be used to view native format. Default: native |
[-orientation]
|
Values: landscape or portrait |
[-scope]
|
Values: current_page, visible or all Default: current_page |
[-name]
|
Schematic window title |
[-quiet]
|
Ignore command errors |
[-verbose]
|
Suspend message limits during command execution |
<file>
|
Output file |
Categories
Description
Output the currently opened, or specified Schematic window in the Vivado IDE to a file.
The file can be written as a native ASCII file that can be read back into the Vivado IDE using the read_schematic command, or can be written as a PDF or SVG file for use outside of the Vivado Design Suite. This can be useful when documenting IP cores from the IP packager flow, or from the Vivado IP integrator.
Arguments
-force
- (Optional) Overwrite the specified Schematic file if it already exists.
-format [ native | pdf | svg ]
- (Optional) Write the output file in the specified format. The default file format is native
to the Vivado Design Suite, that can be read back into the tool using the read_schematic
command. SVG
is scalable vector graphics format. PDF
is portable document format.
-format
argument is case sensitive.
-orientation [ landscape | portrait ]
- (Optional) Write the schematic in a vertical (portrait) or horizontal (landscape) orientation. The default is portrait
.
-scope [ current_page | visible | all ]
- (Optional) Write the current page of the schematic, or the visible content displayed in the schematic window, or all of the schematic. The default is current_page
.
-name
<arg> - (Optional) Specifies the name of the open Schematic window to write. Use this option to write the specified schematic window when more than one schematic window is opened.
-name
is not specified.-quiet
- (Optional) Execute the command quietly, returning no messages from the command. The command also returns TCL_OK regardless of any errors encountered during execution.
-verbose
- (Optional) Temporarily override any message limits and return all messages from this command.
set_msg_config
command.<file> - (Required) The path and filename of the Schematic file to write. The path is optional, but if one is not provided the Schematic file will be written to the current working directory, or the directory from which the Vivado tool was launched.
Example
write_schematic -name Schematic C:/Data/mySchematic.txt -force
write_schematic -format pdf -name "Schematic (2)" C:/Data/mySchematic.pdf \
-orientation landscape