Efficient method for mapping a logic design on field programmable gate arrays

Information

  • Patent Application
  • 20060190906
  • Publication Number
    20060190906
  • Date Filed
    December 27, 2005
    20 years ago
  • Date Published
    August 24, 2006
    19 years ago
Abstract
An efficient method for mapping a logic design on Field Programmable Gate Arrays involves a determination of the minimum required square grid of FPGA logic blocks for mapping the design, providing a compensation factor on the minimum square grids, selecting the maximum value among the compensated square grids for reducing the mapping time; and implementing a legalization adjustment to ensure mapping of said compensated design.
Description
RELATED APPLICATION

The present application claims priority of India Patent Application No 2595/Del/2004 filed Dec. 29, 2004, which is incorporated herein in its entirety by this reference.


FIELD OF THE INVENTION

The present invention relates to an efficient method for mapping a logic design on Field Programmable Gate Arrays.


BACKGROUND OF THE INVENTION

Field Programmable Gate Arrays (FPGAs) are configurable logic devices, which are used to implement varied logic functions. The basic FPGA consists of Look Up Tables (LUTs) and routing paths but a complex one includes dedicated RAM, logic/I/O blocks and other macros like adders, multipliers etc. These FPGAs can be configured to produce a desired output by interconnecting said blocks through routing paths. This process of implementing logic of a design on a FPGA by interconnecting configurable logic devices is known as FPGA mapping. Since being first introduced by XILINX in 1985, the FPGAs have become increasingly popular devices for use in electronics systems. The use of FPGAs continues to grow exponentially because they offer relatively short design cycles, with huge reduction in costs through logic consolidation, and flexibility in terms of configurability.


Several FPGA placement systems have been developed to optimally implement the desired designs on a FPGA. The systems try to map the desired designs onto a grid of configurable logic blocks on a FPGA device of particular size. The net-list for the design, and the Input/Output pad (I/O pad) information of the chip are given as the inputs to the placement system and the system outputs the coordinates for each mapped logic element on a FPGA and interconnection information for logic elements. Over the last few decades, the FPGA placement problem has been solved by various techniques like analytic, partition based and Simulated Annealing. Two parameters of design cycle i.e., delay time and required Silicon area are optimized to get the best possible results. These systems also consider the mapping time and routability of the placed design while mapping the design on a FPGA.


Out of all techniques mentioned here, most FPGA placement systems are based on a variant of Simulated Annealing (SA) as SA usually results in most optimal solution in terms of silicon area and delay time. SA is a Monte Carlo approach for minimizing multivariate functions. The parameter involved in the case of placement is the cost of the placement in terms of wire length or some other factor. The temperature T is a parameter that controls the likelihood of accepting moves that makes the placement worse.


Initially T is very high so almost all moves are accepted. It is then gradually decreased, as the placement is refined so that eventually the probability of accepting moves that makes the placement worse is very low. To apply SA, the system is initialised with a particular random placement. A new placement is constructed by random displacement of the configurable logic devices. If the cost of this new state is lower than that of the previous one, the change is accepted unconditionally and the placement is updated. If the energy is greater, the new placement is accepted probabilistically. This is the Metropolis step, the fundamental procedure of SA. This procedure allows the system to move consistently towards lower cost, yet still ‘jump’ out of local minima due to the probabilistic acceptance of some upward moves.


While various FPGA configurations are currently used, the FPGA devices mentioned herein represent a square grid of configurable elements on a FPGA. For example, a FPGA with device size 17 represents a FPGA having a square grid of configurable logic blocks with 17 rows and 17 columns and routing paths in between. The square arrangement helps in ensuring minimization of wire length in a design and thus reducing the placement cost.


There are two inherent problems with these SA based placement systems. Firstly, when the design size is almost equivalent to the FPGA device size, the present day systems are unable to produce an optimal FPGA placement for large designs within a reasonable amount of time. This is because there is a limited free space available for movement of logic blocks and as a result, the system performs significant amount of switching of logic blocks to find an optimal placement. The other problem is the availability of excess free space for movement of logic blocks when the design size is much smaller than the device size. The larger the device size the more number of moves SA will make and as a result, the system would take more time to find optimal placement. This is observed in FIG. 1 and FIG. 2.


The graph of FIG. 1 gives a very clear idea about the behavior of SA. XorMux8 requires a minimum of device size 17[15×15 for Logic blocks and I/O's on periphery]. The placement cost of SA is low in the region between 25 and 38. For very high device size, when the logic blocks have excess space to move, the SA produces very bad results. Moreover the deviation in the results, or in other words the randomness of SA is also increased for higher device size. The graph has been computed taking an average of mapping cost of five runs for each value of device size. If a design were to run only once for each device size, the deviation would even be larger.


The extra silicon area given to the logic blocks is to allow the SA to have more “moves” in which only a single cell is involved (i.e. no swapping) during the initial phase. This will facilitate SA to have a better intermediate solution compare to one with inappropriate silicon area.


The larger the device size the more number of moves SA will make. For more number of moves SA would take more time. But it is found that SA takes more time for less number of moves and produce a sub-optimal solution when it has very little free silicon area to move i.e. when the design size is almost equal to the device size. This is illustrated in FIG. 2.


As seen in the graph of FIG. 2, the placement time decreases till the device size is around 24 and then increases again. When the device size is near 17 [minimum size for XorMux8] the logic blocks are very tightly packed and hence the each move of SA actually involves two logic blocks (i.e. swapping). As shown in FIG. 3 and FIG. 4 below, almost all moves in FIG. 3 will involve two or more logic blocks where as moves in FIG. 4 will mostly involve one logic block.


Ideally the system should produce an optimal FPGA mapping, but the mapping time for a design adversely affects the system output. As the time passes, the parameter T decreases for SA based systems and as result, the probability of accepting a worse placement also decreases. For big designs the system may accept a sub-optimal placement, as eventually the system may not be able to accept a worse output in the proximity. Hence, eventually the system accepts a sub-optimal placement as an output if better placement is not found in the proximity. The system placement results are illustrated in terms of placement cost and placement time for various device sizes in FIGS. 1 & 2 respectively. As observed, both parameters initially decrease as the FPGA device size increases. However, the parameters start to increase, as the device size gets significantly bigger than the design size. Moreover, the deviation in the results, or in other words the randomness of the output is also increased for higher device size.


The miniaturization of semiconductor technology and increase in the number of logic elements in the present day designs has made the present FPGA mapping systems very slow and unreliable for producing feasible FPGA implementation. All existing techniques produce far from the optimal solution. The present day systems are very slow in providing optimal mapping and hence, are very undesirable for FPGA implementation of designs with large number of logic elements. To truly exploit FPGAs for rapid turn-around development and prototyping, placing of processing elements in proper locations of the device plays an important role in determining the delay and the silicon requirement for FPGA implementation of a design.


Hence, there is a need for systems that minimize the chip area and delay time for a design, and at the same time reduce the mapping time. The present invention relates to efficient FPGA placement system for designs with large number of logic elements using SA based approach. The present invention provides a placement system for efficient FPGA implementation of big designs. The Required Silicon area is dominated either by the I/O's, Logic Blocks or Macro Height.


SUMMARY OF THE INVENTION

To obviate the drawbacks of the prior art an object of the instant invention is to provide a system that results in reduced silicon area for designs with large number of logic elements. A further object of the invention is to reduce the timing delay for the mapped design on FPGA. Another object of the invention is to reduce the time taken for mapping the above mentioned designs on a FPGA.


To achieve the above objects the instant invention provides an efficient method for mapping a logic design on Field Programmable Gate Arrays involving the steps of determining the minimum required square grid of FPGA logic blocks for mapping said design, providing a compensation factor on the minimum square grids, and selecting the maximum value amongst the compensated square grids for reducing the placement time, and implementing a legalization adjustment to ensure mapping of said compensated design. Preferably, to determine the minimum require square grid involves a determination of the minimum required number of FPGA logic blocks in a square grid for mapping corresponding design logic blocks, a determination of the minimum required number of FPGA logic blocks in a square grid for mapping corresponding design Input/Output blocks, a determination of the minimum required number of FPGA logic blocks in a square grid for mapping corresponding design macros.


In a preferred embodiment, the compensation factor for the square grid for the design logic blocks is calculated by multiplying said square grid for the design logic blocks by a factor ‘X’, the compensation factor of the square grid for the design Input/Output blocks is calculated by multiplying the number of Input/Output blocks by a factor ‘Y’, and the compensation factor for the square grid for the design macros is preferably calculated by multiplying the number of macro blocks with a factor ‘Z’. Preferably, ‘X’ ranges between 1.5 to 3, ‘Y’ is 1 when more than one I/O logic block is held in Input/Output coordinate, and ‘Y’ is 1.2 when Input/Output coordinate holds only one I/O logic block, and factor ‘Z’ is 1.2.




BRIEF DESCRIPTIONS OF THE DRAWINGS

The invention will be described with reference to the accompanying drawings.



FIG. 1 shows the graph of placement cost versus device size.



FIG. 2 shows the graph of variation of placement time with increasing device.



FIGS. 3 and 4 show the moves involving the logic blocks.



FIG. 5 shows the graph of logic block dominated design.



FIG. 6 shows the graph of I/O or macro dominated design.



FIGS. 7 and 8 show the device sizes.


FIGS. 9 to 13 show different simulation results.




DETAILED DESCRIPTION OF THE INVENTION

To truly exploit FPGAs for rapid turn-around development and prototyping, placing of processing elements in proper locations of the device plays an important role in determining the delay and the silicon requirement for FPGA implementation of a design. The present invention provides a mapping system for efficient FPGA implementation of big designs. Based on the analysis in background, the mapping system determines the appropriate FPGA device size to place a design.


The Required Silicon area for each case is determined the following way.

    • a) L=Required Silicon area for Logic Blocks=Square Root (Number of Logic Blocks).
    • b) I=Required Silicon area for I/O's=I=(Number of I/O Cells required)/2.
    • c) M=Required Silicon area for Macros=max (Maximum Height of Macro, Maximum Width of Macro).


To get the optimal required silicon area we characterize the behavior of the above three categories of designs. For Logic Block dominated designs with small difference between L and I, the behavior is as shown in FIG. 5. For I/O dominated designs having huge difference between L and I, the behavior is as shown in FIG. 6. For Macro dominated designs also the behavior is as shown in FIG. 6 for designs where the difference between L and I is huge and similar to FIG. 5 where the difference between L and I is small.


In cases where the difference between L and I is small for I/O dominated designs or L and M is small for Macro dominated designs, the behavior is similar to FIG. 5 because in such cases the values of I or M lie in region A of FIG. 5. In other words the Logic Blocks are still tightly packed due the small difference between L and I for I/O dominated designs or L and M for Macro dominated designs. Hence the logic blocks do not get enough free space to move.


Therefore for all designs the target should be to achieve Region B. However due to the minimum space required for I/O dominated designs or Macro dominated designs, the device size in region B may not be sufficient to place all I/O's or satisfy the macro heights. In such a scenario a value in region C is chosen (the behavior in region C is similar to FIG. 6). Another parameter that plays an important role in choosing the optimal device size is the placement time. It is evident from FIG. 1 and FIG. 2 that the time increases in the second half of the region B. To get the optimal value of required silicon we compute the value of L, I and M according to the following procedure:

    • A) Computing Value of Lm
      • Lm=L*w, where the factor w can be in the range of 1.5 to 3.
    • B) Computing Value Mm
      • Twenty percent extra silicon area is given to Macros.
      • Hence Mm=M*1.20
    • C) Computing Value of Im
      • The computation of I depends on the architecture of the device.
      • i) If a single I/O co-ordinate can hold more than one I/O, then I is not to be modified
      • ii) If a single I/O co-ordinate holds only one I/O then twenty percent extra silicon area is given.
      • Hence Im=I*1.2.


The maximum value amongst the computed values of Lm, Im and Mm is taken and set as the required silicon area for the design. Hence, Required Silicon for design=Rm=Max (Lm, Im, Mm)


The extra silicon area given to the logic blocks is to allow the SA to have more “moves” in which only a single cell is involved (i.e. no swapping) during the initial phase. This will facilitate SA to have a better intermediate solution compare to one with inappropriate silicon area.


Re-Adjustment of Rm


The required silicon area Rm calculated may not be sufficient to place all macros. Also the Im value takes only two sides I/O mapping into account. The I/O mapping on the other two sides is not calculated. Hence some adjustments are done to require silicon value (Rm). The following two steps are further carried out to find the

    • 1) A legalization algorithm is executed to find the minimum amount of device required to place all the macros without legalization.
      • Hence ML=Legalization Value for macros.
    • 2) The Im value is readjusted as IFinal=Min (Im, Device size). This is done to allow I/O's to use all the four sides of the device if the Im value exceeds the device size.
      • Hence, Final Required Silicon for design=RS=Maximum (Rm, ML, Ifinal)


The required Silicon Area can exceed the device size. The SA apparatus would usually converge itself in such cases to an area supported by the device size. A post placement method may be required to set the logic block co-ordinates to valid co-ordinates with respect to the device size as shown in FIG. 7 and FIG. 8 below. As shown in FIG. 7 the placed design has co-ordinates from 0 to RS. Hence the entire placement needs to be shifted as shown in FIG. 8.


An example when a design may consume a larger area than the amount required by it is shown below. For example an area of 8×8 may be sufficient for a design fed to an SA based placer. But the SA initially maps it to the entire available chip area and then searches for the global optima in the entire device. This is demonstrated in the FIG. 9.


To overcome the problem outlined in FIG. 9 SA is prevented from using an area more than the calculated required silicon area as shown in FIG. 10. A large portion of silicon is not explored due to the restrictions set by the required silicon. This helps in reducing the placement time and produces a near optimal solution as only the required silicon area is explored. Moreover, the maximum deviation in the output of the SA apparatus is less than the output generated using the require silicon area concept. Hence randomness of SA is also decreased.


As illustrated in the FIG. 11 the I/O spread them in the design and then the SA gets trapped in local minima yielding a result very far from the optimal. Using RS in the FIG. 12 the solution space is restricted and a solution closer to the global optima is obtained.


The idea of providing more silicon area virtually is very fruitful for these designs similar to the ones shown in FIG. 13. In these designs during the annealing there are a number of moves in which two cells are swapped since there is very less vacant area. To handle such designs the designs are spread over the required silicon area (virtual since it will be more than the device size) and then annealing is started. The free silicon area will increase the number of moves in which only one cell is involved during the initial passes thus yielding a high quality intermediate solution.


Thus the aforesaid invention offers lot of advantages over the prior art. Due to bad placement of very large designs the router may not be able to route the design on a given device. Our reduced silicon area approach can map a big design in a much better way. Hence it may map even those designs that are not mapped by SA without reduced silicon on the same device. The placement apparatus searches only the appropriate solution space applicable for the design. Hence unnecessary solution space is not explored. The present invention provides following benefits over the existing method:

    • Reduction in randomness of SA.
    • Reduction in mapping time.
    • Preventing SA from getting trapped in local minima resulting in wastage of Silicon area.


Further, since only the required area of silicon is used for a design, it assists in:

    • Reduction in the number of routing resources required.
    • Reduction in the delay in the design.
    • Reduction in the routing execution time.


Since the silicon area is restricted, the maximum deviation of the results is also decreased. Thus, the consistency of the invention is increased, as further illustrated in the tables listed below:

TABLE ICalculation of RSDesignI/ORLBMacroLIMembedded imageembedded imageembedded imageembedded imageabt1001604250embedded imageembedded imageembedded imageembedded imageadd82871375embedded imageembedded imageembedded imageembedded imageadd16521314139embedded imageembedded imageembedded imageembedded imageadd3210025152517embedded imageembedded imageembedded imageembedded imageaddrgen941544132417embedded imageembedded imageembedded imageembedded imagebooth26502874embedded imageembedded imageembedded imageembedded imageciu_alua119119011300embedded imageembedded imageembedded imageembedded imagede_interleaver196100010490embedded imageembedded imageembedded imageembedded imagedecoder1281353606340embedded imageembedded imageembedded imageembedded imageFFT_butterfly240192814608embedded imageembedded imageembedded imageembedded imageFFT_sm117670950embedded imageembedded imageembedded imageembedded imageiso_main175109011440embedded imageembedded imageembedded imageembedded imageXorMux854204015140embedded imageembedded imageembedded imageembedded imageXorMux1680408021200embedded imageembedded imageembedded imageembedded image


In prior art, the FPGA device size used to map a design is 34 which uses a 34×34 size FPGA array as an initial square arrangement for the mapping systems, while Table 1 shows the required FPGA device size determined using the instant invention for initial mapping. If the value of I exceeds 34, then Im is taken as Minimum (I, device Size (34)). The value of compensation factor w is taken as 2. The placement costs for various device sizes used in the mapping system are given in Table 2. As shown in Table 2, below, the highlighted values illustrate the mapping cost for the instant invention. This clearly shows the advantage of the instant invention over the prior art in terms of placement cost.


While there have been described above the principles of the present invention in conjunction with specific components, circuitry and techniques, it is to be clearly understood that the foregoing description is made only by way of example and not as a limitation to the scope of the invention. Particularly, it is recognized that the teachings of the foregoing disclosure will suggest other modifications to those persons skilled in the relevant art. Such modifications may involve other features which are already known per se and which may be used instead of or in addition to features already described herein. Although claims have been formulated in this application to particular combinations of features, it should be understood that the scope of the disclosure herein also includes any novel feature or any novel combination of features disclosed either explicitly or implicitly or any generalization or modification thereof which would be apparent to persons skilled in the relevant art, whether or not such relates to the same invention as presently claimed in any claim and whether or not it mitigates any or all of the same technical problems as confronted by the present invention. Applicant hereby reserves the right to formulate new claims to such features and/or combinations of such features during the prosecution of the present application or of any further application derived therefrom.

TABLE 2MST COST for Various Device Sizes (Required Silicon Values in Bold)Device Sizeabtadd8add16add32addrgenboothciu_aluade_interleaver 5NANANANANANANANA 6NANANANANANANANA 7NA110NANANANANANA 8NA125NANANANANANA 9NA139NANANA1106NANA10NA142NANANA1123NANA11NA151NANANA1217NANA12NA140NANANA1596NANA13NA157360NANA1499NANA14NA168394NANA1203NANA15NA343419NANA1245NANA16NA182419NANA1152NANA17NA224440NANA1195NANA18NA221702NANA1176NANA19NA254469NANA1086NANA20NA187512NANA2252NANA21NA186536NANA2840NANA22NA226573NANA1190NANA23NA2391043 NANA1315NANA24NA239625NA26362783NANA25548550599146527862847NANA26564238730147526451198NANA27571325680150228191405NANA28589245626156470361492NANA29593430745163085941409NANA305913947081634284312613272NA316422399671640264728503367NA326252027611716281612563467NA336182027751749289943653747NA34646339829189190772936361454843565928295818099195102634485556366854087941972263331073471565837711304867204010070 148834925782386607761669 187282251382362258333968721074819309470129935685939406232669292164672715963625604041608218723188110401 1171346460154262840070221326081164334746231436732321056 230010145 40393731632144594204659203612054 154835196382456185191078 20913101172441876373467392536642106331139434237660247618411785279312726 137436066588487352981253 215012807 126336156752496341100 98926783177477835246572 06872001136 23433244155335396877Device Sizedecoder128FFT_butterflyFFT_sm1iso_mainXorMux8XorMux16 5NANANANANANA 6NANANANANANA 7NANANANANANA 8NANANANANANA 9NANA1172NANANA10NANA1155NANANA11NANA1150NANANA12NANA1149NANANA13NANA1100NANANA14NANA1090NANANA15NANA1079NA4354NA16NANA1032NA4352NA17NANA1030NA4205NA18NANA1012NA4148NA19NANA1029NA4176NA20NANA1007NA4107NA21NANA1021NA4140891222NANA1010NA4039889123NANA1023NA3977898824NANA1012NA4008882625NANA1027NA3973858926NANA1026NA3846846727NANA1014NA3932834328NANA1042NA3973825929NANA1002NA3901813930NANA1017NA3820822131NANA1034NA3880802032NANA1021NA3785797333NANA1009NA3768808034875999010064301387280363590611710101645253886786236905119901046455339087841379231225510104715379478483897311260105345413791802939936133171013476638257808409831223410054931377080124198413006106449443867782842987134991001468941227678431036 130621007523339967698441045 119201018511137047694451013 117661043524937677787461017 107501002493438047840471051 118361008496437657787481110 113851071536337637870491148 127981039531838728085 01124 130021044500839018062

Claims
  • 1. An efficient method for mapping a logic design on Field Programmable Gate Arrays comprising: determining the minimum required square grid of FPGA logic blocks for mapping said design; providing a compensation factor on said minimum square grids, and selecting the maximum value amongst said compensated square grids for reducing the placement time; and implementing a legalization adjustment to ensure mapping of said compensated design.
  • 2. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 1 wherein said determining comprises: determining the minimum required number of FPGA logic blocks in a square grid for mapping corresponding design logic blocks; determining the minimum required number of FPGA logic blocks in a square grid for mapping corresponding design Input/Output blocks; and determining the minimum required number of FPGA logic blocks in a square grid for mapping corresponding design macros.
  • 3. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 1 wherein said compensation factor for said square grid for said design logic blocks is calculated by multiplying said square grid for said design logic blocks by a factor ‘X’.
  • 4. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 1 wherein said compensation factor of said square grid for said design Input/Output blocks is calculated by multiplying the number of Input/Output blocks with a factor ‘Y’.
  • 5. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 1 wherein said compensation factor of said square grid for said design macros is calculated by multiplying the number of macro blocks with a factor ‘Z’.
  • 6. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 3 wherein said factor ‘X’ ranges between 1.5 to 3.
  • 7. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 4 wherein said factor ‘Y’ is 1 when more than one I/O logic block is held in Input/Output coordinate.
  • 8. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 4 wherein said factor ‘Y’ is 1.2 when Input/Output coordinate holds only one I/O logic block.
  • 9. The efficient method for mapping a logic design on Field Programmable Gate Arrays as claimed in claim 5 wherein said factor ‘Z’ is 1.2.
Priority Claims (1)
Number Date Country Kind
2595/DEL/2004 Dec 2004 IN national