TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

ASIC Equivalent Gates for Xilinx Virtex FPGAs

The Editor's Desk
by
0
Share Facebook X LinkedIn WhatsApp Email

How big is an FPGA in "ASIC gates"? For the original Xilinx Virtex family, a widely used rule of thumb gives each FPGA resource an equivalent count of two-input NAND gates. The table below lists those equivalents, and with them you can estimate the ASIC gate capacity of any Virtex device in a few lines of arithmetic.

What an "equivalent gate" means

ASIC designers measure logic size in gate equivalents: the area of a design divided by the area of one two-input NAND gate in the same library. A 100,000-gate block is a block that takes as much silicon as 100,000 NAND2 cells, whatever mix of flip-flops, multiplexers and adders it actually contains.

An FPGA has no NAND gates in that sense. It has look-up tables (LUTs), flip-flops, carry chains, small RAMs and dedicated blocks. To compare an FPGA with an ASIC, or to ask whether an ASIC netlist will fit a given FPGA for prototyping, you translate each FPGA resource into the number of NAND2 gates it could replace. That is all the table below does.

Gate equivalents for Virtex resources

Virtex resourceEquivalent ASIC gates
4-input LUT6
4-input ROM32
3-input LUTna
16x1 RAM64
32x1 RAM128
16 Shift Reg LUT64
CLB flop8
CLB latch5
IOB flop8
IOB latch5
IOB Sync latchna
TBUF3
Block RAM16,384
BSCAN48
Clk DLL7,000
F5 MUX3
F6 MUX3
MUXCY3
XORCY3

"na" means no equivalent is given because the resource is not available as such in Virtex; for example, Virtex function generators are 4-input LUTs, so there is no separate 3-input LUT to count.

The quick estimate

If you do some quick math, one can calculate the typical ASIC gates for a Virtex 1000, which has a 64x96 CLB array:

( 64*96 CLB )* ( 2 Slices/CLB )* ( 20 Gates/Slice ) = 245,760 Gates.

That figure covers the CLB logic only. It leaves out the block RAMs, the clock DLLs and the I/O, which the table also prices.

Why the answer is only an estimate

  • Utilization. Real designs rarely use every LUT and every flip-flop in every slice, because routing, timing and placement get harder as the device fills. A per-slice figure must therefore assume some average fill.
  • Function complexity. A 4-input LUT can hold anything from a single inverter to a 4-input XOR. Six gates is an average; a dense arithmetic design packs more real logic per LUT than a control-heavy one.
  • Memory dominates. RAM is very expensive in gate terms. One Virtex block RAM is worth 16,384 gates in the table, so a device's total "gates" swings widely depending on whether you count its memories.
  • Vendor marketing figures differ. Xilinx quoted "system gates" that include memory and dedicated logic, so its numbers are far higher than the logic-only estimate above.

When you would use this

The two common uses are FPGA prototyping of an ASIC (will this netlist fit, and how many FPGAs will the prototype board need?) and FPGA-to-ASIC conversion (roughly how big will the hard-wired version be?). In both cases, an estimate from the table is a starting point. The real answer comes from running synthesis and place and route on the actual design.

Deep dive: the numbers and details

This part holds the device data, the arithmetic and a worked comparison. Skip it if the overview is all you need.

What a Virtex CLB contains

According to the Virtex 2.5 V FPGA data sheet (DS003, v1.7, October 1999), the basic building block is the logic cell (LC): a 4-input function generator (the LUT), carry logic and a storage element. Each CLB contains four LCs organized in two similar slices, plus extra logic (the F5 and F6 multiplexers) that combines function generators into 5- or 6-input functions. For that reason Xilinx counted each CLB as 4.5 logic cells when estimating system gates. The same data sheet describes each Block SelectRAM as a fully synchronous, dual-ported 4,096-bit RAM, and the device was built in a 0.22 µm, 5-layer-metal CMOS process.

XCV1000 by the data sheet

ItemXCV1000 (DS003 Table 1)
CLB array64 x 96 = 6,144 CLBs
Slices12,288 (2 per CLB)
Logic cells27,648 (6,144 x 4.5)
System gates (Xilinx figure)1,124,022
Block RAM bits131,072 (32 blocks of 4,096 bits)
Maximum SelectRAM+ bits393,216
Maximum user I/O512

Working the estimate both ways

Per-slice upper bound from the table. A slice holds two 4-input LUTs and two flip-flops. Fully used as logic, that is 2 x 6 + 2 x 8 = 28 gates. Adding one carry multiplexer and one carry XOR per LUT (2 x 3 + 2 x 3 = 12) gives 40 gates for a slice used as an arithmetic stage. The original estimate of 20 gates per slice is lower than either figure; the post does not say how 20 was chosen, but it behaves like an allowance for slices that are only partly filled.

CLB logic at three fill assumptions for the XCV1000 (12,288 slices):

Gates per sliceCLB logic gates
20 (the original estimate)245,760
28 (LUTs and flops fully used)344,064
40 (full arithmetic use)491,520

Adding the memories. Using the table's 16,384 gates per block RAM, the 32 block RAMs of an XCV1000 add 32 x 16,384 = 524,288 gates. That is 16,384 / 4,096 = 4 gates per bit. If every LUT were used as 16x1 RAM instead of logic, 24,576 LUTs x 64 = 1,572,864 gates, which shows why counting distributed RAM inflates totals so quickly.

Logic plus block RAM: 245,760 + 524,288 = 770,048 gates, still below Xilinx's 1,124,022 system gates, which also credit part of the LUTs as RAM and the dedicated clock and I/O logic. The gap is not an error in either figure. They answer different questions: "how much random logic fits?" versus "how much of everything does the chip contain?"

A worked prototyping check

Suppose an ASIC block synthesizes to 180,000 NAND2-equivalent gates of logic plus 64 Kbit of on-chip RAM. Using the original 20 gates per slice, the logic needs 180,000 / 20 = 9,000 slices, about 73 percent of an XCV1000's 12,288. The RAM needs 65,536 / 4,096 = 16 block RAMs, half of the 32 available. That fits on paper with some room for routing. A design at 95 percent of slices would be a warning sign, because placement and timing get hard long before the last slice is used.

Common mistakes

  • Comparing a logic-only ASIC count with a vendor "system gates" figure. The vendor number includes memory and makes the FPGA look several times bigger than it is for random logic: 1,124,022 system gates against 245,760 logic gates for the XCV1000.
  • Counting flip-flops as one gate. A flip-flop is about 8 NAND2 equivalents in this table. A register-heavy design uses up an FPGA's flops faster than its LUTs.
  • Using the table for other families. These equivalents are for Virtex-era 4-input LUT slices. Later families use 6-input LUTs and different slice contents, so the numbers do not carry over.

Interview angle

A common question is "How many ASIC gates is this FPGA?" A strong answer gives a range rather than one number, separates logic from memory, states the assumed utilization, and explains that the only reliable test is to synthesize the design for the target device.

Further reading

The Editor's Desk
About the Author
The Editor's Desk
Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!