org.opencores.structure
Class Node

java.lang.Object
  |
  +--org.opencores.structure.Node
Direct Known Subclasses:
FlowMap.Variable, NodeCycleBreak, NodeFF, NodeLUT, NodePort, NodeRoutable

public class Node
extends java.lang.Object

node structure suitable for P&R process


Field Summary
 int[] dir
          directions of ports Edifp.Port.
 boolean flag
          misc flag
 float fx
          RxR position
 float fy
          RxR position
static int INOUT
          input/output type wire
static int INPUT
          input type wire
 Node link
          node link - for graph duplication, etc.
 java.lang.String name
          node name
 float nfx
          temp RxR position
 float nfy
          temp RxR position
static int OUTPUT
          output type wire
 Net[] ports
          nets that are connected to ports
 int temp
          misc used temp
 boolean visited
          visited flag
 float[] weight
          weights of specific ports
 int width
          # function inputs
 int x
          placed position
 int y
          placed position
 
Constructor Summary
(package private) Node()
          Constructs new node.
  Node(int width)
          Allocates new node.
 
Method Summary
 java.lang.Object clone()
          creates new (unlinked) node with same parameters.
 void duplicate(Node n)
          duplicates parameters from n to this
 void linkNets()
          Connect nets to this node, based on ports
 void setWidth(int width)
          changes Node's width, set all ports to INPUT direction
 java.lang.String toString()
           
 void unlinkNets()
          Disconnect nets to this node, based on ports
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

INPUT

public static final int INPUT
input type wire

OUTPUT

public static final int OUTPUT
output type wire

INOUT

public static final int INOUT
input/output type wire

name

public java.lang.String name
node name

ports

public Net[] ports
nets that are connected to ports

weight

public float[] weight
weights of specific ports

dir

public int[] dir
directions of ports Edifp.Port.

x

public int x
placed position

y

public int y
placed position

fx

public float fx
RxR position

fy

public float fy
RxR position

flag

public boolean flag
misc flag

visited

public boolean visited
visited flag

temp

public int temp
misc used temp

nfx

public float nfx
temp RxR position

nfy

public float nfy
temp RxR position

width

public int width
# function inputs

link

public Node link
node link - for graph duplication, etc.
Constructor Detail

Node

public Node(int width)
Allocates new node.
Parameters:
width - number of ports

Node

Node()
Constructs new node.

WARNING: this function should only be called by child constructors.

Method Detail

setWidth

public void setWidth(int width)
changes Node's width, set all ports to INPUT direction
Parameters:
width - number of ports

toString

public java.lang.String toString()
Returns:
graph structure text representation
Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
creates new (unlinked) node with same parameters.
Returns:
duplicated node
Overrides:
clone in class java.lang.Object

duplicate

public void duplicate(Node n)
duplicates parameters from n to this
Parameters:
n - node to copy data from

unlinkNets

public void unlinkNets()
Disconnect nets to this node, based on ports

linkNets

public void linkNets()
Connect nets to this node, based on ports