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

Chapter 5: XST Design Constraints

R

Setting Global Constraints and Options

This section discusses Setting Global Constraints and Options, and includes:

“Setting Synthesis Options”

“Setting HDL Options”

“Setting Xilinx-Specific Options”

“Setting Other XST Command Line Options”

“Custom Compile File List”

This section explains how to set global constraints and options in Project Navigator > Process Properties.

For a description of each constraint that applies generally — that is, to FPGA devices,

CPLD devices, VHDL, and Verilog — see the Xilinx® Constraints Guide.

Except for Value fields with check boxes, there is a pull-down arrow or browse button in each Value field. The arrow is not visible until you click in the Value field.

Setting Synthesis Options

To set Hardware Description Language (HDL) synthesis options from Project Navigator:

1.Select a source file from the Source file window.

2.Right-click Synthesize - XST in the Process window.

3.Select Properties.

4.Select Synthesis Options.

5.Depending on the device type you have selected (FPGA or CPLD devices), one of two dialog boxes opens.

6.Select any of the following synthesis options:

“Optimization Goal (OPT_MODE)”

“Optimization Effort (OPT_LEVEL)”

“Use Synthesis Constraints File (–iuc)”

“Synthesis Constraint File (–uc)”

“Library Search Order (–lso)”

“Global Optimization Goal (–glob_opt)”

“Generate RTL Schematic (–rtlview)”

“Write Timing Constraints (–write_timing_constraints)”

“Verilog 2001 (–verilog2001)”

To view the following options, select Edit > Preferences > Processes >

Property Display Level > Advanced:

“Keep Hierarchy (KEEP_HIERARCHY)”

“Cores Search Directories (–sd)”

“Cross Clock Analysis (–cross_clock_analysis)”

“Hierarchy Separator (–hierarchy_separator)”

“Bus Delimiter (–bus_delimiter)”

“Case (–case)”

310

www.xilinx.com

XST User Guide

 

 

10.1

R

Setting Global Constraints and Options

“Work Directory (–xsthdpdir)”

“HDL Library Mapping File (–xsthdpini)”

“Verilog Include Directories (–vlgincdir)”

“Slice (LUT-FF Pairs) Utilization Ratio (SLICE_UTILIZATION_RATIO)”

“Custom Compile File List”

“Setting Other XST Command Line Options”

Setting HDL Options

This section discusses Hardware Description Language (HDL) Options, and includes:

“Setting HDL Options for FPGA Devices”

“Setting HDL Options for CPLD Devices”

Setting HDL Options for FPGA Devices

To set Hardware Description Language (HDL) options for FPGA devices, select Project Navigator > Process Properties > Synthesize - XST > HDL Options.

The following HDL Options can be set for FPGA devices:

“FSM Encoding Algorithm (FSM_ENCODING)”

“Safe Implementation (SAFE_IMPLEMENTATION)”

“Case Implementation Style (–vlgcase)”

“FSM Style (FSM_STYLE)”*

To view FSM Style, select Edit > Preferences > Processes > Property Display Level > Advanced.

“RAM Extraction (RAM_EXTRACT)”

“RAM Style (RAM_STYLE)”

“ROM Extraction (ROM_EXTRACT)”

“ROM Style (ROM_STYLE)”

“Mux Extraction (MUX_EXTRACT)”

“Mux Style (MUX_STYLE)”

“Decoder Extraction (DECODER_EXTRACT)”

“Priority Encoder Extraction (PRIORITY_EXTRACT)”

“Shift Register Extraction (SHREG_EXTRACT)”

“Logical Shifter Extraction (SHIFT_EXTRACT)”

“XOR Collapsing (XOR_COLLAPSE)”

“Resource Sharing (RESOURCE_SHARING)”

“Multiplier Style (MULT_STYLE)”

For later devices, Multiplier Style is renamed as follows:

Use DSP48 (Virtex™-4 devices)

Use DSP Block (Virtex-5 devices)

“Use DSP48 (USE_DSP48)”

XST User Guide

www.xilinx.com

311

10.1

Chapter 5: XST Design Constraints

R

Setting HDL Options for CPLD Devices

To set Hardware Description Language (HDL) options for CPLD devices, select Project Navigator > Process Properties > Synthesize - XST > Options.

The following HDL Options can be set for CPLD devices:

“FSM Encoding Algorithm (FSM_ENCODING)”

“Safe Implementation (SAFE_IMPLEMENTATION)”

“Case Implementation Style (–vlgcase)”

“Mux Extraction (MUX_EXTRACT)”

“Resource Sharing (RESOURCE_SHARING)”

Setting Xilinx-Specific Options

This section discusses Setting Xilinx-Specific Options, and includes:

“Setting Xilinx-Specific Options for FPGA Devices”

“Setting Xilinx-Specific Options for CPLD Devices”

Setting Xilinx-Specific Options for FPGA Devices

To set Xilinx-specific options for FPGA devices, select Project Navigator > Process Properties > Synthesis Options > Xilinx-Specific Options.

The following Xilinx-specific options can be set for FPGA devices:

“Add I/O Buffers (–iobuf)”

“LUT Combining (LC)”

“Max Fanout (MAX_FANOUT)”

“Register Duplication (REGISTER_DUPLICATION)”

“Reduce Control Sets (REDUCE_CONTROL_SETS)”

“Equivalent Register Removal (EQUIVALENT_REGISTER_REMOVAL)”

“Register Balancing (REGISTER_BALANCING)”

“Move First Stage (MOVE_FIRST_STAGE)”

“Move Last Stage (MOVE_LAST_STAGE)”

“Convert Tristates to Logic (TRISTATE2LOGIC)”

Convert Tristate to Logic appears only when working with devices with internal tristate resources.

“Use Clock Enable (USE_CLOCK_ENABLE)”

“Use Synchronous Set (USE_SYNC_SET)”

“Use Synchronous Reset (USE_SYNC_RESET)”

To display the following options, select Edit > Preferences > Processes >

Property Display Level > Advanced:

“Number of Global Clock Buffers (–bufg)”

“Number of Regional Clock Buffers (–bufr)”

312

www.xilinx.com

XST User Guide

 

 

10.1

R

Setting Global Constraints and Options

Setting Xilinx-Specific Options for CPLD Devices

To set Xilinx-specific options for CPLD devices, select Project Navigator > Process Properties > Synthesis Options > Xilinx-Specific Options.

The following Xilinx-specific options can be set for CPLD devices:

“Add I/O Buffers (–iobuf)”

“Equivalent Register Removal (EQUIVALENT_REGISTER_REMOVAL)”

“Clock Enable (–pld_ce)”

“Macro Preserve (–pld_mp)”

“XOR Preserve (–pld_xp)”

“WYSIWYG (–wysiwyg)”

Setting Other XST Command Line Options

Set other XST command line options in Project Navigator > Process Properties > Other XST Command Line Options. This is an advanced property. Use the syntax described in “XST Command Line Mode.” Separate multiple options with a space.

While Other XST Command Line Options is intended for XST options not listed in Process Properties, if an option already listed is entered, precedence is given to that option. Illegal or unrecognized options cause XST to stop processing and generate a message such as:

ERROR:Xst:1363 - Option "-verilog2002" is not available for command run.

Custom Compile File List

Use the Custom Compile File List property to change the order in which source files are processed by XST. With this property, you select a user-defined compile list file that XST uses to determine the order in which it processes libraries and design files. Otherwise, XST uses an automatically generated list.

List all design files and their libraries in the order in which they are to be compiled, from top to bottom. Type each file and library pair on its own line, with a semicolon separating the library from the file as follows:

library_name;file_name

[library_name;file_name]

...

Following is an example:

work;stopwatch.vhd

work;statmach.vhd

...

Since this property is not connected to Simulation Properties > Custom Compile File List, a different compile list file is used for synthesis than for simulation.

XST User Guide

www.xilinx.com

313

10.1

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