• Tidak ada hasil yang ditemukan

Complexity Estimation and Network Synthesis and Entropy Measures

N/A
N/A
Protected

Academic year: 2024

Membagikan "Complexity Estimation and Network Synthesis and Entropy Measures"

Copied!
5
0
0

Teks penuh

(1)

368 IEEE INDIA ANNUAL CONFERENCE 2004. INDICON 2004

Complexity Estimation and Network Synthesis based on Functional Smoothness

and Entropy Measures

Abslmct- We propose a novel method to estimate the complexity of multiple-valued logic functions based an functionsl smoothness and infomiion theoretic measures. Further, we show that such complexity mea~ures can be used to (a) estimate the area of the drcuit tmplementation and (b) reduce the search space oFpoteatial solutions h evolvable network syntheds.

Index Tems-C&rcuit complexity, entropy, multlple-valued logic, network synthesis.

I. INTRODUCTION

ULnPLE valued logic (MVL) circuit designs have been

M

receiving considerable attention over the last two decades because of their relative advantages of small circuit size, lower power dissipation and higher circuit speed compared to their binary counter parts [1]-[3]. Optimization of area, speed and power dissipation are still being the main constraints ta be satisfied in IC designs,

an

accurate estimation of these parameters would help the designer to perform a design space exploration by trading-off one constraint criterion with another to optimally meet the design objectives. Entropic properties of the functions

are

related to the complexity of circuits that realize these functions and serve as an estimate for area and power dissipation of

the

circuit [4] and help in the evolution of the desired network 153. Since the

EDA

tools used for synthesizing electronic circuits use libraries optimized for speed. area or power or a combination of these, if the complexity of the function to be realized can be computed in terms of the complexities of library components, it is possible to synthesize the given function optimaily using appropriate library components or transform

an

existing implementation to realize

a

new functionality.

M.

S,

Bhat and

H. S.

Jamadagni

n.

INFORMATION THEORETIC MEASURES

Information theoretic approaches have been employed to define computational work of a Boolean transformation 1611-

M. S. Bhat is with Centre for electronics Design and Technology, Indian institute of Science, Bangalore

-

360012, hdia (telephone: 080-23600810.

e-mil: msbhat~cedt.iisc.e.in

H. S. Jamadagni is with Centre for electronics Design and Technology, Indim institute of Science, Emgalore

-

560012. India (telephone: 080- 23600810, e-mail: [email protected]

[7] and

to

develop power and area estimation techniques [4].

Information, measures have also been used in evolutionary network design [ 5 ] , [ 8 ] , In all these cases, only functional entropy is taken into account and functional smoothness property hai not been considered.

A. Entropy as Information Measure

Let f and g be n-variable, rn-valued logic- functions. Non- empty finite sets of all possible values off qnd g be denoted by A and

B.

Let A = { a,,.#,,

.... ...

a,-,} with probabilities p

*,...

* p,-, be a complete set of events of functionf. The entropy H ( f ) of the functianfis defined

by,

n1-1

W f ) = - c 110 P ( f = a , ) b P(f = (11

where p ( J

=

a,.) is the probabilie offtaking a value a, in the partition and logarithm is of base m. The joint entropy

H ( f , g ) offand g is defined by

m-l m-I

Wlg>=

-c; P(f =

Q,, g

=6;)logp(f

=a,,g = b , )

1-0 J-0

The conditional entropy H (f g ) off given g be

H ( f

18)

=

H ( f , g ) - H ( g ) (3)

Erarnple 1: For the MAXfunction of table 1, the input and output entropy are as given below.

lnput Entropy: H ( X ) = -16.x6-10g4,& = Bits Output Entropy:

'

4

B. Functional Smoothness

The smoothness of an MVL function is measured

from

the number of transition-it makes when one of the variables is cycled

through

0 to m-1 keeping all other variables fixed.

There will, bB 2-transition vectors, each of length m, for a 2- variable, m-valued function, 3m vectors for a 3 variable function and so on. The entries in the vector correspond to the number of output transitions of the function along the

0-Y 803-89O9-3/O4/52O.O0 02004 IEEE

(2)

INDIAN INSTITUTE OF TECHNOLOGY, KHARAGPUR 721302, DECEMBER 20-22,2004

0 I 2 3

0 2 2 1 1 1

3 69

Tf Avg corresponding row/column, with a maximum value of m- I.

We define a term transition dens@

(TQ)

for a function, which is the ratio of average number of transitions to the maximwn number (m-I) of transitions.

TD is

a bounded, normalized value in the range [0,1]. A function is said to be

smooth

if

TD

of that function is low.

TABLE 1 2-VARIABLE, &VALUED MAX FUNCTION

T2 Avg.

Avg.No.of Tansitions

T i m

=

Max.iVo,of

Transitions

3 2 1 0 ' TD

' 1.5 0.5

1.5+1.75 1

=

( )*- =

3

0.542

I

TABLE 2 FUNCTION / I

0.542

Exumple 2 For the 2-vuriable, 4-valued MAX firnction shown in ,table I , the transition vectors TI and

T2

corresponding to variables X I and x 2 are [3210]'and [3210]

respectively, Yectur TI correspondr to the transitions along the rows of'the truth table, with 3 transitions in thefirst row, 2 in the second row and so on. Similar@,

T2

corresponds to the transitions along the columns of the truth table.

TD

for this case is 0.5

111, ESTIMATION OF COMPLEXITY

Entropy gives an idea of the randomness present in the behavior of the function and.

in

tum, the complexity of generatinghealking functions [6]-[7]. This notion has been used for estimating area (literal count) and power dissipation in Boolean functions [4],[9]. However, taking entropy alone in complexity computation will result in large inaccuracies.

We

show

that by taking W i t i o n density also into consideration, we get a better estimate of the complexity. Let us consider

two

different scenarios of implementing MVL circuits and examine their implementation complexities.

Case 1: Functions are expressed in minimum sum-of-products (SOP) for& and are realized using window literals and three stage self-restoring logic architecture of [lo]. In

this

case, cost of the h c t i o n is measured as the number of literals present in the expression.

Consider ihhe following functionsh andh

2 3 0 1 0 1 0 0

Function f ;

=

.xI x2 + 2 x, x,

t

I I 1 2 2 3 3 3

3(

x,

x,

+ XI xz)

cost

v;)

= 8 Entropy V;) = 0.95

2 2 0 0 3 3 1 1 ' 0 1 1 2

f,

= XI x ,

+

x, x, -6 x, x, + 2 ( x, x2 f XI x2>

+

3 ( XI x,

+

x, x ,

+

XI xz f x, SJ

0 0 0 0 1 L I I

3 3 0 0 2 2 1 1 1 1 3 3 3 3 3 )

Cost

cfz)

= 18 Entropy

CI;)

= 0.95

2.625

T,(f,)= 3 - -

0.875

TABLE 3 FUNCTION^

I 0 2 3 1 3 2.5

If we assume that the input

MVL

blocks offi andfi have similar literal generating circuits and the output MVL blocks are identical, then the binary logic will have different complexities to account for different costs. Similar to the Boolean case [4], considering cost as a h c t i o n of entropy, we get,

where

C ,

is the cost of functionf:

However, since the entropies of both the functions are identical, functional complexity

(and

hence cost) as a measure of entropy alone will give identical values, which clearly is not the case, Now if we take transition density also into account in computing cost, we can write,

where n is the number of inputs. This gives us, C ~ I a 2 (0.542)(0.95)

*

1.03

C

,

a HV;) and

, C

a

HK)

(4)

-

c,

a n.ToGf).HGf) (5)

-

(3)

3 70

U I t J

0 2 2 3 3

IEEE MDLA'ANNUAL CONFERENCE 2004, INDICON 200-1

TI 1

-

Cf2 a 2 (0.875)(0.95) = 1.66

This shows thath has a higher complexity thanfr, which is in conformity with the cost when measured as the number of literals in sum-of-product form,

1 2 3

Case 2: Functions are expressed in tabular form and their cost is measured in terms of universal literals as'& [ 113.

We

used the cost table given in [ 12) for the four-valued universal literals in estimating the cost of the given function. Example 3

justifies

the use of transition density in computing the function complexity.

2 1 0 3 3

0 1 1 1

I

0 2 2 2 I

Example 3 Considerfunctions f und g given in table 4 and 5

T2 Hlr)

TABLE 4 RR.lcrno~/

0.58

1 2 3 2

0.97

Using universal literals, logic function f can be expressed as

r w

f(xl,x2)= <

0133 > (XI)< 3000 > ( ~ 2 )

+-

<

2103 r (xl) < 3300 >

(x2)

+ < 0233

>

(nl)

<

0012

r (n2) Entropy, H&l = 0.97

Cost# = (3+8+14+9+4+4+5*3) = 52

TAEILE 5. m C T I O N g

2 0 2

g(xl,x2)= <

0130 >(A)< 0103

> ( ~ 2 )

f

<

1202 3

(A)<

2120 3 ( x 2 ) Entropy, H(g) = 0.89

Cost(& = (14+15+16+17+5*3) =

77

If we consider only entropy for computing the complexity of functions, then function g would be less complex

than

function f since H ( g )

< H ( f ) .

But that is not the case since cost(@ > cost#. Considering transition density along with entropy, we get,

c, a

n.TD(f).H(f)=2.(0.58)(0.97)=

1.125

and

Cg

01 n.TD(g).H(g)=2.(0.792)(0.89)= 1.4 .

This

new complexity measure off and g is in conformity with the cost indicated above, which was computed as per [12].

The

four functions,

fi,

f i , f and g, are implemented using currentmode self-restoring logic architecture of [ 101 and the number of transistors used are listed in table 6. We see that the transistor count increases with complexity. The results from the above two cases indicate that, by considering transition density along with functional entropy gives better estimates of implementation complexity of

MVL

functions.

TABLE 6 W S t S T O R COUNTS FOR THE EXAMPLE FUNCTIONS USED IN TlllS

PAPER

Iv. FUNCTIONAL SMOOTHNESS IN NETWORK SYNTHESIS

In the case of evolutionary network synthesis [lo], in order to implement a desired functionJ: an iterative strategy based on information theorttic measures is used to arrive at a set of possible solutions. We consider a part of the problem in the synthesis procedure, wherein if a solution exists, then the hctionfcan be implemented using the evolved network and a constant function.

In an rn-valued, n-variable MVL logic, there exist mm" functions. From

hs,

the solution set

for

implementingf is iteratively generated by cansidering entropy of the hnction [lo]. Let

us

denote the possible set of solutions at i-th iteration as G, =

[

g:, g:, ...

] .

A function g,! E G ~ if,

m,: 12

( 6 )

It is assumed that if a network Net* implements the function

g EG, ,

then it is possible to transform Net* into a network with desired output fthrough a regular procedure [ S ] . Any function^ gEG, is a solution if

H ( f I g )

=O

.

Under this condition, there exists a logic function cpsuch that

f

= rp(g). Although, the search space for a solution is reduced from nzm" to G,using (6), the actual number of possible solutions is

1

G,

1 ,

which could still be very large.

Fig. 1

shows

the relation between the different sets of functions. Let us now consider the transition vectors in refusing the solution space off.

The

new solution set

K,

forf isgivenby

K , = [ k : , k ; , ... 1.

Let

k = k , ' a K i

be a

function in the solution set, with transition vectors

~ ' . , ~ z , ~ . 3 y . , . . . The function k qualifies to be a solution off

(4)

iNDlAN INSTITUTE OF TECHNOLOGY, WARAGPUR 721 302, DECEMBER 20-22,2004 371

onIy if the corresponding transition vectors of k and

f

are either identical or synuhetric and H ( k ) 2

H ( f ) . The

condition imposed by the transition vectors

eliminate

a large number of functions from Gi which otherwise would have been considered as possible solutions,

With

this new constraint, we have

Fig. 1 Sets of Functions

Example 4 Consider the ternary 2-variable firnetions f; gj, g2 and gj shown in table 7 (a) - (d), where

f

is the target function and gl,

gz

and g3 are thefinctions for which network iwplemenrations are available. The problem is to find, among the networkr for g I , g2 and g), which one

can

be transformed to reaiizep

F$h column and

Pflh

'raw in each table gives the transition vectors of the respective functions corresponding to the two variables. Entropies of the four functions are shown at the bottom of each table. H(gJ is less than

HO

and hence can not be a candidate for implementing

f

(as per (6)). H(gJ and H(gJ ore equal to Hcfl and hence lie in the solution space Gi.

Both g2 and g3 can be solutions since H a g j =Hflgd = 0.

However, if we consider the transition vectors,

f

and g2 have identical vectors, where as. g3 has di@erent vectors. Hence, a simple permutation

of

the

g2

output would give functim

f and

ihe corresponding permutation being cp

=I1201 and

f

= cp(g,)

-

Since the transition vectors of 83 are dijierent fiom that of J gj cannot be a candidate solution. Thus,

The search space for a potential solution can thus be reduced g, I g , E

G,

and g , E

K,

I but g, Q

K,

TABLE l(0)

I

2 , 7 2 2

n

0 0.33 '

I &I) = 0.62

fiom

G,

to

K,

by considering the transition vectors. The resultant network is shown infigure 2.

One immediate observation is that when the transformation rp is a simple permutation, then the transition vectors of the two functions are either identical or symmetric. However, the converse is not true. A permutation is a bijective mapping from f to g. Therefore, when transition vectors are identical or symmetric, there might exist a mapping from g to$ This property results in the reduction of solution space when compared to the solution space obtained by considering functional entropy alone. We show in example 5, the meaning of symmetry in transition vectors and the synthesis off given g.

a -

Fig. 2 Synthesized Network forf

Example 9 Consider tsum and tprd operators used in MVL circuit synthesis. The operators for 2-variable, 3-valued case are defined as follows and are shown in table S(a) and (b) below.

tsum(xl.x2) = mfnn(x1

+

x2, m-1) tprd(xl,x2) = max(x1

+

x2

-

(m-l),O)

The transition vectors for rhe huo functions are,

tsurn : [210]. [210/ and tprd I [012]. [012].

The transition vectors of the two functions are symmetric in the sense that one set of vectors can d'e obtained from the other by inversions of the entries of the jirst vector as x = ( m - I ) - x . Using this, the function tprd can be obtained from tsum by the transformation,

-

- - -

Sprd(x,,x2)=Isum(xl,x,),

where

x = ( m

-1) --x This is shown infigure 3.

This

shows that we can find a mapping between two firnctions

even

when

their

respective

transition

vectors are not identical, However, this is not true for every case because, there are functions with same entropies and identical or symmetric transition vectors, but yet they cannot be mapped

from

one to other. On the other hand, by considering transition vectors, the search space for mapping can be reduced.

i -

TZ 2 f I1 0.5 I&?) = 0.85

(5)

I

372 IEEE M D i ANNUAL CONFERENCE 2004, MDICON 2004

Fig. 3 Synthesis of iprd From tsum

L

Whenever the transition vectors of a h c t i o n g are either identical or symmetric with respect to a target functionf,

then

hnction g falls in the set

K,

of potential solutions for$

By

considering transition vectors in evolutiouy network synthesis, it* is possible to reduce the search space for potential solutions,

TZ I I 0 0.5

O D

0.5

V.

CONCLUSIONS

In

this paper,

we show

the effectiveness of using functional smoothness with information theoretic measures

in

estimating the functional complexity.

We

investigated

the

utility of transition density in estimating the cost of circuit realization in two different architecture styles.

The

results have shown

that the transition density indeed improves the cost estimates.

We

have also show that using transition vectors, the search

space for :potential solutions in evolutionary network

synthesis

can

be

reduced.

t41

151

11

VI.

REFERENCES

S.LHurst, I‘ Multiple-valued logic

-

Its status and future”, IEEE truns. Compvrers, vol. C-33, pp. 1160-1179, Dec.1984.

KC.Smip, 'Multiple-valued logic - A tutorial and appreciation,”

IEEE Computer, ~01.21, pp.17-27, Apr.1988

. S. Kawahito, et al., “A 32x32 bit Multiplier using Multiple-valued

MOS Current-made circuits”, IEEE 1 Solid Stafe Circuits, vol. 23, no. I , pp.124-132, Feb.1988

Hwnng C. H. and Wu A. C. H., “An Entropy Measure for Power Estimation of Boolean Functions”, Proc. of Asiu and Sourh Paci/ic Design Automation Confirence (ASP-DAC), pp. 101-106, 1997.

Luba T.. Moraga C., Yanushkevich S., Opoka M. and Shmerko V., . ''Evolutions Multi-Lmel Network Synthesis in given Design Style”,

Pror. of

$

Inrl. Cotif. On Multiple-Yalued Logic. pp. 253-258, 2000.

Hellcrmn L., “A Measurt of Computational Work”, i € € E Truns. on Computers, vol. C-21, pp. 439-446, May 1972.

Cook R‘ W. and Flynn M. J., “Logical Network Cost and Entropy”, IEEE Duns.. on Compuren, vol. C-22(9), pp. 823-826, September 1973.

Chcushev V., Yanushkevich S., Shmerko V., Mom@ C.. and

.

~ l o d z i c j c z y k J., “Information Theory Methods for Flexible Network SpthcsiY‘, Proc. of 3 I” International Symposium on Multiple- YaluedLogic, pp. 201-206,2001.

Nemani M. and Najm F. N., ‘Towards a high level power estimation capability“, IEEE Trans. on CAD of lnregraled Circuits and $mew, vol. 15. No. 6, June 1997. .

Teng H: Y. and Bolton R. J., “A self-restored cumnt-mode CMOS multiple-valued logic design. architecture,” Proceedings of the 7th IEEE PQC@E Rim Confirenee on Cotnmunicafions, Computers nnd Signal Processing, pp. 436-439, Aug. 1999.

Lie K. and Vranesic 2. G., “ T o ~ s .the ictrli~tion of 4-valued

CMOS circuits”, hoc. of 22d International Symposium on Multiple- Valued bgic, pp.104-1 10, 1992.

Hozumi T., Kakusho 0. and Hata Y.. !The output permutation far the multipld-valued logic minimization with universal literals", Proc. of 29th lntnn&tionat Symposium on Multiple-Valued h g i c . pp.105-

109.1999.

. .

Referensi

Dokumen terkait

The advantages of considering a product over a Botox injection are of course the obvious one, you don´t need to get the injection any longer, but also the cost and medical

In considering public transport appraisal the time and operating cost elements of benefit may be dealt with in a similar way to the highway estimates.. However estimation of

In other words, the optimal policy intervention is to impose a tax on output, exactly equal to the marginal externality cost (in the example, the health cost of pollution) being

The graphs in Figure 3.21 show the position s , velocity and acceleration of a body moving along a coordinate line as functions of time t?. Marginal cost Suppose that the dollar

Table 1: Elemental analysis data of MOF-1 Percentage of Element % Element C H N Theoretical 23.57 2.72 6.87 Experimental 26.79 2.74 5.27 Similar to the preparation of MOF-1,

offset, the relative entropy between the vacuum and the arbitrary state for region A is given by the integral of the diffeomorphism Noether current on the bulk region betweenAand the

In order to test the basic principle of the framework that all development processes are function of various economic processes which in turn are functions of a large number of physical

For the first time, a novel mathematical model is presented considering cost and transportation time minimization as well as customer service level maximization under scenario based