Editing Source Files - 2023.1 English

Vivado Design Suite User Guide: System-Level Design Entry (UG895)

Document ID
UG895
Release Date
2023-05-16
Version
2023.1 English

The Vivado IDE provides a Text Editor in which to create or modify RTL, XDC, Tcl and other text sources. The Text Editor is context-sensitive when editing Verilog, VHDL, XDC, and Tcl files, and uses color-coding to distinguish keywords and constructs. It is a configurable, integrated text editor that supports syntax highlighting and on-the-fly checking, assistance with errors and warnings, code folding, code completion, and file comparison. See Using the Text Editor in the Vivado Design Suite User Guide: Using the Vivado IDE (UG893) for information on specific commands in the text editor.

You can open multiple files simultaneously, and click the tab for each open file to switch between files. In the tab for the open file, the Vivado IDE appends an asterisk (*) to the file name for modified files that need to be saved. To save the file, use one of the following methods:

  • Select File > Text Editor > Save File.
  • In the Vivado IDE Text Editor, select Save File from the right-click menu.
  • In the Vivado IDE Text Editor, use the Save File toolbar button.
    Note: If you attempt to close a file with unsaved changes, the Vivado IDE prompts you to save the changes.
    Tip: Use the Save As command to save the source file to a new location.