Source code files are opened and saved using the Editor menu options. Any files that have been opened and modified in a source editor are automatically saved when you build a simulation.
Commands to Open an existing source code file:
| • | Double-click on the filename in the Project window, |
| • | Or, choose the Editor > Open HDL file menu option, |
| • | Or, choose a file name from the recently open file list at the bottom of the Editor menu. |
|

|
Managing Editors During Single-Stepping:
| • | While stepping through the code, new editors will open in a new tab within the most recently active editor window. |
| • | To move a tab to another tabbed window or the Report window, drag and drop the tab to that window. |
| • | To open a tab in a new tabbed window, drag and drop the tab to a space outside any other tabbed window. |
|

|
| • | Use the Window menu, to quickly move between different tabbed windows. Also the Alt-W-# will bring up the window quickly. Only the active tab's file name will be visible in this list. |
| • | Also remember that double clicking in the Project window will bring up the relevant source code. |
|

|
Create a new source code file:
| • | Select the Editor > New HDL file menu option to open the editor file and type in source code. |
| • | Then right-click and choose Add to Project from the context menu to open a File Save As dialog. |
| • | Pick an name for the file and save it to the project directory (or anywhere else that you want). |
|

|
Saving files:
| • | Select the Editor > Save HDL file menu option to open a Save dialog. By default, Verilog file names have an extension of v, VHDL file names have an extension of vhd, and C++ files have an extension of cpp. |
|
Close the editor window and save the source code:
| • | Select the Editor > Close menu option. If the file has been altered, you will be prompted to save the file. |
|