Title of Invention

PIPE-LINED STATIC ROUTER FOR CONFIGURABLE LOGIC SYSTEM

Abstract A configurable logic system programmed to model a logic design comprises an array of programmable logic modules each configured to perform a partition block of the logic design and a module interconnect providing connections between the modules. The interconnect enables transmission of global links between the partition blocks of the modules. The modules time division multiplex the global links, with a destination module then demultiplexing the global links allowing the links to pass through to another FPGA. The modules are configured to transmit individual ones of the global links at time intervals determined in response to a ready time of the individual links. The ready times of individual global links are determined in response to receipt of parent global links and signal propagation delays across the modules. A parent of a particular global link is a link that affects a logic value of the global link. The present invention allows computation and communication simultaneously. Previously, the calculations and communications were divided into discrete phases within each emulation clock period.
Full Text



The present invention relates to a configurable logic system programmed to model a logic design and a method for configuring the same.
Configurable or programmable logic devices are a general class of electronic devices that can be easily configured to perform a desired logic operation or calculation. Mask Programmed Gate Arrays (MPGA) offer density and performance. Poor turn around time coupled with only one-time configurability tend to advocate against MPGA usage. Field Programmable Gate Arrays (|FPGA) offer lower levels of integration but are reconfigurable, i.e., the same FPGA may be programmed many times to perform different logic operations. Most importantly, the FPGAs can be programmed to create gate array prototypes instantaneously, allowing complete dynamic reconfigurability, something which MPGAs caimot provide.
System designers commonly use configurable logic devices to test logic designs prior to manufacture or fabrication in an effort to expose design flaws. Usually, these tests take the form of emulations in which a configurable logic device models the logic design, such as a microprocessor, in order to confirm the proper operation of the logic design along with possibly its compatibility with a system in which it is intended to operate.

In the case of testing a proposed microprocessor logic design, a netlist describing the internal architecture of the microprocessor is compiled for and then loaded into a particular configurable logic device by some type of configuring device such as a host workstation. If the configurable logic device is a single or array of FPGAs, the loading step is as easy as down-loading a file describing the compiled netlist to the FPGAs using the host workstation or other computer. The programmed configurable logic device is then tested in the environment of a motherboard by confirming that its response to inputs agrees with the design criteria for the proposed microprocessor.
Alternatively, a configurable logic device also finds application as hardware accelerators for simulators. Rather than testing a logic design by programming a configurable device to "behave" as the logic device in the intended environment for the logic design, e.g., the motherboard, a simulation involves modeling the logic design and its environment on a workstation. In this context, the configurable logic device functions as a hardware accelerator that performs gate evaluations for portions of the model in order to relieve the workstation of this task and thereby decreases the time required for the simulation.
Recently, most of thejattention in complex logic design emulation/simulation has been directed toward FPGAs. The lower integration of the FPGAs has been overcome by forming heterogeneous networks of special purpose FPGA processors connected to exbhange signals via some type of interconnect. The network of the FPGAs is heterogeneous not necessarily in the sense that it is composed of an array of different devices,, but that the devices have been

individually configured to cooperatively execute different sections, or partitions, of the overall logic design. These networks rely on static routing at comp'ile-time to organize the propagation of logic signals through the FPGA network. Static refers to the fact that all data or logic signal movement can be determined and optimized during compiling.
More recently, networks implementing time division multiplexing have been proposed and constructed. These emulators overcome the inherent pin limitations associated with each FPGA and the bandwidth/speed limitations of buses by configuring the FPGA to stack logic signals in time and then transmit the signals on successive clock pulses to a destination FPGA, possibly routing the signals through an intermediate FPGA or through networks, where the signals are then demultiplexed. See U.S. Pat. Appl. Serial No. 08/042,151, filed on April 1, 1993 by the present inventors and incorporated herein by this reference.
Summary of the Invention
The present invention was contemplated as an improvement over the prior art implementations. Previously, the computations and communications were divided into discrete phases within each emulation clock period. Although achieving superior results over the prior art, the full potential is not realized due to increased latency associated with the scheduling of the global link transmission between FPGAs. This potential shortcoming is corrected by the present invention.
In general, according to one aspect, the invention features a configurable logic system programmed to model a logic design such as a microprocessor. This system comprises an array of programmable logic modules, field

programmable gate arrays in the preferred embodiment, each configured to perform a partition block of the logic design, and a module interconnect providing connections between the modules. The interconnect enables transmission of global links between the partition blocks of the modules. Thus, the interconnect need not be a separate structure. Portions of the FPGAs used for logic can be configured to do routing functions. Global links are the logic signals that must be transmitted between the partition blocks in order to realize the logic design.
At least one of the modules time division multiplexes and transmits the global links to a destination module, which then demultiplexes the global links. Time division multiplexing enables multiple global links to be transmitted from the same physical pin of the modules and across the same physical wire of the interconnect. The modules are configured to transmit individual ones of the global links at time intervals determined in response to a ready time of the individual links.
In the past, each period of the emulation clock was divided into rigid time frames or phases in which global link transmission occurred. Furthermore and more importantly, logic evaluation was not performed simultaneously with communication. In contrast the present invention relies on a flexible scheduling approach to decrease latency and alleviate congestion, inter alia. The global links are transmitted in response to their being ready, i.e., settled to a final value after waiting only for related links to be received at the FPGA and for propagation delays of the partition blocks. In prior systems, a given link could be routed only after all links (in every FPGA of the-~array) in a previous phase were received, not just links on which the given link depended.

In preferred embodiments, the ready rimes OL individual global links are determined in response to receipt of parent global links. A parent of a particular global link is another global link that affects combinationally the logic value of the global link. Further, the ready times are also determined in response to propagation delays for combinatorial signals across partition blocks that generate the individual global links.
In other preferred embodiments, the modules comprise logic partition portions, configured to logically model a corresponding partition block by generating the corresponding global links, and separate communication portions. The communication portions comprise pipeline shift registers or multiplexers. The time multiplexing of the global links generated by the logic partition portions is performed by the communications portion prior to transmission over the interconnect between the modules. As a result, the programmable logic modules buffer global links until a path on the module interconnect becomes available.
In still other preferred embodiments, the system further comprises a pipeline clock received by the communication portions of the modules for defining time blocks for multiplexing the global links. The communications portions are adapted to transmit individual global links over periods of the pipeline clock determined in response to a time of receipt of parent global links and propagation delays across the logic partition portions. The global links having long paths between programmable logic modules are routed through intermediate programmable logic modules between source and destination programmable logic modules.

In general, according to another aspect, the invention features a method for compiling a netlist. This method comprises dividing the netlist into logic partition blocks to be loaded into programmable logic modules of an array. Individual global links are statically routed to be transmitted between the modules via an interconnect on time intervals defined by a clock signal, also called a virtual or pipeline clock, that is distinct from the emulation clock. The particular time intervals are determined in response to receipt of parent global links.
In preferred embodiments, the compiling further comprises determining link depths of the global links. Link depths refers to a number of other global links that must be routed after a given global link for correct synchronous operation. Priority to the routing of the global links is then assigned in response to the respective link depths.
In other preferred enibodiments, the global links are divided into virtually roiitable global links and hard routable global links since ready times of global links on asynchronous routes can not be predicted at compile-time. Thus, only virtually routable global links are transmitted between the modules in response to the clock signal. Hard routed links are assigned dedicated paths, i.e., pins of the modules and conductors of the interconnect. Both hard and virtually routable lipks are preferably assigned a shortest path between a source and destination module.
i
In general, according to still another aspect, the invention features a configurable logic system programmed to model a logic design, i This system comprises an array of programmable logic modules. A module interconnect provides connections between the modules of the array enabling

transmission of gobal links between the modules. A configurer, such as a computer workstation, configures each one of the modules to perform a partition block of the logic design. The configurer further organizes the internal architecture of the modules to time division multiplex individual ones of the global links at time intervals determined in response to a ready time of the individual global links.
In specific embodiments, the ready times of individual global links are determined in response to receipt of parent global links and propagation delays across partition blocks.
The above and other features of the invention including various novel details of construction and combinations of parts, and other advantages, will now be more particularly described with reference to the accompanying drawings and pointed out in the claims. It will be understood that the particular method and device embodying the invention is shown by way of illustration and not as a limitation of the invention. The principles and features of this invention may be employed in various and numerous embodiments without departing from the scope of the invention.
Accordingly the present invention provides a configurable logic system programmed to model a logic design, the system comprising an array of programmable logic modules each configured to perform a partition block of the logic design, and a module interconnect for each programmable logic module providing connections between the modules of the array enabling transmission of global links between the partition blocks of the modules, at least one of modules having means to time division multiplex the global links transmitted

over the interconnect to another one of the modules, which has means to demultiplex the global links, the modules having transmitting means to transmit individual ones of the global links over the module interconnect at scheduled time intervals determined in response to ready times of the individual links and the modules having receiving means to receive the global links from the module interconnect based on the scheduled time intervals.
Accordingly the present invention also provides a method for configuring a logic system as hereinabove described comprising compiling a netlist said compiling comprising dividing the netlist into logic partition blocks to be loaded into programmable logic modules of an array; routing individual global links to be transmitted between the modules on an interconnect on time intervals defined by a clock signal; and determining the time intervals in response to receipt of parent global links affecting a logic value of the individual global links; and configuring the logic system according to the compiled netlist.
In the accompanying drawings, like reference characters refer to the same parts throughout the different views. The drawings are not necessarily to scale. Emphasis is instead placed upon illustrating the principles of the invention. Of the drawings :
Figs, la and lb show a prior art logic emulation system, including a target system and host workstation, and _

the manner by which the netlist is divided into logic partition blocks and imposed on an FPGA array of the emulation system, respectively;
Fig. 2 is a block diagram of a prior art hardwire interconnect system between the FPGAs;
Fig. 3 is a block diagram of a virtual wire interconnect system between FPGAs;
Fig. 4 is a timing diagram showing the phase division of the emulation clock period in the prior art;
Fig. 5 is a timing diagram showing the simultaneous computation and communication according to the present invention;
Fig. 6a shows an exemplary logic design that is programmed into an emulation system of the present invention;
Fig. 6b shows an exemplary gate arrangement in a logic partition block of the present invention;
Fig. 6c shows the inventive timing arrangement for a portion of the logic shown in Fig. 6b;
Fig. 7a, b and c are block diagrams of alternative virtual wire interconnect systems between FPGAs using multiplexers and flip-flops in place of shift registers;
Fig. 8 is a flow diagram illustrating the compiling steps of the present invention;
Fig. 9 is a flow diagram illustrating the static routing steps of the present invention;
Figs. 10a and 10b.show the transition from global nets to global links according to the static routing method of the present invention;
Fig. 11 illustrates the available pipe-line clock time slots available for a channel path of the present invention;
Fig. 12 illustrates a schematic graph data structure for indicating the FPGAs of the array jjjd the utilized

channel paths between these modules of the present invention;
Fig. 13 is a flow diagram illustrating the steps in hard routing the global links according to the present invention; and
Fig. 14 is a flow diagram illustrating the steps in routing the virtually routable global links according to the present invention.
Detailed Description of the Preferred Embodiments
Turning now to the figures, a typical prior art logic emulation system 5 is illustrated in Figs, la and lb. An array 10, made up of individual FPGA chips 12, is connected to an interconnect 14 to form a network 8. The emulation system 5 further includes memory elements 6 that are accessed by the network 8.
The emulation system 5 is controlled and configured by a host workstation 2 that downloads compiled files defining a netlist of a logic design to be emulated. When properly configured, the FPGA emulation system 5 will behave as a logic design described by the netlist. The logic design is intended to be -tested in the context of target system 4, to which the network 8 is directly wired, to serve as a test bed.
Fig. lb illustrates how the logic design is impressed upon the array 10. The netlist 20 is separated into logic partition blocks 22. The complexity of the blocks 22 is manipulated so that each can be realized in a single FPGA chip 12. The logic signal connections 24 that must bridge the partition blocks, global links, are provided by the interconnect 14. Obviously, the exemplary netlist 20 has been substantially sj.mplified for the purposes of this illustration.

In most existing architectures, illustrated in Fig. 2, global links connectivity remains fixed for the duration of the emulation. For example, six global links 24a-f are allocated to six pins of the FPGA chip 12, which are connected to six physical wires 15a-f of the interconnect 14. Each emulated gate is mapped to one FPGA equivalent gate and each emulated signal is allocated to one pin of the FPGA. Thus, for a logic partition block 22 to be feasible, the partition gate and pin requirements must be no greater that the available FPGA resources. This constraint yields the following possible scenarios for eac partition 22:
1. Gate limited: no unused gates, but some unused pins.
2. Pin limited: no unused pins, but some unused gates.
3. Not limited: unused FPGA pins and gates.
4. Balanced: no unused pins or gates.
For mapping typical netlists onto commercially available FPGA chips, partitions are predominately pin limited—all available gates cannot be utilised due to a lack of pin resources to support them. Low utilization G gate resources increases both the number of FPGAs in the network and the speed at which the emulation system 5 can be run. Pin limits set a hard upper bound on the maximum usable gate count of the FPGA.
More recently in U.S, Pat. App. Serial No. 08/042,151, a virtual wiring scheme has been demonstrated to overcome pin limitations in FPGA-based logic emulators. Fig. 3 shows an example of six global links 24a-f, having the same source and destination FPGA 12, 12' and sharing a^single physical, wire I5x of the interconnect 14. The six global

links 24a-f are time division multiplexed onto the single physical wire 15x by two pipe-line shift loops 30a, 30b. A virtual wire represents a global link connection between a source of a global link 24a-f on the source FPGA 12 and the destination FPGA 12'. These virtual wires increase available off-chip communication bandwidth by allocating the resources of a wire 15x among multiple global link signals (logical wire).
Virtual wires effectively relax pin limitations. Further, although the supporting logic, shift loops 30a, 30b, 30'a, 30'b, may contribute to propagation delays across FPGA chips 12, emulation speeds can be actually increased due to a reduction in system size.
In order to coordinate the movement of the signals through the shift loops 20, the network 8 has an internal pipe-line or virtual clock 56. As illustrated in Fig. 4, auring each period T^ of an emulation clock 52 of the target system 4, the pipe-line clock 56 undergoes multiple transitions. The pipe-line clock 56 is not entirely periodic within each period of the emulation clock T^. Instead, each period T^ is divided into intervals and phases. A time interval T,y„c ^t the beginning of the emulation clock period T^ is a time required to synchronizf to the free running target system clock 52. The length of the T,yo Tp - T„ where T^
before the end of the target clock before the next targer clock period transition. The target system clock period must be long enough so that T^^, > Tp.
The interval of the emulation clock period T^ between the end of the T,y„ interval and before the beginning of the T^^, interval is divided into three phases, 54a, 54b, 54c. Each of these phases corresponds to a time interval necessary for logic calculations to occur within the source FPGA chip 12, and then have the resulting global links clocked through the shift loops 30a, 30b to the destination FPGA chip 12'. Since the emulation clock T^ is only broken up into the three phases in the particular embodiment shown, an output signal from the FPGA array 10 to the target system can not be the result of calculations with a combinational path across greater than three FPGA chips 12.
Each of the phases 54a, 54b, 54c is divided into a computational interval T^ompi-s and a communication interval Tcommi-3- The Computational interval T,o„,p,.3 is the time delay associated with the longest propagation delay of a combinatorial signal across any one of the FPGA chips 12 in the array 10. The communication portion Tcommi-i then corresponds to the time necessary to transmit the global links across chip boundaries through the interconnect 14. Only during the communication portions T,o„„„,.3 does the pipe¬line clock 56 undergo its transitions since it is needed here to clock the pipe-line shift registers 3 0 to time multiplex the global links 24a-24f. Specifically, global links appear at exemplary pins A-D at some of the pipe-line clock transitions and experience various propagation delays 55 to the destination FPGA 12'.

The above-described phase-based approach for organizing the computation within each FPGA chip 12 and communication across inter-FPGA chip boundaries results substantial advantages over other prior art systems as generally enumerated above. Clocking during the communication intervals T^onTOi.3 allows the time multiplex: of the global links 24a-f transmitted between the chips effectively creating additional communication paths beti the chips. Closer inspection of Fig. 4, however, expos( certain inherent inefficiencies of this approach.
First, as described earlier, the computation porti' of each phase must be at least as long as the longest combinatorial signal propagation delay with respect to every one of the FPGA chips 12 in the array 10. This i because all the combinatorial signals in every one of t FPGAs must have fully propagated through all of the gat within the FPGA and experienced the delays associated w Gach one of those gates before the pipe-line shift registers 30 are -fully loaded to begin clocking the glo links across the interconnect 14. As a result, the computational intervals T In a similar vein, the communication interval T^onuni each phase 54a-c is also limited by the longest propaga delays across the interconnect 14 between the FPGA chip 12. The pipe-line clock periods Tp can be tightly packi against each other to the extent that wires over which first signal propagates can be reused by a second signa even before the first signal has reached its destinatic The net time of the three communication intervals T,o„„,,.3 however, determined by the longest communication delays between the_FPGA chips 12 since T.^mn, must be long enoug

enable every global link 24a-f to reach its destination FPGA before the next computation interval T.^^p. Consequently, the speed of the FPGA array 10 and consequently the shortest emulation clock period T^ is limited by the longest communication delays within the interconnect 14.
Turning now to Fig. 5, a timing diagram of a router activity profile is shown for the present invention. Here rather than breaking the emulation clock period T^ into discrete phases and then dividing each of these phases into a computational interval and a communication interval, inter-chip communication and intra-chip computation are both packed as tightly as possible in order to minimize idle time 62 and thus maximize the emulation clock frequency. Thus, computation and communication occur simultaneously thereby decreasing the time for an emulation clock cycle. Moreover, logic overhead to support virtual wires is smaller because fewer pipeline clock periods are present in an emulation clock period.
One way of visualizing the invention is that the logic combinatorial signals are allowed to propagate through the logic contained in a chip 12 asynchronously, i.e., whenever available. When these individual signals reach the chip boundaries as global links 24a-f, they are synchronously clocked out the chip pins through the interconnect 14 to the next chip. Thus, each signal does not wait for every other global link to reach this stage—provided, of course there is no congestion at the chip pins.
The static routing conducted according to the principles of the present invention can best be understood by first considering an exemplary logic design, simplified

for the purposes of this explanation, that has been programmed into an emulation system 5 of the present invention illustrated in Fig. 6. As generally described previously, FPGA chips 12a-i are electrically connected via an interconnect 14. The interconnect 14 is composed of channel paths cp^^. For example, FPGA chips 12d and 12e are connected via channel path cp^^. A number of conductors n make up each of these channel paths cp^^y. In one example embodiment n=8. The top most FPGA chips 12a, 12b, 12c are additionally connected via a bus comprised of 2 x n conductors, or 16 in the example embodiment. A pipeline or emulation clock 56 generates the pipeline or virtual clock signal, which is provided to each FPGA chip 12a-i.
Each of the FPGA chips 12a-i has a portion of the respective configurable logic gates that is configured to perform the logic function of a logic partition block 22 of the netlist. Additionally, another portion of the logic 30 is configured to time-multiplex the global links. In more detail, these multiplexing logic portions 30 time division multiplex the transmission of global links, e-f,, e-f2, for example, through the channel paths cp^f between FPGA chips 12e, 12f. When the ultimate destination of a global link is not an adjacent FPGA through the interconnect, see global link b-f, then the links are transmitted though intermediate chips, 12c, to cover the long hop between 12b and 12f. As a result, global links may pass through intermediate FPGAs where they are re-multiplexed on a route between a source and destination FPGA.
The time-multiplexing logic 30 of each FPGA chip 12a-i is configured to perform the function of the pipe-line shift registers illustrated is Fig. 3, Alternatively, as illustrated in Fig.- 7a, a multiplexer arrangement can be

implemented. Here, a multiplexer 405 receives global links 24a-24d which are selectively transmitted through an FPGA chip pin onto line 15x in response to a selection signal Sel. The multiplexed global links are received at the destination FPGA 12' and demultiplexed by flip-flops I1-I4, which function as the shift registers 30'a and 30'b of Fig. 3. These flip-flops are clocked by the pipeline clock 56 and read by activating respective enable signals en 24'a-en 24'd.
Referring to Fig. 7b, a hazard or glitch tolerate embodiment of the multiplexer arrangement is illustrated. Commonly, in many multiplexer logic constructions, voltage transients can be generated on the multiplexer output in response to a level change in one of the input signals, even when that input signal is currently not selected by the multiplexer. Hazards can be eliminated either by implementing: 1) hazard-free multiplexer designs, or 2) flip flops to isolate the multiplexer from the input signals-. Fig. 7b achieves the multiplexer 405 isolation by including flip flops or latches l,oo - lioj- Each of these flip flops receives a different global link 24a-24d and provides the corresponding global link to the multiplexer 405 in response to the pipeline clock signal 56 and the corresponding enable signal enlOO-enl03.
Fig. 7c illustrates a third implementation of the multiplexer arrangement designed to increase pipeline clock frequency. Typically, the pipeline clock period is chosen as the sum of the propagation time through the logic on the source FPGA, inter-FPGA crossing time, i.e., the propagation time through the interconnect to the destination FPGA, and the set up time at the inputs at the fl^ip-flops or latches at the destination FPGA. A^ faster

pipeline clock 56 can be used if a flip-flop I202 is placed at the output of the multiplexer 405 on the source FPGA 12. When the flip-flop I202 is implemented, the pipeline clock period can be decreased to the sum of the inter-FPGA crossing time, that is a propagation time through the interconnect, plus the set up time at the destination FPGA 12'. It should be noted, however, that in the case of long combinational paths on the source FPGA 12, multiple pipeline clock cycles 56 can be allocated to account for these intra-FPGA propagation times.
Referring to Fig. 6b, the internal logic organization of FPGA 12e is more completely illustrated. Generally, logic partition block 22e receives a number of global links d-ei.3 and h-e,2. From these global links, the logic partition block 22e generates a number of outgoing global links e-bi2, e-f,2, and e-h,2, which are a function of the particular set of ]ngic gates programmed into the logic partition block 22. For example, parent global links d-ei.j along with h-e, are logically combined by gates gl and g2 to generate combinatorial signal and global net gn^f^ which is divided off into three children, global links e-bj, e-f, and e-h2.
Another, global link/ b-f, is simply passing through FPGA 12e to its destination FPGA 12f. Consequently, b-f is not implicated in logic partition block 22e but passes directly from multiplexing logic portions 30^.^ to 30^f. It should be noted, however, that b-f generally should not be routed through FPGA 12e without some buffering in a flip-flop or equivalent logic structure. This feature is necessitated by the fact that pin resources of the ultimate source and destination FPGAs, here 12b and 12f, and pin resources of the intermediate EEGA 12e can not, or should

not, be tied up for the time necessary for this global link b-f to propogate between 12b and 12e. Unless the global link is hard routed, its path from 12b should be isolated at the intermediate FPGA 12e by a flip-flop. This requirement can be satisfied if a flip-flop is part of the demultiplexing logic 30^.^, as shown for example in Fig. 7b, or by adding a flip-flop Ijs^, as shown.
Referring to Fig. 6c, according to the present invention, the inter-chip transmission and the intra-chip computation is not segregated into discrete phases. Instead, the global link e-f, is scheduled to be transmitted to FPGA chip 12f by the multiplexing logic 3 0^.f once this combinatorial signal is ready. More specifically, if global links d-e,_3 and h-e^ are termed the parents of global link e-f,, then global link e-f, is scheduled for transmission by the multiplexing logic 30^_f on channel paths cp<.f comptime after last one of the parents has been received into logic partition block global link e-f appears on channel path cp f during communication time interval delineated by pipeline clock comptimej..fi refers to propagation delay associated with gates gl and g2. in short inter-chip scheduling transmission is formulated response receipt that respective a corresponding required for combinatorial signals propagate through> In the prior art system described in connection with Fig. 4, parent global links d-e,.3 and h-e, would be received at gates gl and g2, respectively, sometime within the interval T-,„,^, of phase 1 since they must be multiplexed

across channel path cp^^. Global link e-f, could reach its ultimate value while the time is still within T„,^, if the parent global links are received early enough within this interval, especially since the propagation delay associated with only two gates, gl, g2, will be very short. Not until the end of time interval T^on,p2 will the child global link e-f, be assumed to be ready for transmission. As a result, transmission of the global links between chips in response to discrete phases yields substantial idle time and inefficient use of the FPGA communication speed and bandwidth.
Returning to the description of the present invention with respect to Fig. 6c, the only additional delay experienced by the global link e-f,, other than that inherent in the logic, is a time associated with the multiplexing logic 30^f, buffertime e-f,. As stated previously, the propagation of combinatorial signals through the logic of the logic partition blocks 22 is, for the most part, asynchronous. That is to say, the combinatorial signals propagate through the various gates and the final global link, e-f,, for example, settles to its ultimate value only after the passage of the comptime for the particular logic involved. The transmission of the global links between the FPGA chips 12, however, must occur synchronously in response to the pipe-line clock 56 so that the destination FPGA will know exactly when to expect the links. As a result, the earliest time interval after the signal becomes ready and can be transmitted across the channel path cp^f is the next transition of the pipe-line clock 56.
The buffering time may be longer if multiple global links are ready for transmission at essentially the same

time. For example, assume both global links e-f, and e-fj are received at the multiplexing logic 30^f simultaneously and the channel path cpj,f consists of only a single conductor. Even though both signals are ready, one of these global links will have to be buffered at the input 1 the multiplexing logic 30^f until the next transition of the pipe-line clock 56. This delay, however, is not uniqi to this invention but is also found in the prior art. Bui the problem is exacerbated in the prior art since the communication of all the global links must happen during the communication interval T^omm- Here, the communication interval is effectively spread over the entire length of the emulation clock period T^ by virtue of the fact that i is not limited to specific time intervals, thereby alleviating congestion.
The principles of the present invention are implemented during the compiling of the logic netlist of the logic design to be emulated as shown in Fig. 8. More specifically, the input to-a virtual wire compiler running on the host workstation 2, for example, consists of a logic netlist of the emulated logic design, target FPGA device characteristics-, and the interconnect topology of the network 8. The netlist is usually generated with a hardware description language or schematic capture program.
The logic netlist 105 is first translated and mapped to a library of FPGA macros, step 110. This operation is commonly performed before partitioning so that partition gate counts will accurately reflect the characteristics of the target FPGAs. Logic optimization tools can also be used at this stage to optimize the netlist for the architecture by considering the system as one large FPGA. After mapping the netlist to the target architecture, the

netlist must be partitioned (step 120) into the logic partition blocks that can fit into the individual FPGAs of the array.
Because a combinatorial signal may pass through several FPGA partitions as global links during an emulated clock cycle', all signals will not be ready to schedule at the same time. This is best solved by only scheduling a given global link to leave a logic partition block once all of that link's parents are scheduled (step 130). To determine dependencies, the logic netlist is analyzed by backtracing from partition outputs, either output global links or output signals to the target system, to determine on which partition inputs, either input links or input signals from the target system, the outputs depend. In backtracing, it is assumed that all outputs depend on all inputs for gate library parts, and no outputs depend on any inputs for latch or register library parts. If there are no combinatorial loops that cross partition boundaries, this analysis produces a directed acyclic graph, used by-a global router. If there are combinatorial loops, then the loops can be hardwired or implemented in a single FPGA.
Individual FPGA partitions must be placed into specific FPGAs (step 140). An ideal placement minimizes system communication, requiring fewer virtual wire cycles to transfer information. A preferred embodiment first makes a random placement followed by cost-reduction swaps and then optimizes with simulated annealing. During global routing (step 150), each global link is scheduled to be transferred across the interconnect 14 during a particular period of the pipe-line clock. This step, however, is discussed in more detail below.

Once global routing is completed, appropriately-sized multiplexers or shift loops 30 and associated logic are added to each partition to complete the internal configuration of each FPGA chip 22 (step 160). At this point, there is one netlist for each FPGA chip 22. These FPGA netlists are then processed in the vender-specific FPGA place-and-route software (step 17 0) to produce configuration bit streams (step 195) . Technically, there is no additional hardware support for the multiplexing logic 30 which time-multiplex the global links through the interconnect 14: the array of configurable logic is itself configured to provide the support. The necessary "hardware" is compiled directly into the configuration of the FPGA-chip 22.
Returning, the global routing (step 150 of Fig. 8) is performed as more particularly illustrated in the flow diagram of Fig. 9. As a first step, global nets, representing the connections between the partitions of each FPGA chip 12, are classified as either hard or virtual in dependence upon whether the particular global net can be routed virtually, time-division multiplexed across the interconnect 14, or must be hard routed, i.e., an FPGA chip pin and conductor of the interconnect 14 must be dedicated to the transmission of this signal (step 280). Most global nets will be classified as virtual as, for example, global net gn^fe of Fig. 6b. Some nets, however, will be on asynchronous paths that can not be virtually routed since their scheduling is not predictable at compile-time. Such hardwired links are depicted as links a-b, b-c of Fig. 6a, as evidenced by the lack of shift registers along their paths. Hardwiring can also be undertaken if surplus pins are available so that the overhead of multiplexers and/or shift registers can be reduced.

The hard and virtual global nets are then converted into global links representing inter-FPGA chip connections but having only a single source FPGA and only a single destination FPGA. As illustrated in Fig. 10a, a global ne gn^yj connecting one source logic partition block 22w and three designation blocks 22,.^ is converted into three global links w-x, w-y, w-z in Fig. 10b. Each one of these resulting links retains the hard or virtual classificatior of the original net.
In the next step 285, the hard global links are assigned to dedicated shortest path conductors of the channel paths cp between a source and destination FPGA. I illustrated in Fig. 11, a source 12s and destination FPGA 12d are connected via channel path cp.^j. The communicatio: resources of this channel path can be broken down into channel path conductors 15 corresponding to connections between a pin on the source FPGA 12s to a pin on the destination FPGA 12d (hardwire) and then virtual time slo^ corresponding to-available time multiplexing positions on which a global link can be transmitted. In the context o hard routing, an entire conductor 15 of the channel path must be dedicated due to the fact that the signal will be for example asynchronous, and consequently can not be restricted to a particular virtual time slot.
This hard routing step can take advantage of conventional hard routing techniques such as iterative route and rip-up trials and maze routing techniques. Preferably, however, it can be implemented as a simple shortest path routing procedure. This simplification is permissible since most prior art routing procedures must hard route all global links. Here, only a fraction of th global links must be hard routed, only those-which are

asynchronous or in some other way unpredictable. Then, because most signals can be virtual routed, the number of global links that can be routed is not limited by physical pin constraints.
Shortest path computations for the hard routing procedures are modeled on a graph of vertices and directed edges as shown in Fig. 12. Each vertex v„ represents a single FPGA chip 12 in the network 8. Directed edges, e„, which connect neighboring FPGA vertices, represent channel paths. Each directed edge e„ has an associated weight which, in the hard routing procedure, is used to represent the level of congestion on the corresponding channel path cp. In the preferred scheme, the edge's weight is one (1) if the channel path's hard link availability is true and infinite otherwise. A single-pair shortest-path problem is solved by summing the edge weights along each channel path for potential routes between the source and destination FPGA. In this problem, a weighted, directed graph G = (V,E) with weight function w for each edge is given. The weight of a path p - (VQ, u,,...,Uk) is the sum of the weights of its constituent edges:

The shortest-path weight from u to v by:

if a path exists from u to u, else


A shortest path from vertex u to i^ is defined as any path with weight aj{p) = d(u,u). The objective function of the single-pair shortest-path problem is to find a shortest path from u to u for given vertices u and v. In short, the shortest path is defined as the path with the least total edge weights between the source and destination FPGA.
Referring to Fig. 13, the hard routing procedure can be described in the context of a flow diagram. In step 310, a graph data structure such as that illustrated in Fig. 11, is initialized by allocating a vertex for every FPGA in the array 10. Then for each channel path connecting the FPGAs, a directed edge is assigned and initialized to value of 1 for the edge weight.
Each global link that is to be hard routed is consecutively taken up and the shortest path between the source and destination FPGA is determined using Dijkstra's algorithm on the graph data structure (step 320). The Dijkstra's algorithm implemented in the present invention is described in Introduction to Algorithms, MIT Press, Cambridge, Massachusetts, 1992, by Gormen, et al. v^hich solves single-pair shortest-path problems for non-negative edge weights. Here, since all non-infinite weights are unity, we replace the priority queue in Dijkstra's algorithm with a simple first in/first out buffer, thereby lowering the execution time for the algorithm. More sophisticated implementations could go back and rip up previously routed paths in the event that no available path between the source and destination FPGAs is found. Once the shortest path has been returned, this path is reserved in step 330 by incrementing a variable holding the use of this path. A particular channel path conductor is reserved

for the hard routed link. In addition, the edge weight is updated to reflect the assignment of the global link in step 340. In the preferred implementation, the edge weight is unity unless the channel is unavailable because the channel hard use becomes equal to the channel width, and then the edge weight is set to infinity.
Returning to Fig. 9, routing of the virtual global links occurs in step 290 after the hard routing procedure. As more specifically illustrated in Fig. 14, the link depth of each global link is calculated (step 350). The link depth refers to the minimum number of pipe-line clock periods that must follow the departure of a given global link for that link and the minimal set of other global links (that link's children) which must be routed strictly after the given link for correct synchronous operation. More simply, the depth computation exposes the set of related or dependent links that will take the longest time to propagate through the. network S taking into account both the time necessary to multiplex the global links on the interconnect 14 and time necessary for the combinatorial signals to propagate through each FPGA chip 12, the logic delay comptime across a partition.
Once the depth calculations are made for each global link, the links are sorted in step 355 according to depth to ensure that the deepest links will be routed first and also to ensure that the global links from which any given global link depends will be routed before that global link. Finally, the sorted global links are virtually routed (step 360) .
For the purposes of virtual routing, it is convenient to think of each channel's routing resource as a two dimensional array of "routing slots" as in Fig. 11. A row

corresponds to a pin and each column to a pipeline clock period. At the time the virtual routing procedure is called, some channel pin slots, i.e., a entire row in Fig. 11, will be occupied by hard routed global links. These occupied pin slots will be reflected in a channel/hard use count. An additional counter, the channel/virtual use count represents the number of channel path conductors used by the virtual router at a particular timeslot. These counters are used to satisfy the channel width constraint.
The virtual routing is performed for each global link as the main global router procedure iterates across the list of sorted scheduling tokens. The ready time of a given link is determined as a function of, typically the sum, its parents arrival time in the relevant logic partition block 22 and the propagation delay of the partition logic. We assume that comptime, the logic propagation delay of each partition logic path, is a technology specified constant or is estimated from the partition logic critical path length, and can range from 0 pipeline cycles to many cycles. An initial departure time of the link to its destination FPGA chip is set to equal the link's ready time. The-router finds a path from the link's source to destination FPGA leaving at this tentative departure time. If there are no available paths, the departure time is incremented to the next period of the pipe-line clock 56 and this step is repeated until an available time slot is found. In contrast, the prior art algorithm would have to wait for the commencement of an entirely new phase at this point. As in the case of the hard routing, virtual routing is implemented using the shortest path algorithm. Each edge also has an associated congestion weight, which is a function of time. In the simplest scheme, the edge's weighjt is 1 at time t if that channel's virtual channel availability is true at time t

and 00 otherwise. The virtual link path is determined according to a modified Dijkstra's algorithm.
Experimental Results and Analysis
The pipe-lined static router described above was implemented by developing the global routing portion of the 'Virtualizer' compilation system under development at Virtual Machine Works, Inc. This router is coded in the C++ programming language and runs in a few minutes on a SPARC 2 workstation for typical designs.
To evaluate the benefits of this new router, two complex designs. Palindrome (PAL128) and Sparcle, were successfully routed. Palindrome is a 15K gate systolic circuit for detecting strings that read the same both forward and backwards - for example 'AHA'. Sparcle is an 18K Sparc microprocessor with modifications to enhance its usefulness in a multiprocessor environment. These designs were routed with both the inventive router and the prior art phase-based router as described in connection with Fig. 4.
Ideally, direct comparison of routing results is preferable. The inventive compiler was targeted at both the Clos-like RIPIO FPGA and two dimensional mesh topologies. The prior art compiler is targeted at only two dimensional mesh topologies. All routes were latency limited, that is the emulation period T, was determined by the total number of FPGA hops encountered by signals as opposed to the amount of congestion for a given channel. Therefore, accurate estimation of the results of using the prior art router on the RIPIO topology is possible from the routing statistics. As described by the present inventors in "Virtual -Wires: Overcoming Pin Limitations in FPGA-

based Logic Emulators", in Proceedings IEEE Workshop on FPGA-based Custom Computing Machines, pages 14 2-151, Napa, CA, April 1993. IEEE. January 1993, for latency-dominated routes, the total number of timesteps, N, for the prior art router is:
N = L X D where L is the length of the longest path in the network dej^fendency graph in terms of FPGA partitions, and D is the network diameter. D for the RIPIO is 2, L for the palindrome is 3. For the inventive router, this eguation becomes:
where dcavg is the average distance in terms of FPGA crossings between source and destination FPGAs of routes along the critical path. For estimation, it can be assumed that dcavg - davg, the average distance of all routes. dcavg is typically much smaller than D the network diameter.
Table 1 shows the corresponding actual and estimated number of timesteps for routing both Palindrome and Sparcle on both the RIPIO topology and 2D meshes. The actual numbers were reported directly from the respective routers. The estimates for the prior art router were derived using the respective equations for N. For example, to estimate the prior art timestep count for Palindrome 128 on the RIPIO network diameter D=2 giving N = 6. The timestep count of the present router for Sparcle on a 4x5 mesh, we multiple L =10 by the average distance dcavg= 2,8 giving N « 28. Note that dcavg is close to davg =2.33 and both are much less than D, which is 8. The critical path and distance averages are reported by both routers. Note that it is assumed that computation takes zero time (i.e., comptime less than one timestep) for this comparison.

Taking computation time into account does not materially impact these results.
Design Topology MIT Phase-based VMW Pipe-lined
Router Static Router
PAL128 4x4 mesh 21 steps (1.19 MHZ) 6 steps (4.17 MHZ)*
RIPPIO 6 steps (4.17 MHZ)* 4 steps (6.25 MHZ)
Sparcle 4x5 mesh 88 steps (0.28 MHZ) 28 steps (0.96 MHZ)
RIPPIO 20 steps (1.25 MHZ)* 12 steps (2.08 MHZ)
Table 1: Number of VirtualWire Timesteps (Emulation Speed assuming a 25 MHz Timestep) *estimated
The results in Table 1 show that the inventive pipe¬lined static router performs better than the prior art phase-based router for all cases. The new router speeds up execution by roughly D/davg, ranging from 1.5X - 3. 5X for these cases.
The experimental examples.are all latency-limited. In addition to improvements for latency-limited designs, improvements in the bandwidth-limited cases are also expected because:
Communication is overlapped with computation, Phase startup and termination overheads are avoided, and
Scheduling congestions can be more easily avoided with fine-grain schedules
In the prior art phase-based approach, at the end of each phase the entire communication network was idle while computation took place. This 'dead' time, which may be one or more timesteps, represents wasted bandwidth. Phase startup and termination overhead were caused by the phase

barriers. No communication paths could cross phases, thus each multiple-hop path must be filled and drained each phase, wasting approximately n2/2 routing timesldts for each path in each phase, where n is the path length. Finally, locking down paths for the duration of phases causes scheduling congestions, which the new router avoids.
While this invention has been particularly shown and describe with references to preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims. For example, while the preceding 17 description has been particular to emulator design, those skilled in the art will understand that the principles of the invention are applicable to simulators, hardware accelerators, or any configurable logic application confronting pin and/or latency limitations.


WE CLAIM
A configurable logic system programmed to model a logic design, the system comprising an array of programmable logic modules each configured to pertbnn a partition block of the logic design, and a module interconnect for each programmable logic module providing connections between the modules of the array enabling transmission of global links between the partition blocks of the modules, at least one of modules having means to time division multiplex the global links transmitted over the interconnect to another one of the modules, which has means to demultiplex the global links, the modules having transmitting means to transmit individual ones of the global links over the module interconnect at scheduled time intervals determined in response to ready times of the individual links and the modules having receiving means to receive the global links from the module interconnect based on the scheduled time intervals.
The configurable logic system as claimed in claim 1, wherein a configurer is provided for configuring each one of the modules to perform the partition block of the logic design and the time division multiplexing of the individual ones of the global links over the module interconnect at scheduled time intervals determined in response to the ready times of the individual global links.
The confirgurable logic system as claimed in any of the preceding claims, wherein the logic system comprises determining means for

determining the ready times of individual global links in response to receipt of parent global links affecting a logic value of the individual global links.
The configurable logic system as claimed in any of claims 1 and 2. wherein the logic system comprises determining means for determining the ready times of individual global links in response to propagation delays for combinatorial signals across partition blocks generating the individual global links.
The configurable logic system as claimed in any of the preceding claims, wherein the modules comprises logic partition portions configured to logically model a corresponding partition block by generating the corresponding global links; and communication portions configured to time multiplex the global links generated by the logic partition portions for transmission over the interconnect between the modules.
The configurable logic system as claimed in claim 5, wherein a pipeline clock received by the communication portions of the modules is provided for defining time blocks for multiplexing the global links.
The configurable logic system as claimed in any of the preceding claims, wherein said connections provide long paths between programmable logic modules tor routing of the global links through intermediate programmable logic modules between source and destination programmable logic modules.

The configurable logic system as claimed in any of the preceding claims, wherein the programmable logic modules comprises flip-flops or registers for buffering global links until a path on the module interconnect becomes available.
The configurable logic system as claimed in any of claims 5 to 8, wherein the communication portions comprise pipeline shift registers.
The configurable logic system as claimed in any of claims 5 to 8, wherein the communication portions comprise multiplexers.
The configurable logic system as claimed in claim 10, wherein the communication portions comprise flip flops at the inputs to tlie multiplexers.
The configurable logic system as claimed in claim 10, wherein the communication portions comprise flip flops receiving outputs of the multiplexers.
The configurable logic system as claimed in any of claims 6 to 12, wherein the communications portions are configured to transmit individual global links over periods of the pipeline clock determined in response to a time of receipt of parent global links affecting a logic value of the individual global links.
The configurable logic system as claimed in any of claims 6 to 13,

wherein, the communications portions are configured such that the period of the pipeline clock: over which individual global links are transmitted is further determined in response to propagation delays across the logic partition portions for combinatorial signals generating the individual global links.
The configurable logic system as claimed in any of the preceding claims, wherein the modules are field programmable gate arrays.
A method for configuring a logic system as claimed in any of the preceding claims comprising compiling a netlist said compiling comprising (1) dividing the netlist into logic partition blocks to be loaded into programmable logic modules of an array, routing individual global links to be transmitted between the modules on an interconnect on time intervals defined by a clock signal; and determining the time intervals in response to receipt of parent global links affecting a logic value of the individual global links; and (2) configuring the logic system according to the compiled netlist.
The method as claimed in claim 16, wherein link depths of the global links are determined, link depths reterring to a number of other global links that must be routed after a given global link for correct operation; and priority to the routing of the global links is assigned in response to the link deptlis.
The method as claimed in claims 16 or 17, wherein the global links are separated into virtually routable global links and hard routable global

links; and only virtually routable global links which are to be transmitted between the modules in response to the clock signal are routed.
The method as claimed in any of claims 16 to 18, wherein the time intervals are determined in response to propagation delays across the logic partition blocks of the individual global links.
The method as claimed in any of claims 16 to 19, wherein the time ntervals are defined by a pipe-line clock.
The method as claimed in any of claims 16 to 20, wherein multiple periods of the pipe-line clock are allocated for the propagation delays across the logic partition blocks of the individual global links.
The method as claimed in either of claims 20 or 21, wherein a period of he pipe-line clock is detennined in response to a maximum propagation delay between programmable logic modules of the array.
'he method as claimed in any of claims 16 to 22, wherein the individual lobal links are routed along one or more shortest paths between a source nd destination module.
'he method as claimed in any of claims 16 to 23, wherein global links aving long paths between programmable logic modules are routed through intermediate programmable logic modules between source and estination programmable logic modules.

A configurable logic system programmed to model a logic design substantially as herein described with reference to figures 5 to 14 of the accompanying drawings.
A method for configuring a logic system substantially as herein described with reterence to figures 5 to 14 of the accompanying drawings.


Documents:

1484-mas-95 abstract.pdf

1484-mas-95 claims.pdf

1484-mas-95 correspondence others.pdf

1484-mas-95 correspondence po.pdf

1484-mas-95 description (complete).pdf

1484-mas-95 drawings.pdf

1484-mas-95 form-1.pdf

1484-mas-95 form-26.pdf

1484-mas-95 form-4.pdf

1484-mas-95 form-6.pdf

1484-mas-95 form-9.pdf

1484-mas-95 others.pdf

1484-mas-95 petition.pdf


Patent Number 193049
Indian Patent Application Number 1484/MAS/1995
PG Journal Number 35/2005
Publication Date 16-Sep-2005
Grant Date 24-May-2005
Date of Filing 16-Nov-1995
Name of Patentee VIRTUAL MACHINE WORKS, INC.
Applicant Address ONE KENDALL SQUARE, BUILDING 300 CAMBRIDGE, MASSACHUSETTS 02139
Inventors:
# Inventor's Name Inventor's Address
1 SELVIDGE, CHARLES W 41-43 AUBURN STREET, NO.1, CHARLESTOWN, MASSACHUSETTS 02138
2 DAHL, MATTHEW L 193 STEVENS STREET, MARLBOROUGH, MASSACHUSETTS 02090
3 AGARWAL, ANANT 66 GRIFFIN ROAD, FRAMINGHAM, MASSACHUSETTS 01701
4 BABB, JOHNATHAN ROUTE 1, BOX 211, RINGGOLD, GEORGIA 30736
PCT International Classification Number G06F9/455
PCT International Application Number N/A
PCT International Filing date
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 NA