byucc.jhdl.base
Class PlacementInfo

java.lang.Object
  extended bybyucc.jhdl.base.PlacementInfo
Direct Known Subclasses:
Virtex2PlacementInfo, VirtexPlacementInfo, XC4000PlacementInfo, XC9000PlacementInfo

public abstract class PlacementInfo
extends java.lang.Object

This class is the superclass for libraries that implement placement


Field Summary
protected  int height
          Placement size
protected  java.lang.String transformations
          Any placement should modify this, as it determines the uniqueness of a cell type
static int UNCONSTRAINED
          A constant meaning unplaced
protected  int width
          Placement size
protected  int x
          Placement coordinate
protected  int y
          Placement coordinate
 
Constructor Summary
PlacementInfo()
          Create an unconstrained placement
PlacementInfo(int x, int y)
          Create a placement at x, y
 
Method Summary
 void appendTransformation(java.lang.String transform)
          Add the latest transformation onto the transformation status string
 int getHeight()
          Return the height
 java.lang.String getTransformation(Cell c)
          Return the transformation
 int getWidth()
          Return the width
 int getX()
          Return the x coordinate
 int getY()
          Return the y coordinate
 void setHeight(int h)
          Set the height
 void setWidth(int w)
          Set the width
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNCONSTRAINED

public static final int UNCONSTRAINED
A constant meaning unplaced

See Also:
Constant Field Values

x

protected int x
Placement coordinate


y

protected int y
Placement coordinate


width

protected int width
Placement size


height

protected int height
Placement size


transformations

protected java.lang.String transformations
Any placement should modify this, as it determines the uniqueness of a cell type

Constructor Detail

PlacementInfo

public PlacementInfo()
Create an unconstrained placement


PlacementInfo

public PlacementInfo(int x,
                     int y)
Create a placement at x, y

Parameters:
x - the x coordinate
y - the y coordinate
Method Detail

getX

public int getX()
Return the x coordinate

Returns:
x

getY

public int getY()
Return the y coordinate

Returns:
y

getWidth

public int getWidth()
Return the width

Returns:
width

getHeight

public int getHeight()
Return the height

Returns:
height

setWidth

public void setWidth(int w)
Set the width

Parameters:
w - the new width

setHeight

public void setHeight(int h)
Set the height

Parameters:
h - the new height

appendTransformation

public void appendTransformation(java.lang.String transform)
Add the latest transformation onto the transformation status string

Parameters:
transform - the latest transformation

getTransformation

public java.lang.String getTransformation(Cell c)
Return the transformation

Parameters:
c - the cell to look at
Returns:
all the transformations for the given cell


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.