# Comment on “High Efficiency Generalized Parallel Counters for Look-Up Table Based FPGAs”

Authors: Martin Kumm; Peter Zipf
Journal: International Journal of Reconfigurable Computing
 (2016)

---

## Abstract

This brief points out some problems when mapping the optimized GPCs using the heuristic of the paper above. A thorough analysis revealed that a significant number of additional LUTs are required to route the signals when mapping the optimized designs on current FPGAs. Taking these resources into account, the optimized GPCs require at least the same resources as previous state of the art.


---

## Body

## 1. Introduction

In a recent paper from Khurshid and Mir [1], a heuristic is presented to optimize the mapping of generalized parallel counters (GPCs), as used in compressor trees, to the look-up tables (LUTs) of field programmable gate arrays (FPGAs). The authors claim in their results that the optimized GPCs provide a significant reduction in LUTs compared to previously proposed GPC mappings of our group [2, 3] and other groups [4, 5]. However, as pointed out in this brief, their optimized designs require a significant number of additional LUTs to route the signals to the used resources.


## 2. Problems When Mapping to Xilinx FPGAs

To illustrate the mapping problems, a (1,4,1,5;5) GPC is used, which was also used in [1] as a detailed example. Their optimization result for a Xilinx Virtex 5 FPGA is shown in Figure 1(a). The FPGA mapping of our GPC [2] is shown in Figure 1(b). In Figure 1(b), a simplified Slice with all relevant routing multiplexers is used. The authors in [1] claim to reduce the LUT resources from four LUTs to two LUTs. However, they did not consider the fact that the LUTs and the fast carry chain cannot be connected arbitrarily. They are organized in a Slice which provides a limited set of multiplexers for internal signal routing [6]. Hence, the only way to route all four outputs of the two LUTs in Figure 1(a) to the carry chain is by using additional LUTs. These are listed as “route-thru LUTs” in the Xilinx reports and cannot be ignored when comparing complexity as they cannot be used for any other logic. Figure 1(c) shows the best mapping to a Xilinx Virtex 5 Slice we found for the GPC of Figure 1(a). It can be seen that the leftmost and the rightmost LUTs are required to route the results of the two LUTs in the middle to the corresponding inputs of the carry chain. Even if only a fraction of these LUTs is used, they cannot implement any additional logic as either both LUT outputs or the corresponding Slice outputs are occupied, leading to an overall LUT cost of four, the same as previously reported [2].Figure 1
Mapping of (1,4,1,5;5) GPC to Xilinx Virtex 5.
(a)
GPC from [1], claimed to use two LUTs (b)
Slice mapping of previous GPC [2] using four LUTs (c)
Corrected Slice mapping of GPC from [1] requiring four LUTsLooking at the delay, the GPC delay can be broken down into the delays of LUTs, carry chain sections, and local routing, which are denoted asTL, TCC, and TR, respectively [1, 2]. The critical path of the GPC in Figure 1(c) starts at the second right LUT and runs along a local routing through the rightmost LUT and three sections of the carry chain. This leads to a delay of 2TL+TR+4TCC. Assuming TL≈TR≪TCC [2], this is about three times slower than the delay of the GPC in [2] which is TL+4TCC. Table 1 lists the results of [1], the corrected results when considering the routing restrictions as well as the best design from the literature. The results of GPCs (3;2), (6;3), and (5,3;4) are not listed as they were correct in [1] but did not show any improvement compared to previous designs. For GPGs (7;3), (5,0,6;5), and (2,0,4,5;5), no mapping for Xilinx FPGAs was provided in [1], so they could not be reproduced. It can be concluded for the Xilinx designs that none of the proposed GPCs could be improved in terms of resources but most of them require a larger delay than previous GPCs.Table 1
Corrected mapping results of GPCs in [1] when using Xilinx Virtex 5 FPGAs (corrected values are marked in bold).
GPC Results claimed in [1] Corrected results Ref. Best design from the literature LUTs Delay Efficiency LUTs Delay Efficiency LUTs Delay Efficiency (1,5;3) 1 T L + 2 T C C 3 2 T L + 2 T C C 1.5 [2] 2 T L + 2 T C C 1.5 (2,3;3) 1 T L + 2 T C C 2 2 T L + 2 T C C 1 [2] 2 T L + 2 T C C 1 (1,6;4) 3 2 T L + T R + 3 T C C 1 4 3 T L + 2 T R + 3 T C C 0.75 [4] 4 2 T L + T R + 4 T C C 0.75 (3,5;4) 2 2 T L + T R + 3 T C C 1 4 3 T L + 2 T R + 3 T C C 1 [4] 4 2 T L + T R + 4 T C C 1 (4,4;4) 3 2 T L + T R + 3 T C C 1.33 4 2 T L + T R + 3 T C C 1 [4] 4 2 T L + T R + 4 T C C 1 (6,2;4) 2 2 T L + T R + 3 T C C 2 4 3 T L + 2 T R + 3 T C C 1 [2] 3 2 T L + T R + 3 T C C 1.33 (1,4,1,5;5) 2 T L + 4 T C C 4 4 2 T L + T R + 4 T C C 1.5 [2] 4 T L + 4 T C C 1.5 (1,4,0,6;5) 4 T L + 4 T C C 1.5 5 2 T L + T R + 2 T C C 1.2 [2] 4 T L + 4 T C C 1.5


## 3. Problems When Mapping to Altera FPGAs

Similar issues occur for the proposed Altera mappings. First, unlike Xilinx Virtex 5 FPGAs, the carry inputs of Altera’s adaptive logic module (ALM) used in Stratix IV cannot be fed from the global routing. The carry chain can only start from the first or fifth ALM of a logic array block (LAB) [7]. Figure 2 shows the solution of the (1,4,1,5;5) GPC as provided in [1]. It is claimed that two LUTs are sufficient to realize the GPC. Note that a LUT in [1] refers to a two-output function or half of an ALM. Hence, to route inputs a0 and a1 to the inputs of the first full adder (FA), two additional LUTs are required. Next, the signals b0 and c0 are directly connected with an FA. Again, this can only be realized by routing through a LUT or by bypassing the LUT which makes the output of the LUT inaccessible. Finally, the carry output from an FA also cannot be routed to the output (unlike Xilinx Virtex 5 FPGAs). Thus, an addition with zero is necessary to access the carry output. Figure 3 shows the best mapping to Stratix IV Altera ALMs we found. It can be seen that three ALMs are required to implement the GPC which corresponds to six LUTs. The same problems occur for the other GPC mappings provided in [1]. As there were no previous results reported for Altera FPGAs, a detailed evaluation of Altera GPCs is omitted.Figure 2
Mapping of (1,4,1,5;5) GPC to Altera Stratix IV from [1], claimed to use two LUTs.Figure 3
Correct mapping of a (1,4,1,5;5) GPC to Altera Stratix IV requiring six LUTs.



---

*Source: 3015403-2016-09-14.xml*