com.sun.electric.tool.logicaleffort
Class LESizer2

java.lang.Object
  extended by com.sun.electric.tool.logicaleffort.LESizer2

public class LESizer2
extends java.lang.Object

LESizer sizes an LENetlist. The LENetlist is generated by LENetlister from the Electric database, or perhaps read in from a Spice file(?) NOTE: the only 'Electric' objects used are in LENetlister, any objects referenced in this file are from the logicaleffort package, although their names may imply otherwise. Their names are as such because their names match PNP's naming scheme.

Author:
gainsley

Constructor Summary
protected LESizer2(LESizer.Alg alg, LENetlister2 netlist, Job job, ErrorLogger errorLogger)
          Creates a new instance of LESizer
 
Method Summary
protected  boolean optimizeLoops(float maxDeltaX, int N, boolean verbose, float alpha, float keeperRatio)
          Optimize using loop algorithm;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LESizer2

protected LESizer2(LESizer.Alg alg,
                   LENetlister2 netlist,
                   Job job,
                   ErrorLogger errorLogger)
Creates a new instance of LESizer

Method Detail

optimizeLoops

protected boolean optimizeLoops(float maxDeltaX,
                                int N,
                                boolean verbose,
                                float alpha,
                                float keeperRatio)
Optimize using loop algorithm;

Parameters:
maxDeltaX - maximum tolerance allowed in X
N - maximum number of loops
verbose - print out size information for each optimization loop
Returns:
true if succeeded, false otherwise Optimization will stop when the difference in sizes (X) is less than maxDeltaX, or when N iterations have occurred.