FPGA Editor GuideChapter 6 : Command Line Syntax
Running Commands
You can run the FPGA Editor commands many different ways, including.
- Directly from the FPGA Editor Command Line toolbar
- From a command script
- As part of a command alias or hot key
- By selecting from the pull-down menus
- By selecting a command button in the User toolbar
Command Conventions
The following are FPGA Editor Command Conventions.
- Any command line field containing more than one word or containing a semicolon must be placed in quotation marks. For example, the button command creates a new button in the User toolbar. If you want to create a button called jump in that zooms in the display one level, you must enter the command in the form button jump in zoom in. If you entered the command in the form button jump in zoom in (without quotation marks), the command would not work and you would receive an error message in the history area.
- Some commands call for nested quotation marks (that is, quotation marks within quotation marks). If a command requires nested quotation marks, the inner quotation marks must be of the same type (for example, a single quote and a single quote or a double quote and a double quote) and the outer quotation marks must match and be of a different type than the inner quotation marks.
- A comment is preceded by a pound sign (#). Text from the pound sign to the end of the line will be ignored; the system will not interpret the text as a command. Comments are especially useful in text files such as the fpga_editor.ini and fpga_editor_user.ini files or user script files to describe what the commands in the file are doing.
- A backslash (\) at the end of a command, followed by a carriage return, causes the command to continue on the next text line. For example, the text below is all interpreted as one command line, even though the text appears on two lines.
setattr layer direct_connects \
view on
Back slashes are used to allow you to place long commands on multiple lines. Back slashes are also used to make text more readable in text files.
Back slashes are also used to escape characters special to the FPGA Editor. The characters are.
* (asterisk) used for wild cards
? (question mark) used for wild cards for a single character
# (pound sign) used for comments
; (semi colon) separates multiple commands on the same command line
(double quote) used to quote characters to be taken literally
' (single quote) used to quote characters to be taken literally
\ (back slash) if at the end of a line, continues command to the next line. Otherwise it escapes characters to be taken literally.
Example 1
To select a net whose name has an embedded space in it, use one of the following methods.
select net my net
select net my\ net
The back slash precedes the space character.
Example 2
To select a component with special characters in it, enter the following.
select comp COUNT\*
To select all components that start with COUNT, enter the following.
select comp COUNT*