scieee AI-readable full text Open interactive document viewer

Decomposition and technology mapping of speed-independent circuits using Boolean relations

Cortadella, Jordi,Kishinevsky, Michael,Kondratyev, Alex,Lavagno, Luciano,Pastor Llorens, Enric,Yakovlev, Alex

Abstract

This paper presents a new technique for decomposition and technology mapping of speed-independent circuits. An initial circuit implementation is obtained in the form of a netlist of complex gates, which may not be available in the design library. The proposed method iteratively performs Boolean decomposition of each such gate F into a two-input combinational or sequential gate G available in the library and two gates H/sub 1/ and H/sub 2/ simpler than F, while preserving the original behavior and speed-independence of the circuit. To extract functions for H/sub 1/ and H/sub 2/ the method uses Boolean relations as opposed to the less powerful algebraic factorization approach used in previous methods. After logic decomposition, the overall library matching and optimization is carried out. Logic resynthesis, performed after speed-independent signal insertion for H/sub 1/ and H/sub 2/, allows for sharing of decomposed logic. Overall, this method is more general than the existing techniques based on restricted decomposition architectures, and thereby leads to better results in technology mapping.

Full text

IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 9, SEPTEMBER 1999 1221 Decomposition and Technology Mapping of Speed-Independent Circuits Using Boolean Relations Jordi Cortadella, Member, IEEE, Michael Kishinevsky, Senior Member, IEEE, Alex Kondratyev, Senior Member, IEEE, Luciano Lavagno, Member, IEEE, Enric Pastor, and Alexandre Yakovlev, Member, IEEE Abstract—This paper presents a new technique for decomposition and technology mapping of speed-independent circuits. An initial circuit implementation is obtained in the form of a netlist of complex gates, which may not be available in the design library. The proposed method iteratively performs Boolean decomposition of each such gate F into a two-input combinational or sequential gate G available in the library and two gates H 1 and H 2 simpler than F , while preserving the original behavior and speedindependence of the circuit. To extract functions for H 1 and H 2 the method uses Boolean relations as opposed to the less powerful algebraic factorization approach used in previous methods. After logic decomposition, the overall library matching and optimization is carried out. Logic resynthesis, performed after speed-independent signal insertion for H 1 and H 2 , allows for sharing of decomposed logic. Overall, this method is more general than the existing techniques based on restricted decomposition architectures, and thereby leads to better results in technology mapping. Index Terms—Asynchronous circuits, Boolean relations (BR’s), logic decomposition, speed independence, technology mapping. I. INTRODUCTION SPEED-INDEPENDENT circuits, originating from Muller’s work [13], are hazard-free under the unbounded gate delay model. With the recent progress in developing efficient analysis and synthesis techniques, supported by computer-aided design (CAD) tools, the implementability of this subclass of circuits has become significantly more practical, bearing in mind the advantages of speed-independent designs, such as their greater temporal robustness and self-checking properties. The basic ideas about synthesis of speed-independent circuits from event-based models, such as signal transition graphs Manuscript received December 16, 1997; revised July 31, 1998. This work was supported by the ACiD-WG under Grant ESPRIT 21949, CICYT TIC 98-0410-C02-01 and 98-0949-C02-01, by Acci´ on integrada U.K. under Grant HB1997-0208, by the British Council Spain MDR under Grant 2463 (1998/99), and by EPSRC under Grant GR/K70175/L24038. This paper was recommended by Associate Editor F. Brglez. J. Cortadella is with the Department of Software, Universitat Polit´ ecnica de Catalunya, 08034 Barcelona, Spain. M. Kishinevsky is with the Strategic CAD Lab, Intel Corporation, Hillsboro OR 97124 USA. A. Kondratyev is with the Department of Computer Hardware, The University of Aizu, 965-80 Aizu-Wakamatsu, Japan. L. Lavagno is with the DIEGM, Universit´a di Udine, 33100 Udine, Italy. E. Pastor is with the Department of Computer Architecture, Universitat Polit´ ecnica de Catalunya, 08034 Barcelona, Spain. A. Yakovlev is with the Department of Computing Science, University of Newcastle upon Tyne, NE1 7RU Newcastle upon Tyne, U.K. Publisher Item Identifier S 0278-0070(99)06221-1. (STG’s) and change diagrams, are described, e.g., in [4], [6], and [10]. They provide general conditions for logic implementability of specifications into complex gates with arbitrary fanin and internal feedback. To achieve greater practicality, synthesis of speedindependent circuits has to rely on more realistic assumptions about implementation logic. Thus, more recent work has been focused on the development of logic decomposition techniques. It falls into two categories. One of them includes attempts to achieve logic decomposition through the use of standard architectures, such as the standard-C architecture mentioned below. The other group comprises work targeting the decomposition of complex gates directly, by finding a behavior-preserving interconnection of simpler gates. In both cases, the major functional issue, in addition to logic simplification, is that the decomposed logic must not violate the original speed-independent specification. This criterion makes the entire body of research in logic decomposition and technology mapping for speed-independent circuits quite specific compared with its synchronous counterparts. Two examples of the first category [1], [9] present initial attempts to move from complex gates to a more structured implementation. The basic circuit architecture includes Celements, acting as latches, and combinational logic, responsible for the computation of the excitation functions for the latches. This logic is assumed to consist of AND gates with potentially unbounded fanin and unlimited input inversions and bounded fanin OR gates. Necessary and sufficient conditions for implementability of circuits in such an architecture, called the standard-C architecture, have been formulated in [1], [9]. They are called monotonic cover (MC) requirements. The intuitive objective of the MC conditions is to make the first level (AND) gates work in a one-hot fashion with acknowledgment through one of the C-elements. Following this approach, various methods for speed-independent decomposition and technology mapping into implementable libraries have been developed, e.g., in [16] and [8]. The former method only decomposes existing gates (e.g., a three-input AND into two two-input AND’s), without any further search of the implementation space. The latter method extends the decomposition to more complex (algebraic) divisors, but does not tackle the limitation inherent in the initial MC architecture. The best representative of the second category appears to be the work of Burns [3]. It provides general conditions for speedindependent decomposition of complex (sequential) elements into two sequential elements, or a sequential and a combina- 0278–0070/99$10.00 1999 IEEE 1222 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 9, SEPTEMBER 1999 Fig. 1. General framework for speed-independent decomposition. tional element. Notably, these conditions are analyzed using the original unexpanded behavioral model, thus improving the efficiency of the method. This work is, in our opinion, a big step in the right direction, but addresses mainly correctness issues. It does not describe how to use the efficient correctness checks in an optimization loop, and does not allow the sharing of a decomposed gate by different signal networks. The latter issues were successfully resolved in [8], but only within a standard architecture approach. Technology mapping for circuits working in fundamental mode [17] can be achieved by deriving a hazard-free twolevel sum-of-products [14] and obtaining a multilevel form by hazard-nonincreasing transformations [18]. However, these transformations cannot be generally applied for the decomposition of speed-independent circuits without introducing new hazards. In [15], technology mapping for speed-independent circuits is done by merely identifying sets of simple logic gates that can be implemented as a complex gate, but no logic decomposition is performed when a function cannot be implemented as a complex gate. In our present work, we are considering a more general framework which allows the use of arbitrary gates and latches available in the library to decompose a complex gate function, as shown in Fig. 1. In that respect, we are effectively making progress toward the more flexible second approach. The basic idea of this new method is as follows. An initial complex gate is characterized by its function . The result of decomposition is a library component designated by and a set of (possibly still complex) gates labeled , , , . The latter are decomposed recursively until all elements are found in the library and optimized to achieve the lowest possible cost. We, thus, by and large put no restrictions on the implementation architecture in this work. However, as will be seen further, for the sake of practical efficiency, our implemented procedure deals only with the two-input gates and/or latches to act as -elements in the decomposition. The second important change of this work compared to [8] is that the new method is based on a full scale Boolean decomposition rather than just on algebraic factorization. This allows us to widen the scope of implementable solutions and improve on area cost. Future work will tackle performance-oriented decomposition. Our second goal in generalizing the C-element-based decomposition has been to allow the designer to use more conventional types of latches, e.g., D-latches and SR-latches, instead of C-elements that may not exist in conventional Fig. 2. An example of (a) STG, (b) SG, and (c)–(e) their implementation (benchmark hazard.g). standard-cell libraries. Furthermore, as our experimental results show (see Section VI), in many cases the use of standard latches instead of C-elements helps improving the circuit implementations considerably. The power of this new method can be appreciated by looking at the example hazard.g taken from a set of asynchronous benchmarks. The original STG specification and its state graph are shown in Fig. 2(a) and (b). The initial implementation using the “standard C-architecture” and its decomposition using two input gates by the method described in [7] are shown in Fig. 2(c) and (d). Our new method produces a much cheaper solution with just two D-latches, shown in Fig. 2(e). Despite the apparent triviality (for an experienced human designer!) of this solution, none of the previously existing automated tools have been able to obtain it. Also note that the D-latches are used in a speed-independent CORTADELLA et al.: DECOMPOSITION AND TECHNOLOGY MAPPING OF SPEED-INDEPENDENT CIRCUITS 1223 fashion, and are thus free from meta-stability and hazard problems.1 The paper is organized as follows. Section II introduces the main theoretical concepts and notation. Section III presents an overview of the method. Section IV describes the major aspects of our Boolean relation (BR)-based decomposition technique in more detail. Section V briefly describes its algorithmic implementation. Experimental results are presented in Section VI, which is followed by conclusions and ideas about further work. II. BACKGROUND In this section we introduce theoretical concepts and notation required for our decomposition method. First, we define state graphs (SG’s), which are used for logic synthesis of speed-independent circuits. The SG itself may of course be generated from a more compact, user-oriented model, such as the STG. The SG provides the logic synthesis procedure with all the information necessary for deriving Boolean functions for complex gates. Second, the SG is used for a propertypreserving transformation, called signal insertion. The latter is performed when a complex gate is decomposed into smaller gates, and the new signals must be guaranteed to be speedindependent, i.e., hazard-free in input/output mode using the unbounded gate delay model. A. State Graphs and Logic Implementability An SG is a labeled directed graph whose nodes are called states. Each arc of an SG is labeled with an event, that is a rising or falling transition of a signal in the specified circuit. We also allow notation if we are not specific about the direction of the signal transition. Each state is labeled with a vector of signal values. An SG is consistent if its state labeling is such that: in every transition sequence from the initial state, rising and falling transitions alternate for each signal. Fig. 2(b) shows the SG for the Signal Transition Graph in Fig. 2(a), which is consistent. We write if there is an arc from state (to state ) labeled with The set of all signals whose transitions label SG arcs are partitioned into a (possibly empty) set of inputs, which come from the environment, and a set of outputs or state signals that must be implemented. In addition to consistency, the following two properties of an SG are needed for their implementability in a speed-independent logic circuit. The first property is speed-independence. It consists of three parts: determinism, commutativity and output-persistence. An SG is called deterministic if for each state and each label there can be at most one state such that An SG is called commutative if whenever two transitions can be executed from some state in any order, then their execution always leads to the same state, regardless of the order. An event is called persistent in state if it is enabled at and 1For example, all transitions on the input must be acknowledged by the output before the clock can fall and close the latch. Thus, there is no problem with setup and hold times as long as the propagation time from D to Q is larger than both setup and hold times, which is generally the case. Fig. 3. Event insertion scheme: (a) before insertion and (b) after insertion. remains enabled in any other state reachable from by firing an event different from . An SG is called output-persistent if its output signal events are persistent in all states and no output signal event can disable input events. Any transformation, such as insertion of new signals for decomposition, if performed at the SG level, may affect all three properties. The second requirement, complete state coding (CSC), is a necessary and sufficient condition for the existence of a logic circuit implementation. A consistent SG satisfies the CSC property if for every pair of states , such that , the set of output events enabled in both states is the same (the SG in Fig. 2(b) is output-persistent and has CSC). CSC does not however restrict the type of logic function implementing each signal. It requires that each signal is cast into a single atomic gate. The complexity of such a gate can however go beyond that provided a concrete library or technology. The concepts of excitation regions and quiescent regions are essential for transformation of SG’s, in particular for inserting new signals into them. A set of states is called an excitation region (ER) for event [denoted by if it is the set of states such that The quiescent region (QR) [denoted by of a transition , with excitation region , is the set of states in which is stable and keeps the same value, i.e., for , is equal to one(zero) in . An example of an ER and two examples of QR’s are shown in Fig. 2(b). B. Property-Preserving Event Insertion Our decomposition method is essentially behavioral—the creation of new signals at the structural (logic) level must be matched by an insertion of their transitions at the behavioral (SG) level. Event insertion is an operation on an SG which selects a subset of states, splits each of them into two states and creates, on the basis of these new states, an excitation region for a new event. Fig. 3 shows the chosen insertion scheme, analogous to that used by most authors in the area [19]. We shall say that an inserted signal is acknowledged by a signal ,if is one of the signals delayed by the insertion of . The same terminology will be used for the corresponding transitions. For example, acknowledges in Fig. 3. State signal insertion must preserve the speed-independence of the original specification. The events corresponding to an inserted signal are denoted , , , or, if no confusion occurs, simply by . Let be a deterministic, commutative SG and let be the SG obtained from by inserting event . We say that an insertion state set in is a speedindependence preserving set (SIP-set) iff: 1) for each event in ,if is persistent in then it remains persistent in 1224 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 9, SEPTEMBER 1999 Fig. 4. Possible violations of SIP conditions. , and 2) is deterministic and commutative. The formal conditions for the set of states to be a SIP-set can be given in terms of intersections of with the so-called state diamonds of SG [5]. These conditions are illustrated by Fig. 4, where all possible cases of illegal intersections of with state diamonds are shown. The first (rather inefficient) method for finding SIP-sets based on a reduction to the satisfiability problem was proposed in [19]. An efficient method based on the theory of regions has been described in [5]. Assume that the set of states in an SG is partitioned into two subsets which are to be encoded by means of an additional signal. This new signal can be added in order to either satisfy the CSC condition, or to break up a complex gate into a set of smaller gates. In the latter case, the new signal represents the output of the intermediate gate added to the circuit. Let and denote the blocks of such a partition. For implementing such a partition we need to insert transitions of the new signals in the border states between and . The input border of a partition block , denoted by , is informally the subset of states of by which is entered. We call well-formed if there are no arcs leading from states in to states in . If a new signal is inserted using an input border, which is not well-formed, then the consistency property is violated. Therefore, if an input border is not well formed, its well-formed speed-independent preserving closure can be constructed, as described by the algorithm presented in [7]. The insertion of a new signal can be formalized with the notion of I-partition ([19] used a similar definition). Given an SG, , with a set of states , an I-partition is a partition of into four blocks: and . and define the sets of states in which will have the stable value one and zero, respectively. and define the excitation regions of in the new SG . In order to distinguish between the sets of states for the excitation and quiescent regions of the inserted signal in the original SG and the new SG , we will refer to them as , , , and , respectively. If the insertion of preserves consistency and persistency, then the only transitions crossing boundaries of the blocks are the following: . Example 1: Fig. 5 shows three different cases of the insertion of a new signal into the SG for the hazard.g example. The insertion using and of Fig. 5(a) does not preserve speed-independence as the SIP set conditions are violated for [a violation of the type shown in Fig. 4(b)]. When signal is inserted with the excitation regions shown in Fig. 5(b) then its positive switching is acknowledged by transitions , , while its negative switching is acknowledged by transition . The corresponding excitation regions satisfy the SIP conditions and the new SG , obtained after insertion of signal is shown in Fig. 5(b). Note that the acknowledgment of by transitions , results in delaying some input signal transitions in until fires. This changes the original I/O interface for SG , because it requires the environment to look at a new signal before it can change and . This is generally incorrect (unless we are also separately finding an implementation for the environment or we are working under appropriate timing assumptions), and hence this insertion is rejected. The excitation regions and shown in Fig. 5(c) are SIP sets. They are well-formed and comply with the original I/O interface because positive and negative transitions of signal are acknowledged only by output signal . This shoice of insertion is thus valid. C. Signal Insertion Guided by Function In the case of logic decomposition, the insertion of new signals is guided by Boolean functions either obtained by algebraic division (as in [8]) or by Boolean decomposition of complex functions. We next summarize the method for function-guided signal insertion presented in [8] and also used in this paper. The method will be illustrated with the example of Fig. 6. Given a function , the set of states is initially partitioned into the blocks and corresponding to the states in which and , respectively. In the example of Fig. 6, signal corresponding to the function must be inserted. Fig. 6(a) depicts the partition of the states with regard to function . Next, the I-partition is calculated by defining the input borders of and and extending them until they become SIP sets. This extension is not unique and several solutions can be derived [5]. Fig. 6(b) depicts one of the solutions. The final I-partition defines , , , and . Finally, the events and are inserted following the scheme depicted in Fig. 3. The final SG is shown in Fig. 6(c). The new signal can now be implemented by the function . In the example, is delayed by whereas is delayed by . Thus, signal is acknowledged by . The insertion of a new signal implies changes in the implementation of some other signals as well. In general: •signals delayed by change their implementations, since becomes a new trigger signal for them and • the implementation of the signals not delayed by is valid in the new SG. However, it might be the case that simpler implementations are possible when the new signal is included in their support. Hence can contribute to the simplification of these “non-triggered” signals as well. CORTADELLA et al.: DECOMPOSITION AND TECHNOLOGY MAPPING OF SPEED-INDEPENDENT CIRCUITS 1225 Fig. 5. Different cases of signal insertion for benchmark hazard.g: (a) violating the SIP-condition, (b) changing the I/O interface, and (c) correct insertion. Fig. 6. (a) Bipartition by function x = c + d , (b) I-partition with SIP ER’s, (c) insertion of signal x , and (d) bipartition for function x = a + d + z: Henceforth, we will say that a function is speed independent in an SG if an I-partition with SIP ER’s can be found for . In our example, is a speed-independent function. Fig. 6(d) shows a bipartition of the set of states for function . It can be easily seen that this function is not speed independent in this SG as no I-partition with SIP ER’s can be found. This is due to the isolation of state 0100 in a diamond, that generates a forbidden configuration similar to the one of Fig. 4(b). D. Basic Definitions About Boolean Functions and Relations An important part of our decomposition method is finding appropriate candidates for characterization (by means of Boolean covers) of the sets of states and for the inserted signal . For this, we need to reference here several important concepts about Boolean functions and relations [12]. An incompletely specified (scalar) Boolean function is a functional mapping where and “ ”isadon’t care value. The subsets of domain in which holds the zero, one, and don’t care value are, respectively, called the OFF-set,ON-set, and DC-set.is completely specified if its DC-set is empty. We shall further always assume that is a completely specified Boolean function unless we explicitly say otherwise. Let be a Boolean function of Boolean variables. The set is called the support of the function . In this paper, we shall mostly be using the notion of true support, which is defined as follows. A variable is essential for function (or is dependent on ) if there exist at least two minterms , different only in the value of , such that . The set of essential variables for a Boolean function is called the true support of and is denoted by . It is clear that for an arbitrary Boolean function its support may not be the same as the true support. E.g., for a support and a function the true support of is , i.e., only a subset of . Let be a Boolean function with support . The cofactor of with respect to is defined as , respectively). The well-known Shannon expansion of a Boolean function is 1226 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 9, SEPTEMBER 1999 based on its cofactors: . The existential abstraction of a function with respect to is defined as . The existential abstraction can be naturally extended to a set of variables. The Boolean difference,or Boolean derivative,of with respect to is defined as A function is unate in variable if either or under ordering . In the former case it is called positive unate in , in the latter case negative unate in . A function that is not unate in is called binate in . A function is (positive/negative) unate if it is (positive/negative) unate in all its support variables. Otherwise it is binate. For example, the function is positive unate in variable because . For an incompletely specified function with a DC- set, let us define the DC function such that . We will say that a function is an implementation of if . ABoolean relation is a relation between Boolean spaces [2], [12]; it can be seen as a generalization of a Boolean function, where a point in the domain can be associated with several points in the codomain. More formally, a BR is . Sometimes, we shall also use the “ ” symbol as a shorthand in denoting elements in the codomain vector, e.g., 10 and 00 will be represented as one vector . BR’s play an important role in multilevel logic synthesis [12], and we shall use them in our decomposition method. Consider a set of Boolean functions . Let be a BR with the same domain as functions from . We will say that is compatible with if for every point in the domain of the vector of values is an element of .An example of compatible functions will be given in Section IV. III. OVERVIEW OF THE METHOD In this section we describe our proposed method for sequential decomposition of speed-independent circuits aimed at technology mapping. It consists of three main steps: 1) synthesis via decomposition based on BR’s; 2) signal insertion and generation of a new SG; 3) library matching. The first two steps are iterated until all functions are decomposed into implementable gates or no further progress can be made. At each iteration only one noninput signal is decomposed by inserting a new internal signal (Step 2). Resynthesis of all noninput signals is performed after the insertion of a new signal (Step 1). Finally, Step 3 collapses decomposed gates and matches them with library gates. The pseudocode for the technology mapping algorithm is given in Fig. 7. At each iteration of the main loop, a new signal is inserted. In order to define a function for this new signal, a set of valid decompositions is calculated for each noninput signal (line 2 in Fig. 7) and the best one is kept (line 3). Finally the most complex function from all the decompositions is implemented as a new signal (lines 5 and 6). Choosing the most complex function at each step allows this function to Fig. 7. Algorithm for logic decomposition and technology mapping. become a candidate for decomposition in the next iteration. Thus, we decompose the largest gates first. The algorithm terminates when all noninput signals are implementable with gates from the library or when no more signals can be further decomposed (line 4). The proposed method breaks an initial complex gate implementation of an SG, starting from the gate output,2by using sequential (if its function is self-dependent, i.e., it has internal feedback) or combinational gates. This method is complementary to the one proposed in [7] in which the decomposition was performed by using algebraic divisors of the current implementations of the output signals, and thus decomposition was performed from the inputs of complex gates. Given a vector of SG signals and given one noninput signal (in general the function for may be selfdependent), we try to decompose function into (line 2 of algorithm in Fig. 7): • a combinational or sequential gate with function where is a vector of newly introduced signals, • a vector of combinational3functions for signals , so that implements . Moreover, we require the newly introduced signals to be speed-independent (line 3). The problem of representing the flexibility in the choice of the functions as BR’s has been explored, in the context of combinational logic minimization, by [22] among others. Here we extend its formulation to cover also sequential gates (in Sections IV-A and IV-C). This is essential in order to overcome the limitations of previous methods for speedindependent circuit synthesis that were based on a specific architecture. Now we are able to use a broad range of sequential elements, like set and reset dominant SR latches, transparent D latches, and so on. We believe that overcoming this limitation of previous methods, that could only use C elements and dual-rail SR-latches, is one of the major strengths of this work. Apart from dramatically improving some experimental results, it allows one to use a “generic” standard-cell library, that generally includes SR and D latches (but not C 2Note that after decomposition terminates, technology mapping can be performed indifferently starting from the inputs or from the outputs. 3The restriction that H ( X ) be combinational will be partially lifted in Section IV-C. CORTADELLA et al.: DECOMPOSITION AND TECHNOLOGY MAPPING OF SPEED-INDEPENDENT CIRCUITS 1227 elements), without the need to design and characterize any new asynchronous-specific gates. The algorithm proceeds as follows. We start from an SG and derive a logic function for all its noninput signals (line 1). We then perform an implementability check for each such function as a library gate. The largest nonimplementable function is selected for decomposition. In order to limit the search space, we currently try as candidates for (line 2): • all the sequential elements in the library (assumed to have two inputs at most, again in order to limit the search space); • two-input AND,OR gates with all possible input inversions. The flexibility in the choice of functions is defined by a BR, that represents the solution space of , as described in Section IV-A. The set of function pairs compatible with the BR is then checked for speed-independence (line 3), as described in Section II-C. This additional requirement has forced us to implement a new BR minimizer, that returns a set of compatible functions, as outlined in Section V-A. If both are not speed-independent, the pair is immediately rejected. Then, both and are checked for approximate (as discussed above) implementability in the library, in increasing order of estimated cost. We have two cases: 1) both are speed-independent and implementable: in this case the decomposition is accepted, 2) otherwise, the most complex implementable is selected, and the other one is merged with . Choosing the most complex function, as mentioned above, experimentally helps with keeping the decomposition balanced. Note that at this stage we can also implement or as a sequential gate if the sufficient conditions described in Section IV-C are met. The procedure is iterated as long as there is progress or until everything has been decomposed (line 4). Each time a new function is selected to be implemented as a new signal, it is inserted into the SG (line 6) and resynthesis is performed in the next iteration. The incompleteness of the method is essentially due to the greedy heuristic search that accepts the smallest implementable or nonimplementable but speed-independent solution. Therefore, a speed-independent solution could be missed, e.g., if it corresponds to a redundant cover as shown in Example 2. In order to enable the generation of redundant decompositions in our implementation, the method based on BR’s is combined with a method based on monotonic covers that performs a direct search for speed-independent covers [9], [1], but is also incomplete due to a very restricted decomposition structure based on C-elements. We believe that an exhaustive enumeration of all speed-independent solutions with backtracking would be complete (but impractical), by a relatively straightforward extension of the results in [20] that applied only to circuits without external inputs. Note that in this paper we assume that input inverters (bubbles) attached to the inputs of other gates are “fast,” and therefore bubbles can be added to the fanin of any hazard-free gate available in the library. The implementation is guaranteed to be hazard-free under the following conservative assumption: the delay of a bubble with fanin signal is less than the delay of any other gate, with possibly input bubbles, with in its fanin [9].4 At the end, we perform a Boolean matching step ([11]) to recover area and delay (line 7). This step can merge together the simple two-input combinational gates that we have conservatively used in the decomposition into a larger library gate. It is guaranteed not to introduce any hazards if the matched gates are atomic. IV. LOGIC DECOMPOSITION USING BOOLEAN RELATIONS A. Specifying Permissible Decompositions with BR’s As discussed above, in this paper we apply BR’s to the following problem. Given an incompletely specified Boolean function for signal , , decompose it into two levels ; such that implements and functions and have a simpler implementation than (any such will be called permissible). Note that the first-level function is a multioutput logic function, specifying the behavior of internal nodes of the decomposition, .5 The final goal is a function decomposition to a form that is easily mappable to a given library. Hence only functions available in the library are selected as candidates for . Then at each step of decomposition a small mappable piece (function is cut from the potentially complex and unmappable function . For a selected all permissible implementations of function are specified with a BR and then via minimization of BR a few best compatible functions are obtained. All of them are verified for speed-independence by checking SIP- sets. The one which is speed-independent and has the best estimated cost is selected. Since the support of function can include the output variable , it can specify sequential behavior. In the most general case we perform two-level sequential decomposition such that both function and function can be sequential, i.e., contain their own output variables in their supports. The second level of the decomposition is made sequential by selecting a latch from the library as a candidate gate, The technique for deriving a sequential solution for the first level is described in Section IV-C. We next show by example how all permissible implementations of a decomposition can be expressed with BR’s. Example 2: Consider the STG in Fig. 8(a), whose SG appears in Fig. 9. Signals , , and are inputs and is an output. A possible implementation of the logic function for is . Let us decompose this function using as a reset-dominant Rs-latch represented by the equation [see Fig. 8(b)]. 4This is likely to be satisfied if the layout program keeps such inverters very close to their fanout gates. 5For simplicity we consider the decomposition problem for a singleoutput binary function F , although a generalization for the multioutput and multivalued functions would be straightforward. 1228 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 9, SEPTEMBER 1999 Fig. 8. Sequential decomposition for function y = acd + y ( c + d ) . Fig. 9. State graph and decomposition of signal y by an RS latch. At the first step we specify the permissible implementations for the first level functions and by using the BR specified in the table of Fig. 9. Consider, for example, vector . It is easy to check that . Hence, for vector 0000 the table specifies that i.e., any implementation of and must keep for this input vector either at one or at zero, since these are the necessary and sufficient conditions for the Rs-latch to keep the value zero at the output , as required by the specification. On the other hand, only the solution , is possible for the input vector 1100, which corresponds to setting the output of the Rs-latch to one. The BR solver will find, among others, the two solutions illustrated in Fig. 8(c)–(d): 1) ; and 2) ; . Solution (2) is not speedindependent, and therefore only solution (1) will be included as a SIP candidate. Another speed-independent solution, (3) ; [Fig. 8(f)] corresponding to a redundant cover will be included into the list of SIP candidates by the monotonic cover method. It differs from solution 2) by adding a redundant literal to function . The monotonic cover method [9], [1] performs direct search for speed-independent cubes and covers for each excitation region of a signal assuming a restricted decomposition structure based on a C-element or a TABLE I BOOLEAN RELATIONS FOR DIFFERENT GATES Region C-element H 1 ;H 2 D-latch C;D Rs R;S ER ( y +) 11 11 01 QR ( y +) f 1 0 ; 0 1 gf 0 0 ; 0 0 g 0 0 ER ( y 0 )00 10 1 QR ( y 0 ) f 0 0 ; 0 0 gf 0 0 ; 0 0 gf 1 0 ; 0 0 g unreachable —— —— —— Region Sr S;R AND H 1 ;H 2 OR H 1 ;H 2 ER ( y +) 1 0 11 f 1 0 ; 0 1 g QR ( y +) f 1 0 ; 0 0 g 11 f 1 0 ; 0 1 g ER ( y 0 )01 f 0 0 ; 0 0 g 00 QR ( y 0 )0 0f 0 0 ; 0 0 g 00 unreachable — — — — — — dual-rail RS-latch. The best solution is selected among 1) and 3) depending on the cost function. Table I specifies compatible values of the BR for different types of gates: a C-element, a D-latch, a reset-dominant Rslatch, a set-dominant Sr-latch, a two-input AND gate and a two input OR gate. All states that are not reachable in the SG form the DC-set for the BR. E.g., for each state from only one compatible solution, 11, is allowed for input functions , of a C-element. This is because the output of a C-element in all states, is at zero and . Under these conditions the combination 11 is the only possible input combination that implies the value one at the output of the C-element. On the other hand, for each state , the output and . Hence, it is enough to keep at least one input of the C-element in 1. This is expressed by values in the second line of the table. Similarly, all other compatible values are derived. B. Functional Representation of Boolean Relations Given an SG satisfying the CSC requirement, each output signal is associated with a unique incompletely specified function , whose DC-set represents the set of unreachable states. can be represented by three completely specified functions, denoted , , and representing the ON-, OFF-, and DC-set of CORTADELLA et al.: DECOMPOSITION AND TECHNOLOGY MAPPING OF SPEED-INDEPENDENT CIRCUITS 1229 , such that they are pairwise disjoint and their union is a tautology. Let a generic -input gate be represented by a Boolean equation , where are the inputs of the gate, and is its output.6The gate is sequential if belongs to the true support of We now give the characteristic function of the BR for the implementation of with gate This characteristic function represents all permissible implementations of that allow to be decomposed by (1) Intuitively, this equation specifies the relations: • between every minterm (with support in ) in the ON-set and the functions of that make ; • between every minterm in the OFF-set and the functions of that make . In the example of Fig. 9, the minterms and belong to the OFF-, ON- and DC-set, respectively. Thus, the BR for the function will be Given the characteristic function (1), the corresponding table describing the BR can be derived using cofactors. For each minterm with support in , the cofactor gives the characteristic function of all compatible values for . Finding a decomposition of with gate is reduced to finding a set of functions such that (2) Example 3: (Example 2 continued.) The SG shown in Fig. 9 corresponds to the STG in Fig. 8. Let us consider how the implementation of signal with a reset-dominant Rs latch can be expressed using the characteristic function of the BR. Recall that the table shown in Fig. 9 represents the function and the permissible values for the inputs and of the Rs latch. The ON-, OFF-, and DC-sets of function are defined by the following completely specified functions: The set of permissible implementations for and is characterized by the following characteristic function of the 6In the context of Boolean equations representing gates we shall liberally use the “ = ” sign to denote “assignment,” rather than mathematical equality. Hence, literal q in the left-hand side of this equation stands for the next value of signal q while the same literal in the right-hand side corresponds to its previous value. BR specified in the table. It can be obtained from (1) by substituting expressions for , , , and the function of an Rs-latch, (3) This function has value one for all combinations represented in the table of Fig. 9 and value zero for all combinations that are not in the table [e.g., for . For example, the set of compatible values for is given by the cofactor which correspond to the terms and given for the BR for that minterm. Two possible solutions for the equation corresponding to Fig. 8(c)–(d) are C. Two-Level Sequential Decomposition Accurate estimation of the cost of each solution produced by the BR minimizer is essential in order to ensure the quality of the final result. The minimizer itself can only handle combinational logic, but often (as shown below) the best solution can be obtained by replacing a combinational gate with a sequential one. This section discusses some heuristic techniques that can be used to identify when such a replacement is possible without altering the asynchronous circuit behavior, and without undergoing the cost of a full-blown sequential optimization step. In particular, it discusses how a decomposed combinational function can be replaced by a sequential function without changing the behavior of the circuit. Let us consider our example again. Example 4: (Example 2 continued.) Let us assume that the considered library contains three-input AND, OR gates and Rs-, Sr-, and D-latches. Implementation (1) of signal by an Rs-latch with inputs and matches the library and requires two AND gates, one with two and one with three inputs, and one Rs-latch. The implementation (2) of by an Rs-latch with inputs and would be rejected, as it requires a complex AND-OR gate which is not in the library. However, when input in the function is replaced by signal the output behavior of will not change, i.e., function can be safely replaced by . The latter equation corresponds to the function of a D-latch and gives the valid implementation shown in Fig. 8(e). 1236 IEEE TRANSACTIONS ON COMPUTER-AIDED DESIGN OF INTEGRATED CIRCUITS AND SYSTEMS, VOL. 18, NO. 9, SEPTEMBER 1999 Michael Kishinevsky (M’95–SM’96) received the M.Sc. and Ph.D. degrees in computer science from the Electrotechnical University of St. Petersburg, St. Petersburg, Russia. He has been a Researcher at the St. Petersburg Mathematical Economics Institute Computer Department, Russian Academy of Science, St. Petersburg, Russia, in 1979–1982 and 1987–1989. From 1982 to 1987, he has been with a software company. From 1988 to 1992, he was a Senior Researcher at the R&D Coop TRASSA, St. Petersburg, Russia. In 1992, he joined the Department of Computer Science, Technical University of Denmark, Lyngby, Denmark, as a Visiting Associate Professor. From the end of 1994 until 1998, he was a Professor at the University of Aizu, Aizu-Wakamatsu, Japan. In 1998, he joined the Strategic CAD Labs, Intel Corporation, Hillsboro, OR. His current research interests include design of asynchronous and reactive systems and theory of concurrency. He coauthored two books in asynchronous design and has published over 50 journal and conference papers. Alex Kondratyev (M’94–SM’97) received the M.S and Ph.D. degrees in computer science from the Electrotechnical University of St. Petersburg, St. Petersburg, Russia in 1983 and 1987, respectively. He is an Associate professor of the Hardware Department at the University of Aizu, Aizu- Wakamatsu, Japan. From 1988 to 1993, he was with the R&D Coop TRASSA, St. Petersburg, Russia, where he was a Senior Researcher. Previously, he held a position of Assistant Professor in the Electrotechnical University of St. Petersburg. He is a coauthor of Concurrent Hardware. The Theory and Practice of Self- Timed Design (New York: Wiley, 1994). He was a co-chair of Async’96 Symposium, co-chair of CSD’98 Conference, and has served as a member of the program committee for several conferences. His research interests include several aspects of the computer-aided design with particular emphasis on asynchronous design and theory of concurrency. Luciano Lavagno (S’88–M’93) graduated magna cum laude in electrical engineering from Politecnico di Torino, Torino, Italy in 1983. In 1992, he received the Ph.D. degree in electrical engineering and computer science from the University of California at Berkeley. From 1984 to 1988, he was with CSELT Laboratories, Torino, Italy, where he was involved in the ESPRIT 802 CVS project that developed a complete high-level synthesis system. In 1988, he joined the Department of Electrical Engineering and Computer Science of the University of California at Berkeley, where he worked on logic synthesis and testing of synchronous and asynchronous circuits. Since 1993, he has been the architect of the POLIS project (a cooperation between the University of California at Berkeley, Cadence Design Systems, Magneti Marelli, and Politecnico di Torino), developing a complete hardare/software co-design environment for control-dominated embedded systems. Since 1997, he has participated in the ESPRIT 25443 COSY project, developing (based on the POLIS and Felix technologies) a methodology for software synthesis and performance analysis for embedded systems. He has been an Associate Professor at the University of Udine, Udine, Italy, and a research scientist at Cadence Berkeley Laboratories, since 1998. His research interests include the synthesis of asynchronous and low-power circuits, the concurrent design of mixed hardware and software systems, and the formal verification of digital systems. He is the author of a book on asynchronous circuit design, the co-author of a book on hardware/software co-design of embedded systems, and has published over 80 journal and conference papers. He has served on the technical committees of several international conferences in his field (namely, the Design Automation Conference, the International Conference on Computer Aided Design, the European Design Automation Conference). Enric Pastor received the M.S. and Ph.D. degrees in computer science from the Universitat Polit` ecnica de Catalunya, Barcelona, Spain, in 1991 and 1996, respectively. He is an Associate Professor at the Department of Computer Architecture of the Universitat Polit` ecnica de Catalunya. He was a Visiting Scholar at the University of Colorado, Boulder, and the Inter-university Microelectronics Centre (IMEC), Leuven, Belgium, in 1992 and 1994, respectively. In 1998, he was a Leverhulme Trust Fellow visiting the University of Newcastle upon Tyne, U.K. His research interests include formal methods for the computer-aided design of VLSI systems with special emphasis on synthesis and verification of asynchronous circuits and concurrent systems. Alexandre Yakovlev (M’98) received the M.S. and Ph.D. degrees in computer science from the Electrotechnical University of St. Petersburg, St. Petersburg, Russia, in 1979 and 1982, respectively. He has been working in the area of asynchronous and concurrent systems since 1980. Between 1982 and 1990, he held positions of Assistant and Associate Professor at the Computing Science Department at the Electrotechnical University of St. Petersburg. He visited Newcastle in 1984/1985 for research in VLSI and design automation. After returning to Great Britain in 1990, he worked for one year at the Polytechnic of Wales (now University of Glamorgan). In 1991, he was appointed as a Lecturer at the Newcastle University Department of Computing Science, where he obtained a Personal Readership in Computing Systems Design in 1997. He is leading the VLSI Design Research Group and an Asynchronous Systems Laboratory at Newcastle. His current interests and publications are in the field of modeling and design of asynchronous, concurrent, real-time and dependable systems. He has recently served as a co-organizer of the two international workshops “Hardware Design and Petri Nets” and a program committee co-chair for the 5th International Symposium on Advanced Research in Asynchronous Circuits and Systems.