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

R

Resource Sharing HDL Coding Techniques

input [7:0] DI; output [7:0] DO;

assign DO = DI / 2;

endmodule

Resource Sharing HDL Coding Techniques

This section discusses Resource Sharing HDL Coding Techniques, and includes:

“About Resource Sharing”

“Resource Sharing Log File”

“Resource Sharing Related Constraints”

“Resource Sharing Coding Examples”

About Resource Sharing

The goal of resource sharing (also known as folding) is to minimize the number of operators and the subsequent logic in the synthesized design. This optimization is based on the principle that two similar arithmetic resources may be implemented as one single arithmetic operator if they are never used at the same time. XST performs both resource sharing and, if required, reduces the number of multiplexers.

XST supports resource sharing for adders, subtractors, adders/subtractors and multipliers.

If the optimization goal is SPEED, disabling resource sharing may give better results. To improve clock frequency, XST recommends deactivating resource sharing at the Advanced HDL Synthesis step.

Resource Sharing Log File

The XST log file reports the type and size of recognized arithmetic blocks and multiplexers during the Macro Recognition step.

...

Synthesizing Unit <addsub>.

Related source file is resource_sharing_1.vhd. Found 8-bit addsub for signal <res>.

Found 8 1-bit 2-to-1 multiplexers. Summary:

inferred 1 Adder/Subtracter(s). inferred 8 Multiplexer(s).

Unit <addsub> synthesized.

==============================

HDL Synthesis Report

 

Macro Statistics

 

# Multiplexers

: 1

2-to-1 multiplexer

: 1

# Adders/Subtractors

: 1

8-bit addsub

: 1

==============================

 

XST User Guide

www.xilinx.com

157

10.1

Chapter 2: XST HDL Coding Techniques

R

...

===================================================================

* Advanced HDL Synthesis *

===================================================================

INFO:Xst - HDL ADVISOR - Resource sharing has identified that some arithmetic operations in this design can share the same physical resources for reduced device utilization. For improved clock frequency you may try to disable resource sharing.

...

Resource Sharing Related Constraints

“Resource Sharing (RESOURCE_SHARING)”

Resource Sharing Coding Examples

The coding examples in this section are accurate as of the date of publication. Download updates from ftp://ftp.xilinx.com/pub/documentation/misc/examples_v9.zip.

“Resource Sharing”

Resource Sharing

This section discusses Resource Sharing, and includes:

“Resource Sharing Diagram”

“Resource Sharing Pin Descriptions”

“Resource Sharing VHDL Coding Example”

“Resource Sharing Verilog Coding Example”

For the following VHDL and Verilog examples, XST gives the following solution.

B

 

 

 

 

 

 

 

 

 

 

RES

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

C

 

 

 

+/-

 

 

 

 

 

 

 

 

A

 

 

 

 

 

 

 

 

 

 

 

 

OPER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPER

 

X8984

 

 

 

 

 

 

 

 

 

 

 

Figure 2-52: Resource Sharing Diagram

Table 2-64: Resource Sharing Pin Descriptions

 

 

 

 

 

 

 

 

 

 

 

 

 

 

IO Pins

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A, B, C

Operands

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPER

Operation Selector

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RES

Data Output

 

 

 

 

 

 

 

 

 

 

 

 

 

 

158

www.xilinx.com

XST User Guide

 

 

10.1

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