Computer-implemented method for automated pipeline design of an FPGA-type programmable logic circuit

The Petri net model with timed transitions and reset events addresses the inefficiencies in FPGA pipeline optimization for large circuits, achieving reduced flip-flop count and resource usage with synchronized time multiplexing.

FR3129010B1Active Publication Date: 2024-09-06RENAULT SA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2021011752
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2024-09-06
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

Existing methods for optimizing FPGA performance by reducing the number of cells and flip-flops in pipeline circuits are not effective for large circuits, particularly in addressing time multiplexing optimizations.

Method used

A computer-implemented method using a Petri net model with timed transitions and reset events to optimize the placement of flip-flops, incorporating time multiplexing and minimizing register consumption, guided by CTL properties to ensure synchronization and resource efficiency.

Benefits of technology

The method achieves optimized FPGA pipeline design with minimal flip-flops and logical resources, ensuring a target frequency while reducing latency and resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000013_0000
    Figure 00000013_0000
  • Figure 00000014_0000
    Figure 00000014_0000
  • Figure 00000014_0001
    Figure 00000014_0001
Patent Text Reader

Abstract

A computer-implemented method (1) for the automated design of the pipeline of a programmable logic circuit, of the FPGA type, comprising a plurality of logic gates and a plurality of flip-flops forming registers, the method (1) comprising the steps of: - Acquisition (10) of a digital representation of a target pipeline circuit, - Establishment (11) of a Petri net representative of said target pipeline; - A step of exploring (12) the Petri net, shaped to determine an optimized configuration, by exploring different executions of the Petri net; and - A step of selecting (13) a Petri net execution for which the pull times of the delayable transitions allow the minimization of a predetermined cost function, each triggered reset event defining the position of the registers on the target circuit as a function of the position of the tokens at the trigger time. Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: Computer-implemented method of automated design of a logic circuit pipeline pro- FPGA-type grammable

[0001] = The invention relates to the field of automated pipeline design for a FPGA, or field-programmable gate array, is a programmable logic circuit. translated into French as in situ programmable gate network.

[0002] — FPGA circuits are logic circuits comprising logic cells comments and logical switches, called flip-flops, freely connectable to each other to others.

[0003] = Each FPGA can be configured a plurality of times to perform operations complex logics.

[0004] From a general point of view, there is a need to find solutions to optimize the performance of FPGAs while reducing the number of cells and flip-flops necessary logic.

[0005] To this end, it is known to organize FPGAs according to chain methods of processing, better known by the English term FPGA Pipelining.

[0006] A pipeline is a logical breakdown allowing the processing of logical instructions in parallel with each other, while ensuring the synchronization of operations when necessary.

[0007] — The pipeline is an essential element in the design of a logic circuit synchronous and allows for a significant improvement in operating frequency and Therefore, the throughput comes at the cost of higher latency. Automatic generation of a pipeline, and more specifically the optimized placement of flip-flops, forming registers 1 bit, guarantees a target frequency, but also the minimization of resources consumed by the pipeline.

[0008] Thus, the definition of a pipeline must meet several criteria:

[0009] — — guarantee a minimum calculation frequency;

[0010] | — minimize the number of flip-flops required, which are 1-bit registers.

[0011] — — Check additional constraints on the pipeline, which may correspond to functional requirements.

[0012] — Initially, the subject of automatic pipeline generation was formalized by Leiserson and Saxe in Charles E. Leiserson and James B. Saxe. Synchronous retiming circuitry. Algorithmica, 6(1-6):5-580 35, June 1991, using a graph model weighted.

[0013] — Their approach is based on the concept of retiming, that is, the displacement of registers inside the circuit, but without altering functionality. By using retiming, we can build a pipeline that ensures a minimum throughput, while minimizing the resources consumed by the registers. However, the approach of this first publication is not very effective on large circuits, so there was a need to find an improved solution. To solve this problem, we are familiar with the publication by Rémi Parrot, Mikaël Briday, and Olivier Roux, "Timed Petri Nets with Reset for Pipelined Synchronous" Circuit Design. 42nd International Conference on Application and Theory of Petri Nets and Concurrency, Jun 2021, Paris, France. pp.55-75, 10.1007 / 978-3-030-76983-3_4. hal-03266806. However, this solution does not allow for the resolution of certain relatively important optimizations such as time-division multiplexing, also called folding, which makes it possible to reduce the number of logic units implemented in the FPGA while guaranteeing a minimum operating frequency. Put simply, folding consists of sharing portions of the circuit in different places in the pipeline, in order to reduce the number of logic units needed to implement the pipeline. Therefore, there is a need for an improved solution to automatically generate an FPGA pipeline, while meeting the previously stated requirements. We propose a computer-implemented method for the automated design of the pipeline of a programmable logic circuit, of the FPGA type, comprising a plurality of logic operators and a plurality of flip-flops forming registers, the method comprising the following steps: - Acquisition of a digital representation of a target pipeline circuit, - Establishment of a Petri net representative of said target pipeline, in which the Petri net is defined such that each transition corresponds to an operator of said programmable logic circuit, each place corresponds to a signal and is associated with a predetermined weight, and each token corresponds to a data processed by the programmable logic circuit; each transition being further associated with a timing value; said Petri net further comprising an incremental counter, said transitions being associated with delayable or non-delayable timing values; a transition is triggered when the value of the increment counter is equal to the timeout value associated with said transition, when said timeout value is non-delayable; and a transition being fired when the value of the increment counter is at least equal to the timeout value associated with said transition, when said timeout value is delayable; said Petri net being further associated with a reset event, also called a reset, which resets said incremental counter to zero when triggered; said reset event being able to be triggered within a predetermined time interval, A Petri net exploration step, shaped to determine an optimized configuration, by exploring different executions of the Petri net, each corresponding to a combination of different possible trigger times for the reset event and different possible pull times for each delayable transition; and A selection step of a Petri net execution for which the pull times of the delayable transitions allow minimization of a predetermined cost function, each triggered reset event defining the position of the registers on the target circuit as a function of the position of the tokens at the time of triggering. Before the implementation of the exploration step, portions of the target pipeline to be folded are defined; and the exploration step is guided by logical conditions: on the one hand, the mutual exclusion of data in places to be folded, and the same positioning of registers for the portions to be folded. Advantageously, the logical condition verifying the positioning of the registers for the portions to be folded is a function of the number of tokens accumulated in each place of portion to be folded at each triggering of a reset event. Advantageously, the exploration step is guided by logical conditions expressed according to tree-like temporal logic properties, frequently called CTL properties. Advantageously, the exploration step is carried out by traversing successive branches and exploration branches of the Petri net states, each branch of a branch being removed when said branch does not fulfill said logical conditions. The invention also relates to a computer program comprising program code instructions for executing the steps of the process described above when said program is run on a computer. The invention also relates to a computer program product comprising program code instructions recorded on a medium usable in a computer adapted to perform the steps of the process as described above. Other features and advantages of the invention will become apparent from the following description of a particular embodiment of the invention, given by way of example but not limitation, with reference to the attached drawings in which: - Figure [1] is a flowchart of the process according to the main embodiment of the invention; - Fig. 2 is an example of a target scheme; - Fig. 3 is a model of the example target scheme of Fig. 2 by a Petri net; - Fig. 4 is an example of an execution of the Petri net by the method according to the invention; - Figure 5 is an example of a target scheme on which the registers have been positioned by selecting an optimized execution of the Petri net; and - Figure 6 is an example of a target circuit, showing two circuit segments that are candidates for folding; and — [Fig.7] is the Petri net associated with the scheme in [Fig.6]. Figures 1 to 7 relate to the same embodiment, and will therefore be discussed simultaneously. Method 1 according to the invention is implemented by computer to design the pipeline of a programmable logic circuit, in particular of an FPGA. An FPGA is well known to consist of a plurality of logic cells and a plurality of flip-flops, forming 1-bit registers, which can be interconnected with each other. In this description, the FPGA is considered as an interconnected set of cells (slices), each composed of combinational circuits (LUTs) and synchronization circuits (flip-flops). Accelerators are not considered. Automatic pipeline design refers to the steps of optimized positioning of flip-flops, forming a 1-bit register, in order to guarantee optimal pipeline operation. The process 1 first implements an acquisition step 10 of a digital representation 20 of a target pipeline circuit. This digital representation 20 includes the links between logic cells necessary for the FPGA to perform its intended functions. However, the positioning of the registers needs to be determined to ensure optimal pipeline operation. Method 1 according to the invention thus makes it possible to automatically design the pipeline, in other words to determine the optimized positioning of the registers in order to guarantee optimized operation, a minimum operating frequency and an optimization of the logical resources consumed. To this end, process 1 first implements a step of establishing 11 a Petri net 21 representative of said target pipeline. This Petri net 21 is established in accordance with the teachings of the publication by Rémi Parrot, Mikaël Briday, and Olivier Roux, "Timed Petri Nets with Reset for Pipelined" Synchronous Circuit Design, 42nd International Conference on Application and Theory of Petri Nets and Concurrency, Jun 2021, Paris, France. pp.55-75, 10.1007 / 978-3-030-76983-3_4. hal-03266806. The Petri net 21 is defined such that: - each transition 211 corresponds to an op operator, of the programmable logic circuit, - each place 210 corresponds to a signal s, and is associated with a predetermined weight, - each token 212 corresponds to a data processed by the programmable logic circuit. Each transition 211, 221 is also associated with a timing 214. In addition, the transitions 211, 221 can be delayable 221 or non-delayable 211. On [Fig.3], the delayable transitions 221 are represented on a grey background, while the non-delayable ones 211 are represented on a white background. Indeed, as explained below, the Petri net is also modeled to work with an iteration counter, and the transitions are thus pulled according to said value of the counter. 1. It is recalled that in Petri nets, a transition can only be fired if it is previously sensitized, which means that the places directly upstream of the transition include at least one token. When a 221 transition is delayable, the numerical timing value 214 written under the transition corresponds to the minimum counter value to trigger the transition. Timed Petri nets were introduced by Ramchandani with some shooting semantics (with interlacing). However, in this embodiment of the invention the transitions of the Petri net are fired according to the maximum step rule, as shown in the previously cited publication Timed Petri Nets with Reset for Pipelined Synchronous Circuit Design. An incremental counter thus counts the successive iterations between the different states of the Petri net. In the case of a non-delayable 211 transition, the transition is fired when the increment counter value is equal to the timing value associated with the transition. In the case of a delayable 221 transition, it is necessarily fired when the value of the increment counter is at least equal to the timeout value associated with said transition. One particular implementation of the invention could consist of considering that all transitions are delayable. However, the computational complexity of the step Exploration 12, outlined below, would then be very important. Therefore, in the present embodiment of the invention, a heuristic is implemented whereby the delayable transitions are the transitions for which the size of the input signals is less than the size of the output signals. For example, when there is one 16-bit signal upstream and two 4-bit signals downstream (4+4=8 < 16), the transition is not delayable. The Petri net is also associated with a reset event, called a reset, which resets the incremental counter when triggered. The reset can be triggered within a predetermined time interval I = [ / reset 1, Lei. The reset interval is determined by a heuristic based on the target operating frequency f: the upper bound of the interval cannot exceed 1 / f and the lower bound is determined by a heuristic at 1 / (2f). This helps to limit the computational complexity during exploration step 12. When the reset is triggered, it fixes the position of the registers one stage at a time. The process 1 then implements an exploration step 12 aimed at determining the best combination of reset trigger times and delayable transition pull times, so as to obtain an optimized position of the target pipeline registers. Figure 4 represents a branch of an exploration according to the invention; in each box the principal states of the Petri net are indicated, the arrows representing either the time elapsed before the next state is obtained after firing the fireable transitions, or an event that occurred such as a reset. In [Fig.4], the indications v(x) indicate the clock value of the x transition, called valuation (or evaluation). v(reset) corresponds to the counter value since initialization or the last reset. Exploration step 12 calculates a cost function for each execution of the Petri net. The cost function ©2({p) is the sum of the cumulative marking costs w(M) of the states after each reset transition on execution, starting with the initial marking cost. Indeed, the marking cost (M) of a place p after a reset determines the number of flip-flops needed upstream of that place p. We therefore understand that the objective is to minimize the cost function ©2(p) since the value obtained corresponds to the number of flip-flops needed for the complete pipeline. The marking costs (M) are calculated after each reset and for the initial marking, as follows: YM € {0.1}",oGN) = Fe Po, C(P) - max(M(p), maxpre rain) (M (23) In which: Pos = {p ∈ P | 5t ∈ Tor.t*{p) = 1} ; the set of places following a transition that models an operator Palp) = {p' € P | # € Tn,"t(p) = Let #*{7") = 1} : the set of places following the transition that models the branch point on the signal modeled by p and with P: the set of places p in the Petri net; M(p): the marking of place p, in other words the number of tokens in place p in the state considered; and C(p): the cost associated with place p. The objective of the exploration step is to determine the execution that minimizes the cost function @(p). Thus, we implement a selection step 13 of the execution of the Petri net minimizing the cost function ©2(p) among all the candidate executions obtained during the exploration step 12. Thus, as an example, at the end of the selection step 13 we obtain the scheme according to [Fig.5] with the registers 51 positioned by the different resets carried out during the execution of the selected Petri net. However, knowing that the FPGA has a clock frequency generally much higher than the sampling rate of the signals supplied, it is advantageous to determine during the exploration the configuration allowing the time multiplexing, also called folding, of the desired scheme. First, portions of the diagram are identified as candidates for folding. The determination of the candidate portions of the scheme in this embodiment is carried out manually. However, a particular implementation of the invention could implement automatic determination steps for candidate portions of the scheme, but this subject is not within the scope of the present invention. Thus, as an example, [Fig.6] represents a pipeline diagram identifying two shared sections 61, 62. Resource access sequencing is done using a specific pipeline. Determining this pipeline constitutes the modulo scheduling problem. An important aspect of modulo scheduling is determining the initialization interval, or in other words, determining the delay between two introductions of new inputs to the circuit. A particular implementation of the invention can be achieved by modeling the periodic introduction of data into a Petri net by an input token generator. However, in the present embodiment of the invention, a simplification is made assuming that new data is only introduced once all the calculation has been completed for the previous execution. In other words, the pipeline can process an input data entirely before another input data is introduced. This assumption is entirely relevant in signal processing, where the initialization interval, i.e. the sampling period, is generally much greater than the pipeline period, which is linked to the FPGA frequency. The objective of the process is then, in particular, to determine the pipeline on the initial circuit containing all the instances, and then to fold the instances afterwards. The pipeline must then meet two constraints: 1. A mutual exclusion property, ensuring that resources cannot be accessed at the same time by multiple folding portions. 2. The second concerns the placement of the registers, and ensures that the portions of circuits to be bent have registers in the same places. This is notably represented [Fig.6], where the registers are placed identically in both portions to be folded. In the example of [Fig.6], the first constraint is to ensure that there is never any data at the same time in the twinned signals: both in s5 (respectively s6) and in s8 (respectively s10). The second constraint is to verify that there are as many registers in the pairs of paired signals. To successfully build this particular pipeline, the exploration steps are guided by properties of tree-like time logic, better known by the English name Computation Tree Logic, usually abbreviated CTL. The exploration phase is then restricted to executions that verify these properties. Each execution of the Petri net, based on a particular configuration of reset and pull times for delayable transitions, is referred to as an "execution." The mutual exclusion constraint can be expressed simply by a marking constraint verified in all execution states. As a reminder, the marking M corresponds to the number of tokens in a place p The reset is made explicit in the model of the invention so that the CTL properties can count the resets performed in each place. Due to the density of time, the reset can be pulled from an infinite number of states having the same marking, and the successor state will always be the same. Thus, the only relevant times for firing the reset are at the limits of its interval ( Lreset © Î,ee) ©t At the same time as a transition shot (in the semantics right after the transition shot). This is why the reset can be considered as a delayable transition with a time upper bound, and this preserves discrete executions. We can define a property reset(S,) which corresponds to the cumulative number of tokens in place S, after each reset. This allows the implementation of CTL constraints for verifying the properties stated above. A first atomic property ensures the mutual exclusion of data in paired places, for example in the example of [Fig.7]: emutex = (M(sS)+ M(s8)< 1) A (M(s6)+ M(s10)< 1) A(M(s6a) + M(s10) $ 1) A (M(s6b) + M{s10) < 1) Indeed, in the model the tokens represent both the positions of the registers, and the data propagated when the circuit is piped. The pmutex property therefore verifies that the two signals s5 (respectively s6; s6a; s6b) and s8 (respectively s10) will never contain data at the same time. A second atomic property ensures the consistency of the placement of the registers between the paired positions in the final marking: œuonsist = (M(s11) = DA (reser(sS) = reset(sB)) A (reser(s6)+ rese(sba) = reseds10}) A (reser(s6) + reser(s6b) = reser(s10)) This property verifies that in the final state M(s11) = 1 the paired places will have received the same number of resets. Finally, the final CTL property ensures that pmutex is maintained until it is checked at the same time as œconsist (when the final state is reached): œfold = A(pmutexU(pmutex A pconsist)) Thus, to solve the folding problem, the approach of the invention consists of implementing an exploration step searching for all states of the network that satisfy the pfold property, but when a state invalidating the property is reached the exploration branch is pruned. Therefore, this is not a verification in the strict sense, but a pipeline synthesis guided by a CTL property. Thus the invention proposes a modeling of the pipeline of a synchronous circuit based on timed Petri nets. The invention solves, in particular, the problem of pipeline optimization in terms of resources. Thus, the invention defines a timed Petri net model with reset and delayable transitions, as well as a formal analysis guaranteeing the generation of a pipeline with a target operating frequency, and minimizing resource consumption with respect to the size of the registers and their potential sharing. The present invention makes it possible, more specifically, to jointly address this optimization with the pipeline synthesis problem, respecting a specification of temporal logic. In particular, a solution to the time-division multiplexing problem is provided by explicitly expressing the reset in the Petri net model and checking logical conditions on the time-division multiplexing during the exploration step. By this process 1, we produce a pipeline with time multiplexing, ensuring a target frequency and minimizing the registers consumed.

Claims

Claims

1. Computer-implemented method (1) for automated design of the pipeline of a programmable logic circuit, of the FPGA type, comprising a plurality of logical operators and a plurality of flip-flops forming registers, the method (1) comprising steps of: Acquisition (10) of a digital representation (20) of a target pipeline circuit, Establishment (11) of a Petri network (21) representative of said target pipeline, in which the Petri net (21) is defined as so that each transition (op;) corresponds to an operator of said programmable logic circuit, each place (p;) corresponds to a signal and is associated with a predetermined weight, and each token corresponds to a piece of data processed by the circuit programmable logic; each transition being furthermore associated with a timeout value; said Petri net further comprising an incremental counter, said transitions (211, 221) being associated with tempo values deferrable or non-deferrable realization; a transition (221) being fired when the value of the counter increments is equal to the timeout value associated with said transition, when said time delay value is non-delayable; and a transition (211) being fired when the value of the counter increments is at least equal to the time delay value associated with said transition, when said time delay value is deferrable; said Petri net (21) being further associated with a reset event initialization, resetting said incremental counter to zero when it is triggered; said reset event may be triggered within a predetermined time interval, An exploration step (12) of the Petri network, conformed to determine an optimized configuration, by exploration of different executions of the Petri net, corresponding each has a combination of different trigger times- possible effects of the reset event and the different possible draw times for each transition retardable; and A selection step (13) of a Petri net execution for which the drawing times of the delayable transitions allow the minimization of a predetermined cost function, each reset event triggered defining the position of the registers on the target circuit according to the position of the tokens at the trigger time; and A step of modeling the pipeline of said logic circuit programmable depending on the execution of the Petri net selected; characterized in that before the implementation of the exploration step, one defines portions to be folded of said target pipeline; and the exploration step is guided by logical conditions: on the one hand, mutual exclusion of data in places to fold, and a same positioning of the registers for the portions to be folded.

2. Method according to claim |, characterized in that the condition logic checking the positioning of the registers for the portions to be folded is a function of the number of tokens accumulated in each portion place to be folded upon each triggering of a reset event.

3. A method according to claim 1 or 2, characterized in that the step exploration is guided by logical conditions expressed according to tree temporal logic properties.

4. Method according to claim 3, characterized in that the step exploration is carried out by branching and branching paths successive exploration of states of the Petri net, each branch of a branch being removed when said branch does not fulfill said logical conditions.

5. Computer program comprising code instructions program for executing the steps of the method according to one any of claims | to 4 when said program is run on a computer.

6. Computer program product comprising code instructions program recorded on a medium usable in a computer suitable for carrying out the steps of the method according to any of the res- dications | to 4.