# Patent application title: Methods of deriving switch networks

##
Inventors:
Andre Inacio Reis (Porto Alegre, BR)
Felipe Ribeiro Schneider (Copenhagen, DK)
Renato Perez Ribas (Porto Alegre, BR)

IPC8 Class: AG06F1750FI

USPC Class:
716122

Class name:

Publication date: 2011-05-05

Patent application number: 20110107288

## Abstract:

A method of determining the lowest possible number of serial switches in
a pull-up plane or a pull-down plane of a network implementing a logic
function. The same method may be used in any multi-value function. Also,
the method may be used in generating switch networks to be implemented as
standard cells implementations of combinational logic cells. The minimum
number of switches can also be used as a criterion for technology mapping
devoted to automatic cell generation. The method is based on the use of a
covering table to derive a sum of products where individual cubes have a
minimum literal count.## Claims:

**1.**A method of deriving a switch network adapted to carry out a predetermined multiple-valued function and comprising a network for each of the multiple values of the function, the method comprising: for at least one of the networks relating to a value of the function: deriving a covering table for the pertaining value of the function and having a number of cubes each covering one or more minterms, estimating the lowest number of serial switches in the network as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and deriving the network on the basis of cubes of the covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the network relating to the value of the function, the network having a number of parallel paths, each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**2.**A method according to claim 1, wherein the deriving step comprises deriving the network from a subset of the cubes of the covering table, where each cube in the subset covers at least one minterm not covered by other cubes of the subset.

**3.**A method according to claim 1, wherein the deriving step comprises the steps of: identifying two parallel paths each comprising a switch having the same input and changing one of the identified paths to share the switch of the other identified path with that input.

**4.**A method according to claim 1, wherein the deriving step comprises the steps of: determining an ordering of the inputs of the switches, from lowest to highest, defining a direction in a path of the network, and interchanging positions of two switches of the path if a lower order switch is positioned, along the direction, before a higher order switch.

**5.**A method of deriving a switch network adapted to carry out a predetermined Boolean function and comprising a pull-up network and a pull-down network, the method comprising: deriving from the function a first covering table having a number of cubes each covering one or more minterms, estimating the lowest number of serial switches in the pull-up network as the number of literals in a cube of the first covering table having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, deriving the pull-up network on the basis of cubes of the first covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the pull-up network, the network having a number of parallel paths, each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube, deriving from the inverted function a second covering table having a number of cubes each covering one or more minterms, estimating the lowest number of serial switches in the pull-down network as the number of literals in a cube of the second covering table having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and deriving the pull-down network on the basis of cubes of the second covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the pull-down network, the network having a number of parallel paths, each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**6.**A method according to claim 5, wherein the deriving step comprises deriving the network from a subset of the cubes of the covering table, where each cube in the subset covers at least one minterm not covered by other cubes of the subset.

**7.**A method according to claim 5, wherein the deriving step comprises the steps of: identifying two parallel paths each comprising a switch having the same input and changing one of the identified paths to share the switch of the other identified path with that input.

**8.**A method according to claim 5, wherein the deriving step comprises the steps of: determining an ordering of the inputs of the switches, from lowest to highest, defining a direction in a path of the network, and interchanging positions of two switches of the path if a lower order switch is positioned, along the direction, before a higher order switch.

**9.**A computer program adapted to control a processor to carry out the method according to claim

**5.**

## Description:

**[0001]**This application is a divisional of application Ser. No. 11/711,828 filed Feb. 28, 2007, which claims the benefit of priority under 35 U.S.C. ยง119 from U.S. Patent Application No. 60/777,561, filed on Mar. 1, 2006 in the United States Patent and Trademark Office, the contents of each of which are herein incorporated by reference in their entirety for all purposes.

**[0002]**The present invention relates to methods of obtaining switch networks with optimized parameters and in particular to a method of ensuring that the number of serial transistor of each plane or sets of paths connecting the output to a given value of a function is minimized. The object of the invention is to provide cells with the same functionality but with a reduced logical effort. A reduced logical effort can be translated into a reduction of area, power and/or delay when designing an integrated circuit.

**[0003]**Technology of this type may be seen in U.S. Pat. No. 7,003,738.

**[0004]**In a first aspect, the invention relates to a method of deriving a switch network adapted to carry out a multiple-valued function, such as a function defined by a truth table, and comprising a network relating to each of the multiple values of the function, the method comprising:

**[0005]**deriving one potential network for each of the multiple values of the function and using each of a plurality of different methods, and

**[0006]**for each of the multiple values of the function, selecting, as the derived, potential network of the value of the function and of the switch network, one of the derived networks for the value, where the selected networks are derived by different methods.

**[0007]**In the present context, a switch network is a plurality of interconnected switches adapted to change characteristics (normally change a conducting behaviour) as a result of an input signal. These switches may be transistors, nanotubes, valves, relays, neurons, or the like.

**[0008]**A network of switches is adapted to carry out a function when the inputs of the function are the inputs to the switches and when the behaviour of the switches determines the output signal on an output of the network in accordance with the output of the function on the basis of the same inputs. A multiple-valued function is a function able to provide an output being chosen between a plurality of different possible values. A multiple-valued function having only two possible output values and two possible input values is a Boolean function.

**[0009]**Normally, a multiple-valued function may be described by a truth table describing the output of the function as a function of the possible inputs thereof.

**[0010]**In the present context, a network relating to a value of the function will be a network usually interconnecting a supply voltage representing the value of the function and the output. This network will comprise a number of switches, the inputs and behaviour of which interconnect the output to this voltage, when the output of the function requires this--and does not when the function requires that. Normally, only a single of these networks interconnects the output to a given voltage.

**[0011]**The overall network implementing the function may be divided up into networks relating to the different values of the function. Switches may be part of more than one of these networks.

**[0012]**In the present context, and as it will be described further below, a large number of methods exist of deriving networks either for a full function or for each of the networks thereof relating to an output value thereof. Some of these methods actually comprise firstly deriving one network for one output value and then deriving a network relating to another output value from the first network.

**[0013]**The finally selected networks may be represented individually or as an assembled/interconnected network representing the full function.

**[0014]**In the present context, two methods are different if they result in different networks representing the same value of the same function. In the present context, networks are primarily different, if they comprise different numbers of switches or have different numbers of parallel or serial switches between the output and the voltage corresponding to the value of the function (normally a supply voltage).

**[0015]**Preferably, the selecting step comprises selecting, as the network relating to the value of the function the derived, potential network having the lowest number of serial switches, normally between the output and a voltage supply. Having a low number of serial switches has a number of advantages both in speed and power consumption of the overall network.

**[0016]**In a particular embodiment, the selecting step comprises the steps of:

**[0017]**estimating a lowest number of serial switches of one or more of the networks by

**[0018]**deriving from the function (such as from a truth table of the function) a covering table relating to the actual value of the function and having a number of cubes each covering one or more minterms,

**[0019]**determining the lowest number of serial switches of the network as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0020]**selecting the network as a derived, potential network of the value of the function, the network fulfilling a predetermined criterion relating to the number of serial switches therein, the determined lowest number of serial switches, and/or the total number of switches in the potential network relating to the value of the function.

**[0021]**In the present context, a covering table is a table that relates cubes to the minterms covered by the cubes. In a covering table, the entries of the actual value of the function have been replaced by "1"'s and the remaining values with "0"'s (or any two values different from each other). In this situation, a cube is a product of literals, and literals are the variables of the function--or their complements.

**[0022]**A minterm is a cube containing one literal associated to each variable of the function. A minterm may be called an implicant minterm if, when the input variables thereof are presented to the function, this results in the function outputting the output value in question for the covering table.

**[0023]**A cube is an implicant cube if the minterms covered thereby are all implicant minterms. Preferably the cubes used in the present methods are the implicant cubes of the covering table.

**[0024]**A covering table comprises a number of prime implicant cubes which are those implicant cubes which are defined by the fewest literals. Thus, a prime implicant cube is an implicant cube from which, if a literal is removed, it is no longer an implicant cube. Preferably, a covering table will contain all possible prime implicant cubes and only those. The prime implicant cubes may be represented explicitly or implicitly in the covering table.

**[0025]**In the present context, a covering table may be represented in any suitable manner, such as a table, a list, a linked list, linked records or the like, normally stored in an electronic memory, such as a ROM, RAM; PROM, EPROM, EEPROM, or the like.

**[0026]**It should be noted that it is not required to actually remove e.g. cubes having a larger number of literals than the cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals. The present lowest number may be determined from the cubes as present in the covering table.

**[0027]**When generating a network, it may be desired to take into account a subset of cubes from the covering table such that it does not contain any cube covering only minterms covered by other cubes in the subset. This will be described further below.

**[0028]**In one situation, the selecting step comprises the step of selecting, as the network relating to the value, a potential, derived network having a number of serially connected switches equal to the determined lowest number of serial switches. In this manner, it is ensured that the network selected has e.g. a high speed.

**[0029]**In another situation, the selecting step comprises the step of selecting, as the network relating to the value, a potential, derived network having the lowest total number of switches. A low total number of switches reduces the power consumption of the network, which is also a desired parameter.

**[0030]**In addition to using the above method for determining the lowest number of serial switches, it may also be used for other purposes.

**[0031]**In an interesting embodiment, the deriving step comprises deriving a potential network by

**[0032]**deriving from the function (such as from a truth table of the function) a covering table for the pertaining value of the function and having a number of cubes each covering one or more minterms,

**[0033]**estimating the lowest number of serial switches in the network as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals (i.e. the number of literals in that or those of the cubes, which each covers a minterm not covered by a cube having a lower number of literals, and which has the most literals), and

**[0034]**deriving the network on the basis of cubes of the covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the network, the network having a number of parallel paths, each parallel path being defined by a cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**[0035]**Normally, the parallel paths will, at their outer ends, be connected to each other and to the output at one end and a supply voltage at the other end.

**[0036]**Thus, by using this method, it is ensured that a network having the lowest possible number of serial switches from the output to the voltage (normally a supply voltage) is generated. It should be noted that switches may be shared between the individual paths, and that there are a number of manners of improving the network derived by this method.

**[0037]**In one situation, it is desired to provide the parallel paths of all cubes having a number of literals equal to or lower than the determined lowest number of serial switches in order to ensure that the full function of the function is maintained. However, it may be desired to provide this with a lower number of switches. This may be obtained, when the deriving step comprises deriving the network from only a subset of the cubes of the covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the network, where each cube in the subset covers at least one minterm not covered by other cubes of the subset. In this manner, some of the paths (defined by the cubes no longer used) are removed, reducing the total number of switches of the network without affecting the overall functionality of the network.

**[0038]**In addition, it may be desired to have the method further comprise the step of improving a selected network by:

**[0039]**identifying two parallel paths each comprising a switch having the same input and

**[0040]**changing one of the identified paths to share the switch of the other identified path (or a new switch now common to both paths) with that input.

**[0041]**This method may be performed repeatedly for many or all switches or paths in that network in order to further improve the network.

**[0042]**Yet another manner of improving the network is one further comprising the steps of:

**[0043]**determining an ordering of the inputs of the switches, from lowest to highest,

**[0044]**defining a direction in a path of the network, and

**[0045]**interchanging positions of two switches of the path if a lower order switch is positioned, along the direction, before a higher order switch.

**[0046]**In this context, the ordering may be one of e.g. power consumption or the switching velocity/timing of the switches. In addition, the direction of the path in the network normally is from the voltage (normally a supply voltage) to the output of the network.

**[0047]**Moving switches with higher probability of switching (such as switches controlled by the clock signal) to a position closer to the output of the network may reduce the overall power consumption of such network in that fewer nodes will then have to be charged for each switching of this signal. In addition, moving slower switches to positions closer to the output will reduce the negative impact of such devices on the network speed.

**[0048]**In a second aspect, the invention relates to a method of deriving a switch network adapted to carry out a predetermined multiple-valued function and comprising a network for each of the multiple values of the function, the method comprising:

**[0049]**for at least one of the networks relating to a value of the function:

**[0050]**deriving from the function (such as from a truth table of the function) a covering table for the pertaining value of the function and having a number of cubes each covering one or more minterms,

**[0051]**estimating the lowest number of serial switches in the network as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0052]**deriving the network on the basis of the cubes of the covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the network relating to the value of the function, the network having a number of parallel paths, each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**[0053]**As mentioned above, it is not required to remove cubes from the covering table in order to be able to generate the network.

**[0054]**It is clear that cubes having a number of literals higher than the estimated lowest number of serial switches are not used. In addition, it is advantageous, however, that the deriving step comprises deriving the network from a subset of the cubes having a number of literals smaller than or equal to the estimated lowest number of serial switches of the network relating to the value of the function, where each cube in the subset covers at least one minterm not covered by other cubes of the subset.

**[0055]**As mentioned above, preferably the deriving step comprises the steps of:

**[0056]**identifying two parallel paths each comprising a switch having the same input and

**[0057]**changing one of the identified paths to share the switch of the other identified path with that input. Again, this may be performed repeatedly for many or all switches or paths in that network.

**[0058]**Also, the deriving step could comprise the steps of:

**[0059]**determining an ordering of the inputs of the switches, from lowest to highest,

**[0060]**defining a direction in a path of the network, and

**[0061]**interchanging positions of two switches of the path if a lower order switch is positioned, along the direction, before a higher order switch.

**[0062]**A third aspect of the invention relates to a method of determining a lowest number of serial switches in a switch network representing a value of a multiple-valued function, the method comprising:

**[0063]**deriving from the function (such as from a truth table thereof) a covering table associated to the value and having a number of cubes each covering one or more minterms, and

**[0064]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals.

**[0065]**In the present context, a network represents a value of a function when the function outputs the value as a result of the correct inputs, as defined by the function. The function may be defined by a truth table.

**[0066]**As mentioned above, the covering table may comprise also non-prime implicant cubes, and it is not required to remove cubes from the covering table in order to determine the lowest possible number of serial transistors.

**[0067]**Different manners exist of determining the cube in question (i.e. a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals). One such manner is one wherein the determining step comprises the steps of:

**[0068]**determining, for each minterm, a cube covering the minterm and having the smallest number of literals, and

**[0069]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals among the determined cubes.

**[0070]**Another method is one wherein the determining step comprises the steps of:

**[0071]**repeatingly identifying, in the covering table, a cube having a largest number of literals and determining whether each minterm which is covered by the identified cube is also covered by another cube having a lower number of literals, if so, removing the cube from the covering table,

**[0072]**until no cube can be removed, and

**[0073]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals in the covering table.

**[0074]**Instead of removing, it may suffice to mark the cubes and thereafter not use these again, so that the lowest number of serial switches is determined on the basis of non-marked cubes.

**[0075]**A fourth aspect of the invention relates to what may be called technology mapping of circuits or networks. More particularly, this aspect relates to a method of mapping a function or a network of switches, the method comprising:

**[0076]**for each of a plurality of parts of the function or the network, determining a logic sub-function implemented thereby and, for each of the values of the function, determining a lowest number of serial switches of a network representing the value of the sub-function, using the method according to the third aspect of the invention, and

**[0077]**selecting a subset of the determined parts, the parts of the subset implementing the function, and where each part, for each of the networks relating to a value of the sub-function of the part, has a lowest number of serial switches lower than a predetermined value.

**[0078]**Preferably, if the mapping is of a function, the function is described as a set of interconnected logic primitives, such as and-gates, or-gates, inverters or the like.

**[0079]**In this context, the full function or network is implemented by the parts when all parts of the function or network are present in at least one part.

**[0080]**The present method may be used on particular parts, such as parts identified using a predetermined search strategy, or the function/network may be divided into a plurality of parts, where all parts at least cover the full function/network once, and where all parts are then analyzed.

**[0081]**Preferably, a window defining the parts is moved stepwise over the function or network in a manner so that overlapping areas are defined and analyzed in order to identify the best division of the network and thereby the best potential improvement thereof.

**[0082]**In the present context, a sub-function implemented by a network present in a part is a logic function implemented by the logics of the network. Any network may be analyzed to result in a truth function or a function implemented thereby.

**[0083]**The overall analysis of the network/function results in a selection of parts (and a dividing of the network) which may be optimized as to the number of serial switches in each sub-network (relating to each of the values of the function). Another manner of dividing the network/function would be one wherein the subset is selected such that a given cost function for the overall function or network is minimized. This cost function may be total number of switches of the parts. The total number of switches has an influence on the overall area taken up, the power consumption as well as the speed of the function/network.

**[0084]**A fifth aspect of the invention relates to a method of improving a network or function, the method comprising:

**[0085]**defining a part of the function or the network, determining a logic sub-function implemented thereby and, for each of the values of the function, determining a lowest number of serial switches of a network representing the value of the sub-function, using the method according to the third aspect of the invention, and

**[0086]**replacing the part of the function or network by a network of switches, representing the sub-function and derived as described in relation to the second aspect of the invention.

**[0087]**Consequently, the dividing of the network/function may be as described in relation to the fourth aspect.

**[0088]**A sixth aspect of the invention relates to a computer program adapted to control a processor to carry out the process of any of the above aspects of the invention. Thus, a network or function is entered thereinto, and information relating to a network having a number of advantages is generated.

**[0089]**The above methods have been described in general for multiple-valued functions, including Boolean functions being a subgroup thereof having only two possible output values.

**[0090]**A seventh aspect of the invention relates to a method of deriving a switch network adapted to carry out a Boolean function and comprising a pull-up network and a pull-down network, the method comprising:

**[0091]**deriving one potential pull-up network and one potential pull-down network using each of a plurality of different methods,

**[0092]**selecting, as the pull-up network of the switch network, one of the derived pull-up networks, and

**[0093]**selecting, as the pull-down network of the switch network, one of the pull-down networks, where the selected pull-up network and the selected pull-down network are derived by different methods.

**[0094]**In the present context, a pull-up network is a network representing the "1" or pull-up value of the function and is a network connecting the output to a higher voltage (such as a supply voltage) upon providing of the correct inputs to the switches of this network.

**[0095]**Also, the pull-down network is the network connecting the output to a lower voltage, such as ground or zero, upon providing of the correct inputs of the switches thereof.

**[0096]**As mentioned in relation to the first aspect of the invention, the methods will normally be different, if networks are generated, for the same value of the same function, having different numbers of serial switches or different total numbers of switches.

**[0097]**Also, as mentioned in relation to the first aspect, the final network may be represented by a mix of the two networks, where switches may actually be shared by the two networks.

**[0098]**Preferably, at least one of the selecting steps comprises selecting as the pull-up/down network a potential pull-up/down network having the lowest number of serial switches (normally between the output and a supply voltage).

**[0099]**In an interesting embodiment, the step of selecting the pull-up network comprises the steps of:

**[0100]**estimating a lowest number of serial switches in the pull-up network by

**[0101]**deriving from the function (such as from the Boolean table) a covering table of the function, which may comprise also non-prime implicant cubes, having a number of cubes each covering one or more minterms, and

**[0102]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0103]**selecting the pull-up network as a derived, potential pull-up network fulfilling a predetermined criterion relating to the number of serial switches therein, the determined lowest number of serial switches, and/or the total number of switches in the potential pull-up network.

**[0104]**In that or another embodiment, the step of selecting the pull-down network may also comprise the steps of:

**[0105]**estimating a lowest number of serial switches in the pull-down network by

**[0106]**deriving (such as from the inverted Boolean table) a covering table of the inverted function and having a number of cubes each covering one or more minterms, and

**[0107]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0108]**selecting the pull-down network as a derived, potential pull-down network fulfilling a predetermined criterion relating to the number of serial switches therein, the determined lowest number of serial switches, and/or the total number of switches in the potential pull-down network.

**[0109]**In any of the two above embodiments, the selecting step may comprise the step of selecting, as the pull-up/down network, the potential pull-up/down network having a number of serially connected switches equal to the determined lowest number of serial switches.

**[0110]**Also, in any of the above two embodiments, the selecting step may comprise the step of selecting, as the pull-up/down network, the potential pull-up/down network having the lowest total number of switches.

**[0111]**In an interesting embodiment, the deriving step of deriving a potential pull-up network comprises:

**[0112]**deriving from the function (such as from the Boolean table) a first covering table having a number of cubes each covering one or more minterms,

**[0113]**estimating the lowest number of serial switches in the pull-up network as the number of literals in a cube of the first covering table having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0114]**deriving the pull-up network on the basis of cubes of the first covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the pull-up network, the network having a number of parallel paths (where individual switches may be shared between paths), each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**[0115]**In the same or another embodiment, the deriving step of deriving a potential pull-down network comprises:

**[0116]**deriving (such as from the Boolean table) from the inverted function a second covering table having a number of cubes each covering one or more minterms,

**[0117]**estimating the lowest number of serial switches in the pull-down network as the number of literals in a cube of the second covering table having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0118]**deriving the pull-down network on the basis of cubes of the second covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the pull-down network, the network having a number of parallel paths (where individual switches again may be shared between paths), each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**[0119]**In any of the above two embodiments, the deriving step may comprise deriving the network either from all cubes having a number of literals lower than or equal to the lowest number of serial switches or from a subset of the cubes having a number of literals smaller than or equal to the estimated lowest number of serial switches, where each cube in the subset covers at least one minterm not covered by other cubes in the subset.

**[0120]**Preferably, the method further comprises the steps of improving a selected network by:

**[0121]**identifying two parallel paths each comprising a switch having the same input and

**[0122]**changing one of the identified paths to share the switch of the other identified path with that input.

**[0123]**These steps may be performed repeatedly for many or all switches or paths in that network. Also, the method may further comprise the steps of improving a selected network by:

**[0124]**determining an ordering of the inputs of the switches, from lowest to highest,

**[0125]**defining a direction in a path of the network, and

**[0126]**interchanging positions of two switches of the path if a lower order switch is positioned, along the direction, before a higher order switch.

**[0127]**An eighth aspect of the invention relates to a method of deriving a switch network adapted to carry out a predetermined Boolean function and comprising a pull-up network and a pull-down network, the method comprising:

**[0128]**deriving from the function (such as from the Boolean table) a first covering table (which may comprise also non-prime implicant cubes) having a number of cubes each covering one or more minterms,

**[0129]**estimating the lowest number of serial switches in the pull-up network as the number of literals in a cube of the first covering table having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals,

**[0130]**deriving the pull-up network on the basis of cubes of the first covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the pull-up network, the network having a number of parallel paths (where individual switches may be shared between paths), each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube,

**[0131]**deriving from the inverted function (such as from the Boolean table) a second covering table (which again may comprise also non-prime implicant cubes) having a number of cubes each covering one or more minterms,

**[0132]**estimating the lowest number of serial switches in the pull-down network as the number of literals in a cube of the second covering table having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals, and

**[0133]**deriving the pull-down network on the basis of cubes of the second covering table having a number of literals smaller than or equal to the estimated lowest number of serial switches of the pull-down network, the network having a number of parallel paths (where individual switches again may be shared between paths), each parallel path being defined by one cube and having a number of serially interconnected switches each having an input corresponding to a literal of the cube.

**[0134]**In that aspect, the deriving step preferably comprises deriving the network from either all cubes of the covering table or a subset of the cubes of the covering table, where each cube in the subset covers at least one minterm not covered by other cubes of the subset.

**[0135]**In addition, the deriving step may comprise the steps of:

**[0136]**identifying two parallel paths each comprising a switch having the same input and

**[0137]**changing one of the identified paths to share the switch of the other identified path with that input.

**[0138]**As mentioned above, these steps may be performed repeatedly for many or all switches or paths in that network.

**[0139]**Also, the deriving step may comprise the steps of:

**[0140]**determining an ordering of the inputs of the switches, from lowest to highest,

**[0141]**defining a direction in a path of the network, and

**[0142]**interchanging positions of two switches of the path if a lower order switch is positioned, along the direction, before a higher order switch.

**[0143]**A ninth aspect of the invention relates to a method of determining a lowest number of serial switches in a pull-up network of a switch network adapted to carry out a Boolean function, the method comprising:

**[0144]**deriving, from the function, a covering table having a number of cubes each covering one or more minterms,

**[0145]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals.

**[0146]**A tenth aspect of the invention relates to a method of determining a lowest number of serial switches in a pull-down network of a switch network adapted to carry out a Boolean function, the method comprising:

**[0147]**deriving, from the inverted function, a covering table having a number of cubes each covering one or more minterms, and

**[0148]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals and covering a minterm not covered by a cube having a lower number of literals.

**[0149]**In the ninth or tenth aspects, the determining step may comprise the steps of:

**[0150]**determining, for each minterm, the cube covering the minterm and having the smallest number of literals, and

**[0151]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals among the determined cubes.

**[0152]**In addition, in the ninth or tenth aspects, the determining step may comprise the steps of:

**[0153]**repeatingly identifying, in the covering table, a cube having a largest number of literals and determining whether each minterm which is covered by the identified cube is also covered by another cube having a lower number of literals, if so, removing the cube from the covering table,

**[0154]**until no cube can be removed, and

**[0155]**determining the lowest number of serial switches as the number of literals in a cube having the largest number of literals in the covering table.

**[0156]**As described above, an alternative is one in which the cubes are not removed but marked and where the determining step is performed only on non-marked cubes.

**[0157]**An eleventh aspect of the invention relates to a method of mapping a Boolean function (which may be described as a set of interconnected logic primitives, such as and-gates, or-gates, inverters or the like) or a network of switches, the method comprising:

**[0158]**for each of a plurality of parts of the function or the network, determining a logic sub-function implemented thereby, determining a lowest number of serial switches of the pull-up network of the sub-function using the method according to the ninth aspect, and determining a lowest number of serial switches of the pull-down network of the sub-function using the method according to the tenth aspect, and

**[0159]**selecting a subset of the determined parts, the parts of the subset implementing the function, and where each part, for each of the pull-up and pull-down networks of the sub-function implemented by the part, has a lowest number of serial switches lower than a predetermined value.

**[0160]**Preferably, the subset is selected such that a given cost function for the overall function or network is minimized. This cost function may be the total number of switches as described above.

**[0161]**A twelfth aspect of the invention relates to a method of improving a network or function, the method comprising:

**[0162]**defining a part of the function or the network, determining a logic sub-function implemented thereby, determining a lowest number of serial switches of the pull-up network of the sub-function using the method according to the ninth aspect, and determining a lowest number of serial switches of the pull-down network of the sub-function using the method according to the tenth aspect, and

**[0163]**replacing the part of the function or network by a network of switches, in each network relating to a value of the function, as derived in the eighth aspect.

**[0164]**A thirteenth aspect of the invention relates to a computer program adapted to control a processor to carry out the method according to any of the sixth to twelfth aspects.

**[0165]**A fourteenth aspect of the invention relates to a circuit or gate from the group consisting of the networks illustrated in FIGS. 25-34. Naturally, this aspect, and the relating claim, also covers networks derivable from the networks in FIGS. 25-34, where the order of serially interconnected switches has been altered, and/or in which two parallel branches share a switch in the network of the claim whereas the same parallel branches of a corresponding network each has a switch, or where two parallel branches in a network of the claim each has a switch controlled by the same input and where the parallel branches of a corresponding network shares a switch controlled by that input.

**[0166]**In the following, preferred embodiments of the invention will be described with reference to the drawing, wherein:

**[0167]**FIG. 1 illustrates a flow diagram for minimum length stacks,

**[0168]**FIG. 2 is a truth table for a function,

**[0169]**FIG. 3 illustrates a bridge-based 5-4 cell for the function of FIG. 2,

**[0170]**FIG. 4 illustrates a BDD-based 4-4 PTL for the function of FIG. 2,

**[0171]**FIG. 5 illustrates CSP CMOS cells obtained from the on-set functions of the function of FIG. 2,

**[0172]**FIG. 6 illustrates CSP CMOS cells obtained from the off-set functions of the function of FIG. 2,

**[0173]**FIG. 7 illustrates CSP CMOS cells (factorized) for the function (on-set equation) of FIG. 2,

**[0174]**FIG. 8 illustrates CSP CMOS cells (factorized) for the function (off-set equation) of FIG. 2,

**[0175]**FIG. 9 illustrates a covering table obtained from the on-set of the function of FIG. 2,

**[0176]**FIG. 10 illustrates a covering table obtained from the off-set of the function of FIG. 2,

**[0177]**FIG. 11 illustrates NCSP CMOS cells for the function of FIG. 2,

**[0178]**FIG. 12 illustrates an alternative NCSP CMOS cell to that of FIG. 11a,

**[0179]**FIG. 13 illustrates a truth table for another function,

**[0180]**FIG. 14 illustrates a covering table obtained from the on-set of the function of FIG. 13,

**[0181]**FIG. 15 illustrates a covering table obtained from the off-set of the function of FIG. 13,

**[0182]**FIG. 16 illustrates NCSP CMOS cells for the on-set equations of the function of FIG. 13,

**[0183]**FIG. 17 illustrates NCSP CMOS cells for the off-set equations of the function of FIG. 13,

**[0184]**FIG. 18 illustrates NCSP CMOS cells for the function of FIG. 13,

**[0185]**FIG. 19 illustrates a circuit to be mapped with cells from a library,

**[0186]**FIG. 20 illustrates two different matchings for the same node on the circuit of FIG. 19,

**[0187]**FIG. 21 illustrates two alternative coverings using the matchings of FIG. 20,

**[0188]**FIG. 22 illustrates counting serial transistors by serial parallel association of the network of FIG. 19,

**[0189]**FIG. 23 illustrates the division of the circuit of FIG. 19 into two cells,

**[0190]**FIG. 24 illustrates the counting of serial transistors in the network of FIG. 19 by the method of the invention,

**[0191]**FIGS. 25-34 illustrate examples of networks which are obtainable using the method of the invention.

**[0192]**A first preferred embodiment comprises a method of systematically generating digital cells of complex gate functions with an optimal or optimized length of stacked switches (switch chain) for the pull-up and pull-down networks of a Boolean function. This method is able to generate optimized cell logic functions where the most used standard implementations, such as the Complementary Serial/Parallel CMOS and Pass-Transistor Logic, do not produce networks with minimum length transistor chains. For these functions, new, efficient transistor networks implementations have been obtained that will result in minimum length switch stacks. The presented networks follow neither the Complementary Serial/Parallel CMOS nor the Pass-Transistor Logic topologies. In addition, it is possible to catalogue a selected set of logic functions whose switch-based circuits are better implemented using the below method.

**[0193]**In the present description, each cell (circuit) is characterized by a pair p-n, where p represents the length of its longest pull-up path and n represents the length of its longest pull-down path.

**[0194]**There are several ways to implement a switch network. The common factor among these implementations are the presence of paths which pull up the output to logic one (pull-up network or pull-up plane) and paths which pull down the output to logic zero (pull-down network or pull-down plane).

**[0195]**For the sake of compatibility with most of the circuits available today, the examples presented here will use transistors as switches (pMOS for pull-up plane and nMOS for pull-down plane). However, the method presented hereby is not restricted to transistors and may be used with any kind of switch available (valve, relay, nanotube, etc.).

**[0196]**In FIG. 2, an example of a function is given, and the preferred method will now be illustrated in relation to this function. An integer number is used to represent the function, most of the time in hexadecimal radix. This number is built grouping the 4-bit output sets of the truth-table. In the example presented in FIG. 2 the output compounds the integer (0000 0001 1001 0111)

_{2}=(0197)

_{16}.

**[0197]**Naturally, a number of different networks may be generated which embodies or carries out this function, a number of manners exist of deriving these networks, and a number of manners exist of actually representing these networks.

**[0198]**For example, in FIG. 3, a 5-4 bridge-based circuit is illustrated which embodies the function of FIG. 2.

**[0199]**FIG. 4, a 4-4 PTL (Pass-Transistor Logic) network corresponding to the logic function (0197)

_{16}shown in FIG. 2 is illustrated. There are several ways to implement a PTL network but the one presented in FIG. 4 is based on a Binary Decision Diagram (BDD).

**[0200]**Another way of implementing a logic function is obtained by extracting a representative logic equation and mapping it into a serial/parallel switch network. The prime irredundant equations for the function (0197)

_{16}can be obtained by two-level minimization. The logic equation eq.1 represents the on-set of the function (0197)

_{16}while the logic equation eq.2 represents the off-set for the same function.

**[0201]**FIGS. 5 and 6 show Complementary Serial/Parallel CMOS (CSP) networks for the function (0197)

_{16}. FIG. 5 presents the networks based on the on-set equation and FIG. 6 presents the networks based on the off-set. For each CSP circuit in FIGS. 5 and 6, one plane is derived from the equation and the other one as a topological complement.

**[0202]**In order to reduce the number of switches in the networks, both on-set and off-set equations (eq.1 and eq.2 respectively) can be factorized. Possible factorizations for the equations eq.1 and eq.2 are demonstrated as follows by eq.3 and eq.4.

**[0203]**This factorization leads to the optimized networks presented in FIGS. 7 and 8.

**[0204]**Thus, it is seen that different networks with different numbers of serial transistors/switches and different numbers of total transistors/switches are obtained by these different methods.

**[0205]**Thus, by simply selecting the optimal pull-up network and the optimal pull-down network independently of the method used for generating the network, an optimized network may be obtained.

**[0206]**This may be implemented by simply deriving a large number of pull-up networks and a large number of pull-down networks and then finally determining which pull-up network and which pull-down network to use.

**[0207]**An alternative to that method is seen in FIG. 1, which is a diagram illustrating a manner of determining parameters of the optimal pull-up and pull-down networks. In this manner, the generation of pull-up networks and pull-down networks may be stopped once networks having the optimal parameters have been derived.

**[0208]**In the methodology illustrated in FIG. 1, pull-up and pull-down networks are generated by different methods and then a pull-up/down pair which respects the lower bounds for the number of serial switches is selected. The lower bound is preferably evaluated for both on- and off-set extracted from the function under evaluation. Hence, the evaluation of lower bounds favours the construction of the covering tables for both on- and off-set. FIG. 9 shows the covering table for the on-set of the function presented (0197)

_{16}while FIG. 10 shows the covering table for the off-set of the same function.

**[0209]**From the covering table in FIG. 9 it is seen that the cube with more literals ( bcd) cannot be removed from the final cover as it is an essential prime implicant cube, meaning it is the only cube to cover one of the implicant minterms. Hence, the lower bound for the number of serial switches for the on-set is 4 (the number of literals in the cube). For the covering table in FIG. 10, the lower bound evaluated is 3. Hence, the circuit with pull-up/down networks respecting the lower bounds will be 3-4 or 4-3.

**[0210]**FIG. 11 shows implementations of minimum length transistor chains for the example function (0197)

_{16}. It is seen that none of the implementations of FIGS. 2-8 have minimum length switch stacks. Even worse is the fact that some circuit implementations, like the ones in FIGS. 5, 6, 7 and 8, may not even be feasible due to the long transistor stacks: a circuit is usually unfeasible for practical applications when it has paths with more than 4 serial transistors. The theory behind the evaluation of the lower bound in path length for pull-up and pull-down networks in a circuit is further described in "Exact lower bound for the number of switches in series to implement a combinational logic cell.", F. R. Schneider, R. P. Ribas, S. S. Sapatnekar, A. I. Reis. International Conference on Computer Design, October 2005, pp. 357-362.

**[0211]**Generally, the order of the switches in serial switch stacks is another optimization that could be considered in order to generate circuits with better performance: switches with slower input slopes advantageously could be positioned closer to the output in order to improve the overall performance, while nodes with more connected switches advantageously could be positioned far from the output in order to reduce fanout capacitance.

**[0212]**For instead, considering that the inputs d and d in the circuits presented in FIG. 11 are the slowest ones, the transistors, having d and d as input signals, could be moved to a position closer to the output, so the negative impact in circuit's overall performance would be reduced. FIG. 12 shows the alternative network for the suggested ordering of FIG. 11b, still maintaining the nodes of greater order (more connected switches) as far as possible from the output.

**[0213]**In order to better exemplify the lower bound evaluation used to choose the correct networks for minimum transistor stacks, this will be illustrated with another function, the truth table of which is illustrated in FIG. 13. This function is a 5-input function whose representative hexadecimal integer is (F1D12F33)

_{16}.

**[0214]**The prime irredundant equations for the function (F1D12F33)

_{16}obtained by two-level minimization are given in eq.5 for the on-set and eq.6 for the off-set.

**[0215]**These equations were generated aiming at a smaller set of cubes. However, if one evaluates the lower bound just by looking for the cube with more literals, it will be wrongly assumed that the lower bounds for the function (F1D12F33)

_{16}should be 4-4. However, the covering table for the on-set of this function (FIG. 14) shows that the cube (prime implicant) with more literals on the equation eq.5 (striked-out line) can be removed without losing the cover of all minterms. In equation eq.7, an equivalent representation for equation eq.5 is given where the cube with four literals has been replaced by a pair of cubes with only three literals.

**[0216]**The off-set covering table in FIG. 15 shows that the same reduction cannot be done to the off-set equation eq.6 once in that the cubes with the largest number of literals are essential prime implicants, which means they cannot be removed from the final solution. It means that the evaluation of lower bounds for the function (F1D12F33)

_{16}should deliver 3-4/4-3 circuits. The equations of eq.7 (on-set) and eq.6 (off-set) can be further factorized, and possible results are provided by equations eq.8 and eq.9, respectively.

**[0217]**In FIG. 16 and FIG. 17, circuits using the regular CSP CMOS approach are shown using the factorized equations in eq.8 and eq.9, respectively. The pull-up/down networks of these circuits were used in FIG. 18 to generate NCSP circuits with minimum length transistor chains.

**[0218]**The present embodiments may also be used to catalogue the functions where the previously used logic topologies will not produce minimum length transistor chain implementations. For these functions a minimum length switch chain implementation is obtainable, based on a key (hexadecimal integer) for finding the function. This catalogue presents all the 4-input functions where a topologically serial/parallel complementary CMOS topology does not produce a minimum length transistor network. It also presents a catalogue with a set of feasible 5- and 6-input negative unate functions (i.e. transistor chains with at most 4 transistors) where CSP circuit do not respect lower bounds. However, the method of generating minimum length transistor chains described hereby can be applied to any n-input function. FIGS. 25-34 illustrate such networks which are obtained in this manner.

**[0219]**Another embodiment relates to technology mapping is well known as the synthesis step where the choice of cells from a library that will be effectively used in the final circuit layout are chosen. For instance, consider FIG. 19 that shows an equation to be mapped.

**[0220]**The first step in technology mapping is known as matching and it basically identifies portions of the initial equation that may be implemented by using cells from the library. For instance, FIG. 20 shows two matchings at the output node of the equation in FIG. 19.

**[0221]**The second step in technology mapping is known as covering, and it chooses a set of matchings that completely implements the equation to be mapped. FIG. 21 shows two alternative complete coverings, each using one of the alternative matchings presented in FIG. 20.

**[0222]**Technology mapping algorithms based on automatic library generators normally performing a matching phase that is based on counting the number of serial transistors that a cell would have. Normally this counting is done by serial parallel association counting, as it is well known in previous art. FIG. 22 shows the serial parallel counting for the equation in FIG. 19. It is possible to see that this equation will have 5 serial transistors in one plane and 4 serial transistors in the other. These numbers are not minimal, as will be described further below, but they are the values effectively obtained by serial parallel association calculation, which is the known way of doing it. As for current standard fabrication technologies, it is widely accepted that a maximum of 4 NMOS and 3 PMOS transistors in series is the limit of acceptable for a single cell, the equation in FIG. 22 would not be implemented as a single cell, as no valid matchings will be produced at the output, due to the excessive number of serial transistors. As seen in FIG. 23, this function will, using the prior art method, be implemented using two cells.

**[0223]**However, if the calculation is done using the above-mentioned method according to the method, smaller values will result. Thus, it is actually possible, using the method of the invention, to provide networks with even lower numbers of serial transistors, as shown in FIG. 24. Thus, the present method allows the advantage of arriving at a true minimum number of serial transistors, which results in larger portions of the circuit to be feasible as single cells. This effect potentially produces speed improvements as well as area and power savings due to the use of a smaller number of cells. For instance, the circuit of the equation illustrated in FIG. 24 can be implemented as a single cell with 3 and 4 serial transistors using the method according to the invention.

User Contributions:

Comment about this patent or add new information about this topic: