|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.Logic.Directive
The Directive class is meant to be used as a placement directive
in Logic place calls like so:
place( Cell, Directive, Cell);
There are 10 Declared Directives in the Logic class and expert users
can create there own. Each of the 10 directives have one of 5
different directions assoceiated with them. The Directives also
contain optional Vertial and Horizontal alignment fields to
how cells should be aligned when placeing with that particular
directive. When alignment is used the Directive methods return a
new directive so that future use of the Directive will not be
affected. This unfortunatley will create a lot of wasted objects,
but they should be cleaned up after the cell is placed, since they
are no longer needed.
Method Summary | |
Directive |
align(int va,
int ha)
This method constructs a new Directive and sets the Horizontal and vertical alignment to specified values. |
Directive |
align(Wire wa)
This method constructs a new Directive and sets the alignment to ALIGN_CENTER and the alignment wire to the specified wire. |
Directive |
alignBottom()
This method constructs a new Directive and sets the Vertical alignment to ALIGN_BOTTOM. |
Directive |
alignCenter()
This method constructs a new Directive and sets the Horizontal and vertical alignment to ALIGN_CENTER. |
Directive |
alignCenter(Wire wa)
This method constructs a new Directive with the specified wire as the wire to align with and sets the alignment to ALIGN_CENTER. |
Directive |
alignLeft()
This method constructs a new Directive and sets the Horizontal alignment to ALIGN_LEFT. |
Directive |
alignLSB()
This method constructs a new Directive and sets the alignment to ALIGN_LSB. |
Directive |
alignLSB(Wire wa)
This method constructs a new Directive with the specified wire as the wire to align with and sets the alignment to ALIGN_LSB. |
Directive |
alignMSB()
This method constructs a new Directive and sets the alignment to ALIGN_MSB. |
Directive |
alignMSB(Wire wa)
This method constructs a new Directive with the specified wire as the wire to align with and sets the alignment to ALIGN_MSB. |
Directive |
alignRight()
This method constructs a new Directive and sets the Horizontal alignment to ALIGN_RIGHT. |
Directive |
alignTop()
This method constructs a new Directive and sets the Vertical alignment to ALIGN_TOP. |
Wire |
getAlignmentWire()
This method returns the alignment Wire associated with this Directive. |
int |
getDirection()
This method returns the direction associated with this Directive. |
int |
getHAlign()
This method returns the horizontal alignment associated with this Directive. |
int |
getVAlign()
This method returns the vertical alignment associated with this Directive. |
boolean |
isPortAligned()
This method returns a boolean that indicates whether this Directive has a Wire associated with it for Placement based on port alignment. |
Directive |
setAlignment(int VertAlignment,
int HorAlignment)
This method sets the Vertical and Horizontal alignment of the associated Directive. |
Wire |
setAlignmentWire(Wire wa)
This method sets the alignment Wire associated with this Directive. |
Directive |
setHorizontalAlignment(int ha)
This method sets the Horizontal alignment of the associated Directive. |
Directive |
setVerticalAlignment(int va)
This method sets the Vertical alignment of the associated Directive. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public Directive setAlignment(int VertAlignment, int HorAlignment)
VertAlignment
- An integer to represent the Vertical Alignment to set this Directive to.HorAlignment
- An integer to represent the Horizontal Alignment to set this Directive to.
public Directive setVerticalAlignment(int va)
va
- An integer to represent the Vertical Alignment to set this Directive to.
public Directive setHorizontalAlignment(int ha)
ha
- An integer to represent the Horizontal Alignment to set this Directive to.
public Directive alignBottom()
public Directive alignTop()
public Directive alignLeft()
public Directive alignRight()
public Directive alignCenter()
public Directive align(int va, int ha)
va
- Vertical Alignment valueha
- Horizontal Alignment value
public Directive align(Wire wa)
wa
- The Wire to align with.
public Directive alignLSB()
public Directive alignMSB()
public Directive alignCenter(Wire wa)
wa
- The wire with which to align by.
public Directive alignLSB(Wire wa)
wa
- The wire with which to align by.
public Directive alignMSB(Wire wa)
wa
- The wire with which to align by.
public Wire getAlignmentWire()
public Wire setAlignmentWire(Wire wa)
wa
- The alignment Wire to be used for this Directive (byucc.jhdl.base.Wire)public int getDirection()
public int getVAlign()
public int getHAlign()
public boolean isPortAligned()
true
if portAligned, false
if
not portAligned.public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |