HAL Id: jpa-00232306
https://hal.archives-ouvertes.fr/jpa-00232306
Submitted on 1 Jan 1984
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.
An application of physical methods to the computer aided design of electronic circuits
P. Siarry, G. Dreyfus
To cite this version:
P. Siarry, G. Dreyfus. An application of physical methods to the computer aided design of electronic circuits. Journal de Physique Lettres, Edp sciences, 1984, 45 (1), pp.39-48.
�10.1051/jphyslet:0198400450103900�. �jpa-00232306�
L-39
An application of physical methods to the computer aided design of electronic circuits
P.
Siarry
and G.Dreyfus
Ecole
Supérieure
de Physique et de Chimie, Laboratoired’Electronique,
10, rue Vauquelin, 75231 Paris Cedex 05, France(Re~u le 4 juillet 1983, revise le 29
septembre,
accepte le 4 novembre 1983)Résumé. 2014 Certaines méthodes et
algorithmes
utilisés dans les simulations dephénomènes
physiquessont appliqués à la conception automatisée des circuits intégrés ou
imprimés.
Des exemples de résul-tats obtenus à l’aide de ces
algorithmes
sontprésentés.
Ils montrent que l’arrangement des composantset des connexions d’un circuit intégré peut être considéré comme le passage d’un état désordonné à un état
partiellement
ordonné ; cettecomparaison
conduit à une méthode efficacequi
permet d’obtenir un placement optimum des composants et un tracé des connexions.Abstract 2014 Methods and algorithms used in simulations of
physical phenomena
areapplied
to theautomated
design
ofintegrated
orprinted
circuits. Representative results, obtained by these algo- rithms, arepresented.
They show that the design of the layout of anintegrated
circuit may be viewedas a transition from a disordered state to a
partially
ordered state; this comparison leads to anefficient method allowing an optimum placement of the components and a routing of the connections.
J.
Physique
- LETTRES 45 (1984) L-39 - L-48 ler JANVIER 1984, :Classification
Physics Abstracts
05.90 - 85.40
1. Introduction.
The
design
ofintegrated
circuits or ofprinted
circuits is anincreasingly
difficult task because of the number andcomplexity
of thecomponents.
The million-transistorchip being
now inview,
theavailability
of efficientcomputer-aided design
tools is of utmostimportance.
Alarge
amount ofwork has been devoted to
algorithms
fordesigning printed
circuit boards orintegrated
circuits.The
problem, however,
remains open since no method hasproved completely satisfactory [1].
Moreover,
thedevelopment
ofpowerful integrated chips
leads toattempts
atbuilding
smallcomputers specifically
aimed at the C.A.D. of electroniccircuits; therefore, algorithms
which weresatisfactory
whenrunning
onlarge, expensive, general-purpose computers
turn out to bepoorly adapted
to smaller machines.Therefore,
more research in this area is still needed[2].
Many attempts
havealready
been done forapplying
the methodsdeveloped
for the purpose ofphysics
to otherfields,
such ascomputer operation [3], optimization [4],
neural networks[5],
etc...While the
manuscript
of this paper wasbeing prepared,
ananalogy
betweenoptimization
andannealing
in solids waspublished [6],
and the idea wasapplied
to thedesign
oflarge computers.
The basic idea in this paper is the
following :
thedesign
of anintegrated
orprinted
circuit may be viewed as a transition between acompletely
disordered state and apartially
ordered state(Fig. 1).
Assume that a circuit is defined
by
its components, thatis,
a set ofrectangular boxes,
and theArticle published online by EDP Sciences and available at http://dx.doi.org/10.1051/jphyslet:0198400450103900
L-40 JOURNAL DE PHYSIQUE - LETTRES
Fig.
1. - Thedesign
of an electronic circuit viewed as a disorder-order transformation.connections between them.
Ideally,
a C.A.D. program should start from a «liquid
of compo- nents » and reach an ordered state in which all the elements arearranged regularly
with connectionpaths
assimple
aspossible.
Such a transformation occursspontaneously
in many familiarphy-
sical or chemical
systems. Therefore,
thetechniques
which have been used for many yearsby physicists
to simulatephase
transitions oncomputers
can be relevant to someproblems occurring
in the C.A.D. of
integrated
orprinted
circuits.Classically,
thedesign
is done in twomajor phases :
first,
thecomponents
areplaced
so as tooptimize
a criterion or agiven
set of criteria. In a secondL-41 PHYSICS AND C.A.D.
step,
the connections between the components are routed. In theanalogy
between C.A.D. and adisorder-order
transformation,
aglobal approach
seems attractive.However,
in view of thecomplexity
of theproblem,
we haveseparated
the twooperations
in the firstattempt
describedhere; they
will be discussedseparately
andrepresentative
results will bepresented.
In thedesign
of
large
systems, an intermediate step, calledglobal wiring,
is added. In reference6,
theplacement
of
components
and theglobal wiring
are treatedby
methods of statisticalphysics;
thereal,
detailed
routing
of the connections is not considered. Since we aim at thedesign
of medium-sizeprinted
orintegrated circuits,
we haveskipped
theglobal routing step
but we have treated theproblem
of detailedwiring. Therefore,
the twoapproaches
arecomplementary.
2. Placement of
components.
The
components
are to beplaced
in aplane
and connections may be routed on two or more levels.Each
component
has a fixed set ofpins (for
discretecomponents)
or ofpads (for
elements of anintegrated circuit),
and thedesigner
decides whichpin
is to be connected to whichpin.
Theconnections must be as short and
straight
aspossible.
Twoelectrically independent
connections must not cross on the same level.Therefore,
thecomponents
should beplaced
in order toallow,
in the
subsequent routing step, straight,
short andsimple paths
to bedesigned.
Two criteria aregenerally
used : either the total wirelength,
or the number of wirecrossings,
must be minimum.In our
approach, components
are viewed asparticles
which interactthrough
the connections.A conformational energy is defined as a linear function of the wire
length,
or of thecrossing
count(or
ofboth). Therefore,
the transition which will takeplace
in thealgorithm
willattempt
to minimize this energy,just
as a natural transition will drive aphysical
system to a state of minimal energy, or to one of several states ofcomparably
smallenergies [6].
In
analogy
with the simulation ofphysical phenomena,
a classical Monte-Carlo method isused, using
theMetropolis algorithm [7, 8].
A «temperature »
isdefined,
in the same units as theconformational energy;
starting
from atemperature
which ishigh enough
to allow the system toevolve,
thealgorithm
drives thesystem
to a stable state when thetemperature
is lowered. The evolution of the system is allowedby
the fact that a newconfiguration
isaccepted
either if its energy is lower than theprevious
one, or, with aprobability exp( - EIT),
if its energy ishigher
than theprevious
one.The
procedure
which is used here is similar to that described in reference 6.Starting
from agiven configuration (chosen,
forinstance,
atrandom),
a newconfiguration
is obtainedby exchanging
twocomponents
labelled n and m. The new energy iscomputed,
and theconfiguration
is
accepted
orrejected according
to the above criterion. A newattempt
is made toexchange component n
+ 1 with another component p chosen atrandom,
and the process isrepeated.
If the number of
accepted exchanges
reaches apreset
limit(depending
on the number of compo-nents)
or if the number ofattempted exchanges
exceeds apreset limit,
the system is considered to be in a stable state at thegiven temperature;
thetemperature
of thesystem
issubsequently
decreased. The
algorithm
is terminated when noexchanges
areaccepted
within the above limits.If the
starting temperature
is zero, the method is identical to classicaloptimization algorithms;
it
yields
local energy minima.Figure
2 shows the effect of thealgorithm
on a collection of twelve boxes atpredetermined
locations with N = 123 connections. The
starting configuration (a)
was chosenrandomly.
TheManhattan
length Li
of a wirestarting
at location(xl, yl)
andreaching
location(xi, y2)
is definedas : ~ ~
The energy of the
system
was defined as the average Manhattanlength
of all the wires :L-42 JOURNAL DE PHYSIQUE - LETTRES
Fig. 2. - Placement of twelve components
by minimizing
the wirelength.
a) Initialplacement
(chosenat random). b) Final
placement.
For
clarity,
the wires are shown asstraight lines,
whichis,
of course,unrealistic,
but thelength
chosen in the
algorithm
is the Manhattanlength,
which is the minimum realisticlength
of a wire.The
starting
energy was E = 467. The finalconfiguration (b)
hasapproximately
half the initialconfiguration
energy.Obviously,
the final circuit is much lesscongested
than the initial one.Therefore,
thesubsequent wiring step
is easier for the finalconfiguration
than for the initial one.The
computational
effortrequired
is measuredby
the number ofattempted exchanges.
In thiscase, about 2.15 x
104 exchanges
wereattempted,
whereas the total number ofpossible configu-
rations is
approximately
4.8 x108.
In order to follow the evolution moreclosely, figure
3 showsthe average energy and the minimum energy as a function of
temperature.
The curves meetat low
temperatures, showing
that thealgorithm
reaches a solution. It can be seen that the final state is notexactly
the bestconfiguration
found. This is theprice
that we have to pay for nottesting
all thepossible configurations. Since, however,
it is very easy tokeep
in memory theopti-
mal solution found at each
temperature,
thisprice
is moderate.As
expected,
the « heatcapacity »
of thesystem
is shown onfigure
4 to increasesharply
as Treaches its final value. The
originality
of theMetropolis approach,
ascompared
to classicalminimization
methods,
is thatexchanges leading
toconfigurations
ofhigher
energy are allowed.The ratio of the number of such
exchanges
to the total number ofattempted exchanges
isplotted
versus
temperature
onfigure
5. In a «zero-temperature »
method, this ratio would be zero. In thepresent
case, it starts at0.5, thereby showing
that the initialtemperature
is sohigh
that almostall
exchanges
areaccepted.
The ratiodrops
to zero as thetemperature
is decreased.In this
example,
all circuits are considered to beequivalent,
which may not be the caseif,
forinstance,
thermaldissipation problems
are encountered. Indigital electronics, however,
suchproblems
tend todisappear
with the advent of CMOStechnologies.
Gate arrays alsoprovide
agood example
of sets ofequivalent
cells. Themethod, therefore,
iswidely applicable.
It must be
pointed
out that if the process is started at zerotemperature,
the final situation is alocal minimum
with,
in this case, an energy of about 300.PHYSICS AND C.A.D. L-43
Fig. 3. - Plot of the average energy (dots) and minimum energy (arrows) versus temperature.
Fig.
4. -Specific
heat as a function of temperature.L-44 JOURNAL DE PHYSIQUE - LETTRES
Fig.
5. - Ratio of the amount ofaccepted configurations
leading to an increased energy to the total number ofexchanges attempted
at each temperature.In this
section,
we have shown that it ispossible
to view theplacement problem
as a transitionfrom a disordered state to a state of minimum energy when the
temperature
is decreased. In theexample
studiedhere,
the interactions between the «particles »
are donethrough
the connections which must be as short aspossible;
the energy could be somewhatimproperly
termed an elasticenergy
(the
energy chosen is this case was linear with thelength
instead ofquadratic).
The methodis shown to be more efficient than classical minimization methods because it
prevents
thesystem
fromgetting trapped
in a local minimum.L-45 PHYSICS AND C.A.D.
3.
Routing
of connections.We are now interested in
finding
the detailedwiring
of aprinted
circuit or of anintegrated
circuit.Usual routers, such as the Lee
algorithm [9,10], implement
connections oneby
one, in a sequen- tial manner that isapt
to crowd certain areas before all connections arecompleted.
Therefore wepropose to
try
to route all connectionssimultaneously, by treating
thisproblem
inanalogy
withphysical systems.
The basic idea is the
following :
each connection is envisioned as aparticle subjected
to variousattractive or
repulsive potentials.
Forfinding
itspath,
it is necessary to define a kind-of « free energy » that we shall endeavour to minimize. To that energy will contribute the «elasticity »
ofconnections
(these
must be as short aspossible),
their «rigidity » (we
have to minimize the number of elbows and the passages from one side to theother),
arepulsive potential
at short range betweenconnections,
and an attractivepotential
atlong
range between apath
and itstarget.
It is thecompetition
between all these contributions that will allow to find aconfiguration
of connections.Practically,
we consider the case of double sidedprinted
circuit boards. Thealgorithm
works asfollows : the two sides of the board are divided into small squares, the side of which constitute one
elementary step
in vertical or horizontaldirection;
each connection in turn takes onesingle step forward,
so that we may consider that all connections are grownsimultaneously.
At eachstep,
forchoosing
among the fivepossibilities
-forward, backward, right, left, through
- the programcomputes
the contributions to thepotential
andadopts
thestep
whichgives
the lowestresulting potential.
It is clear that the method admits several
parameters,
the value of which must be chosenheuristically. Therefore,
thealgorithm
was firstperfected by connecting only
two boxes made up ofeight pins.
Thealgorithm
was testedby considering
more than four hundredexamples
ofcircuits
comprising eight
connections. The results that have been achieved so far areencouraging,
since about 97
%
of the connections ended without aproblem.
Two extraparameters
wereintroduced; first,
arepulsive potential
between connectionsrunning along
the samepath
onboth levels :
indeed, long superposed
wires on different sides of the board must beavoided,
because
they
make easier thebuilding
of walls around thetargets
of connections(which,
conse-quently,
cannot come to anend) and, electrically,
createcapacitance problems; secondly,
arepul-
sive
potential
betweenparts
of the sameconnection, thereby preventing loops
to occur.To illustrate our
results,
anexample
of a circuit made up ofeight
connections routedby
ouralgorithm
ispresented
infigure
6. In order to show the effect of eachparameter,
we consider the deformation of one of theseconnections, resulting
from the modification of variousparameters
such asattraction, repulsion
andrigidity;
we start in(a)
with apredetermined
set of values for theparameters.
In
figure 6b,
a weaker attractivepotential
is used : the thickconnection, weakly
attractedby
itstarget, wanders
a little beforeconcluding ;
infigure 6c,
ahigher repulsive potential
is introduced : the thickconnection, highly repelled by
other connections andpins,
takes aby-way
to avoidthe overcrowded zone; if the connections can bend
freely
in theplane (Fig. 6d)
seven bends areobserved
(instead
offour,
in the standardcase)
for the thickconnection;
on the otherhand,
if theconnection is very
rigid
withrespect
tobending
in theplane,
the thick connection has no morethan three bends
(Fig. 6e).
Infigure 6f,
the connections aregiven
ahigh rigidity
withrespect
tobending perpendicularly
to theplane :
the thickconnection, unwilling
to increase the energyby
changing
itslevel,
does itonly
when other solutions cannot be obtained. If ahigh repulsive poten-
tial betweensuperposed
lines is introduced(Fig. 6g),
the thick connection takes along
way round in order to find a zone free on the two sides of theboard; finally, figure
6h shows the situations in which there is noloop repulsion :
the thick connection steps backward to itsstarting point,
beforestarting again
forward on the other side of the board.Figure
7 shows anexample
of a circuitcomprising
twelve boxes and a hundred andthirty
connections(it
isapproximately
the sameexample
as that used forstudying
theoptimal placement
ofcomponents).
Thecomputation time,
L-46 JOURNAL DE PHYSIQUE - LETTRES
Fig. 6. - Various connection
styles corresponding
to various values of thepotentials
and of therigidity
of the connections.
L-47 PHYSICS AND C.A.D.
with a IBM 370
computer,
is aboutforty seconds;
no intervention is necessary once the list of the connections has beengiven.
Fig. 7. - Routing of a circuit with twelve components (130 connections).
4. Conclusion.
In this paper,
physical
methods have been used to carry out thedesign
of electroniccircuits,
suchas
printed
boards or customintegrated
circuits.Considering
C.A.D. as a transition from a disordered state to apartially
ordered state, it has been shown that acomplete design
can beachieved
by using
aMetropolis algorithm together
with analgorithm
that grows all connections inparallel
andcomputes
the energy of the system. Realexamples
have been treatedby
thismethod and further
developments
are under way.Although
thesealgorithms
cancertainly
berefined to a considerable extent, the results
presented
here show theviability
of the method.Acknowledgments.
The authors wish to thank Professor P. G. de Gennes and Professor J. P. Hansen for
helpful encouragement
andsupport They
aregrateful
to P. Audrain and Y. Guern fortheir
efficientassistance in
writing
thecomputer
programs.References
[1] SOUKUP, J., Proc. IEEE 69 (1981) 1281.
[2] HONG, S. J. and NAIR, R., Proc. IEEE 71 (1983) 57.
[3] VOLDMAN, J., MANDELBROT, B., HOEVEL, L. W., KNIGHT, J., ROSENFELD, P., IBM J. Res. Dev. 27
(1983) 164.
L-48 JOURNAL DE PHYSIQUE - LETTRES
[4] KIRKPATRICK, S., Disordered Systems and Localization
(Springer-Verlag)
1981, p. 280.[5] HOPFIELD, J. J., Proc. Natl. Acad. Sci. 79 (1982) 2554.
[6] KIRKPATRICK, S., GELATT, C. D. Jr., VECCHI, M. P., Science 220
(1983)
671.[7] METROPOLIS, N., ROSENBLUTH, A. W., ROSENBLUTH, M. N., TELLER, A. H., TELLER, E., J. Chem.
Phys. 21 (1953) 1087.
[8] BINDER, K., Monte Carlo Methods in Statistical Physics (Springer-Verlag) 1979, p. 1.