Running SVF and STAPL files
SVF and STAPL files can be run directly by XJRun, simply by specifying the filename on the command-line. Since SVF and STAPL files do not contain any information about the pin mapping, you may also need to add the -pinmap
switch (or one of the switches for the built-in pin mappings). For the XJDemo board, the -power
switch would also be required.
Packing SVF and STAPL files
If there is a file you want to run repeatedly or be packaged up to be run by someone else, you can pack the SVF or STAPL file in an XJPack file. You can optionally include a pin mapping file, which XJRun will then use, meaning that no pin mapping would need to be specified in order to run the file.
Example
To pack a file called FlashLEDs.svf file, and include the pin mapping file myPinMapping.xjpm run XJPack from the SVF file directory:
cd "My Project" xjpack -f FlashLEDs.svf -p FlashLEDs.xjp -a myPinMapping.xjpm
This creates an XJPack file called FlashLEDs.xjp, which can be run like so:
xjrun FlashLEDs.svf
STAPL actions
STAPL files can contain multiple actions, and so an action must be supplied on the command-line using the -action
switch so the STAPL player knows which one to run. The -l
switch can be used to list the actions that are available in a particular file.
Examples
Listing the actions in a STAPL file called FlashLEDs.stapl:
cd "My Project" xjrun -l FlashLEDs.stapl
Output:
Actions: RUN_XILINX_PROC: Run Xilinx Procedure
Running the FlashLEDs.stapl file:
cd "My Project" xjrun -action RUN_XILINX_PROC -power FlashLEDs.stapl
XJTAG v4.1.100