Console commands are entered from the Console window. You can use console commands as an alternative to menu commands. Console commands do not display the dialog and message boxes associated with the menu commands. To get command feedback, you can use the Force command. Additionally, you can also turn on the Show Command Status check box in the Console window. This chapter contains the following sections.
To automate design debugging, you can copy commands from the Console window into a macro window to build macros. See the Using Macros section of the Customizing the Interface chapter for information.
Note: Do not use console commands until you are familiar with the graphical user interface commands because console commands must be executed in a particular order.
The following is a summary of the syntax used for Console commands.
The following summarizes the console commands discussed in this chapter.
Baud | Sets the baud rate |
Cable | Sets the cable options |
Clock | Sets the clock options |
Display | Selects the signals to debug |
Download | Programs target device with the current design |
Exit | Exits the Hardware Debugger |
Force | Displays or hides the message boxes |
Group | Defines groups of signals for debugging |
Open | Loads the configuration data |
Port | Selects the communications port |
Readfpga | Reads the device states using the specified debugging settings (snapshot number, signals, and groups) |
Reset | Reinitializes the target device |
Run | Executes the macro in the current macro window |
Setmode | Selects the debugging mode, synchronous or asynchronous |
Trigger | Selects the source of the readback trigger |
Verify | Verifies the design was downloaded correctly |
Note: The Clock, Display, Group, Readfpga, and Setmode commands are not available when using the MultiLINX Cable.
Use this command to set the cable baud rate
baud rate
This command has one parameter.
rate specifies the rate at which the data is transferred between the computer and the serial or XChecker Cable and MultiLINX Cable; this parameter can be set to {9600 | 19200 | 38400 | 15200}
Note: The 115200 baud rate is valid only on HP and PC platforms. For the MultiLINX Cable replace 115200 with 57600.
Following is an example of how to specify the Baud command.
baud 38400
You can abbreviate the Baud command as follows
baud | bau |
Use this command to set the cable options and to specify the type of cable.
cable {option | name}
The variables of the Cable command are further divided into the following parameters.
Following are examples of how to specify the Cable command.
cable -pins
cable -xchecker
You can abbreviate the Cable command and its options as follows.
cable | cab |
-reset | -rs |
-check | -chk |
-pins | -pn |
The Clock command is a synchronous mode debugging option. It enables you to specify the clock options, namely the clock type and speed. It also enables you to specify the number of clocks to apply to the target device during debugging.
The syntax of the Clock command is the following.
clock {[source][speed] | apply_clocks | control_option}
The variables of the Clock command are further divided into the following parameters.
Following are examples of how to specify the Clock command.
clock -internal -speed 3
clock -apply 4
clock -stop
You can abbreviate the Clock command and its options as follows.
clock | clk |
-internal | -int |
-external | -ext |
-apply | -ap |
-stop | -st |
-resume | -res |
The Display command specifies which nets to debug.
The syntax of the Display command is the following.
display operation list_of_signals
The variables of the Display command are further divided into the following parameters.
Following are examples of how to specify the Display command.
display -add A B C D E F G ALUOUT SWITCHES
display -del *
You can abbreviate the Display command as follows.
display | dply |
Use the Download command to program a device by downloading the current design to that device.
The syntax of the Download command is the following.
download [-verify]
The Download command has one parameter.
-verify reads back the data that was downloaded to the target device and compares it to the original data.
Following is an example of how to specify the Download command.
download -verify
You can abbreviate the Download command as follows.
download | dn |
-verify | -v |
The Exit command enables you to exit the Hardware Debugger program.
The syntax of the Exit command is the following.
exit
The Exit command has no parameters.
Following is an example of how to specify the Exit command.
exit
You can abbreviate the Exit command as follows.
exit | ex |
The Force command enables you to display or hide information dialog boxes while a macro is running.
The syntax of the Force command is the following.
force setting
The parameters of the Force command are the following.
setting {-on | -off}
Following is an example of how to specify the Force command.
force -on
You can abbreviate the Force command and its options as follows.
force | for |
-on | -o |
-off | -f |
The Group command enables you to specify signal groups to debug as entities. It also allows you to delete existing groups of signals.
The syntax of the Group command is the following.
group {del_group | new_group}
The variables of the Group command can be divided into the following parameters.
Following is an example of how to specify the Group command.
group aluout ALU0 ALU1 ALU2 ALU3 ALU4
group -del aluout ALU2
You can abbreviate the Group command as follows.
group | gp |
The Open command opens a file for downloading.
The syntax of the Open command is the following.
open file
The variables of the Open command can be divided into the following parameters.
file {\file_path\file_name} or file {/file_path/file_name}
Following is an example of how to specify the Open command.
open C:\TMP\4KACALC\CALC4K.BIT
You can abbreviate the Open command as follows.
open | op |
The Port command enables you to select the communications port you need for your cable.
The syntax of the Port command is the following.
port port_name
The parameters of the Port command are the following.
port_name is
{auto} for auto-detection of cable
{com1 | com2 | com3 | com4} for XChecker or serial cables on PC platforms
{/dev/tty00 | /dev/tty01} for XChecker or serial cables on HP platforms
{/dev/ttya | /dev/ttyb} for XChecker or serial cables on Sun platforms
{lpt1 | lpt2 | lpt3 | lpt4} for parallel cable only
Following are examples of how to specify the Port command.
port com1
port lpt2
You can abbreviate the Port command as follows.
port | po |
The Readfpga command enables you to capture snapshots of the states of a device.
The syntax of the Readfpga command is the following.
readfpga snapshots
The parameters of the Readfpga command are snapshots {1-65534}
Following is an example of how to specify the Readfpga command.
readfpga 4
You can abbreviate the Readfpga command as follows.
readfpga | rea |
The Reset command enables you to reset the FPGA. The reset signal is active-Low.
The syntax of the Reset command is the following.
reset
There are no parameters for the Reset command.
Following is an example of how to specify the Reset command.
reset
You can abbreviate the Reset command as follows.
reset | res |
The Run Command executes the macro defined in the current macro window.
The syntax of the Run command is the following.
run file_name
The Run command has one parameter.
file_name is the name of the design you want to run
Following is an example of how to specify the Run command.
run calc4k.bit
You can abbreviate the Run command as follows.
run | rn |
The Setmode command enables you to set the debugging mode.
The syntax of the Setmode command is the following.
setmode debugmode
The parameters of the Setmode command are the following.
Following is an example of how to specify the Setmode command.
setmode -sync
You can abbreviate the Setmode command and its options as follows.
setmode | md |
-synch | -s |
-async | -as |
The Trigger command specifies the source of the readback trigger.
The syntax of the Trigger command is the following.
trigger {timing | clocksettings | option}
The parameters of the Trigger command are the following.
Following is an example of how to specify the Trigger command.
trigger -immediately -clock 2 2 -timeout 10-reset
You can abbreviate the Trigger command as follows.
trigger | tr |
The Verify command enables you to verify that the design was downloaded correctly.
The syntax of the Verify command is the following.
verify
The Verify command has no parameters.
Following is an example of how to specify the Verify command.
verify
You can abbreviate the Verify command as follows.
verify | ver |