Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
xst.pdf
Скачиваний:
141
Добавлен:
11.06.2015
Размер:
5.64 Mб
Скачать

Chapter 12: XST Command Line Mode

R

Setting Up an XST Script

This section discusses Setting Up an XST Script, and includes:

“Setting Up an XST Script Using the Run Command”

“Setting Up an XST Script Using the Set Command”

“Setting Up an XST Script Using the Elaborate Command”

An XST script is a set of commands, each command having various options.

Setting Up an XST Script Using the Run Command

The run command is the main synthesis command. It allows you to run synthesis in its entirety, beginning with the parsing of the Hardware Description Language (HDL) files, and ending with the generation of the final netlist. The run keyword can be used only once per script file.

The run command begins with a keyword run, which is followed by a set of options and its values:

run option_1 value option_2 value ...

To improve the readability of your script file, place each option-value pair on a separate line:

run

option_1 value

option_2 value

...

Use the pound (#) character to comment out options, or place additional comments in the script file:

run

option_1 value

# option_2 value

option_3 value

Each option name begins with dash (–). For example: -ifn, -ifmt, -ofn.

Each option has one value. There are no options without a value.

The value for a given option can be one of the following:

Predefined by XST (for instance, yes or no)

Any string (for instance, a file name or a name of the top level entity). Options such as -vlgincdir accept several directories as values. Separate the directories by spaces, and enclose them in braces ({}):

-vlgincdir {c:\vlg1 c:\vlg2}

For more information, see “Names With Spaces in Command Line Mode.”

An integer

Table 5-1, “XST-Specific Non-Timing Options,” and Table 5-2, “XST-Specific Non-Timing Options: XST Command Line Only,” summarize XST-specific non-timing related options, including run command options and their values.

XST provides online Help from the Unix command line. The following information is available by typing help at the command line. The XST help function provides a list of

590

www.xilinx.com

XST User Guide

 

 

10.1

R

Setting Up an XST Script

supported families, available commands, options and their values for each supported device family.

To see a detailed explanation of an XST command, use the following syntax. help -arch family_name -command command_name

where:

family_name is a list of supported Xilinx® families in the current version of XST

command_name is one of the following XST commands: run, set, elaborate, time

To see a list of supported families, type help at the command line prompt with no argument. XST issues the following message.

--> help

ERROR:Xst:1356 – Help : Missing "–arch <family>". Please specify what family you want to target

available families: acr2

aspartan2e

aspartan3 fpgacore qrvirtex qrvirtex2 qvirtex qvirtex2 qvirtexe spartan2 spartan2e spartan3 spartan3a spartan3e virtex virtex2 virtex2p virtex4 virtex5 virtexe xa9500xl xbr xc9500 xc9500xl xc9500xv xpla3

To see a list of commands for a specific device, type the following at the command line prompt with no argument.

help -arch family_name.

For example:

XST User Guide

www.xilinx.com

591

10.1

Chapter 12: XST Command Line Mode

R

help -arch virtex

Use the following command to see a list of options and values for the run command for Virtex-II devices.

--> help -arch virtex2 -command run

This command gives the following output:

-mult_style

:

Multiplier Style

block / lut / auto /

pipe_lut

-bufg

: Maximum Global Buffers

*

 

 

-bufgce

: BUFGCE Extraction

YES / NO

 

 

-decoder_extract

: Decoder Extraction

YES / NO

 

 

....

 

 

-ifn : *

-ifmt : Mixed / VHDL / Verilog -ofn : *

-ofmt : NGC / NCD -p : *

-ent : * -top : *

-opt_mode : AREA / SPEED -opt_level : 1 / 2 -keep_hierarchy : YES / NO -vlgincdir : * -verilog2001 : YES / NO

-vlgcase : Full / Parallel / Full-Parallel

....

Setting Up an XST Script Using the Set Command

XST recognizes the Set command. The Set command accepts the options shown in

Table 12-1, “Set Command Options.” For more information about these options, see “XST Design Constraints.”

Table 12-1: Set Command Options

Set Command Options

Description

Values

 

 

 

-tmpdir

Location of all temporary

Any valid path to a

 

files generated by XST

directory

 

during a session

 

 

 

 

–xsthdpdir

Work Directory — location

Any valid path to a

 

of all files resulting from

directory

 

VHDL or Verilog

 

 

compilation

 

 

 

 

–xsthdpini

HDL Library Mapping File

file_name

 

(.INI File)

 

 

 

 

592

www.xilinx.com

XST User Guide

 

 

10.1

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]