Download Xilinx UG331 Spartan-3 Generation FPGA User Guide

Transcript
R
Carry and Floorplanning
complete whole anywhere in the device. For example, an adder can be defined as requiring
adjacent slices in one column, but that stack of slices can be placed by the tools wherever it
is most efficient inside the device.
RLOC constraints can be applied to any of the carry primitives - MUXCY, XORCY, and
MULT_AND, along with flip-flops. An RLOC constraint cannot be applied directly to a
gate primitive but it can be applied to a LUT defined via the FMAP component. In
Spartan-3 generation designs, the RLOC constraint is specified using the slice-based XY
coordinate system (RLOC = X0Y0, etc.). Slices are numbered on an XY grid beginning in
the lower left corner of the chip. X ascends in value horizontally from left to right. Y
ascends in value vertically from bottom to top. A CLB actually encompasses two rows and
two columns of the coordinate system; slices S2 (X1Y0) and S3 (X1Y1) are considered
horizontally adjacent to slices S0 (X0Y0) and S1 (X0Y1) in the CLB. Each part of the
hierarchy can have its own independent set of relative constraints, and the user can even
define multiple sets per hierarchical block.
Left-Hand SLICEM
(Logic or Distributed RAM
or Shift Register)
Right-Hand SLICEL
(Logic Only)
COUT
CLB
SLICE
X1Y1
SLICE
X1Y0
COUT
Switch
Matrix
CIN
Interconnect
to Neighbors
SLICE
X0Y1
SHIFTOUT
SHIFTIN
SLICE
X0Y0
CIN
DS099-2_05_082104
Figure 9-20: Arrangement of Slices within the CLB
Carry and Floorplanning
RLOCs can be specified directly in HDL code or a schematic, defined in the Floorplanner,
or written into a constraints file. The carry-based functions can also be placed using PACE
(Pinout and Area Constraints Editor). The RPMs are always placed as a complete group in
both PACE and the Floorplanner.
Because carry-based functions are in a column with the MSB at the top, related functions
should be placed in a similar fashion. The data inputs should come from a column of CLBs,
or IOBs on the left or right edges, also with MSB at the top.
RLOC constraints allow the user to place logic blocks relative to each other to increase
speed and use die resources efficiently. When defining relative location constraints, it is
important to remember how "tall" the target device is and stay within one column.
However, if an area constraint is too tall, the carry path is automatically split to fit across
multiple columns. With two LUTs per slice, the bottom two FMAPs should be assigned
Spartan-3 Generation FPGA User Guide
UG331 (v1.5) January 21, 2009
www.xilinx.com
299