org.opencores.structure
Class NodeSR

java.lang.Object
  |
  +--org.opencores.structure.Node
        |
        +--org.opencores.structure.NodeRoutable
              |
              +--org.opencores.structure.NodeSR

public class NodeSR
extends NodeRoutable

Special resource node that has no routing capabilities. Actually looks like a simple buffer, but it extends NodeRoutable that routing can handle it


Fields inherited from class org.opencores.structure.NodeRoutable
cost, costs, neigh, neighCoor, NINPUTS_ROUTABLE, nSegments, portsUnassigned, segments
 
Fields inherited from class org.opencores.structure.Node
dir, flag, fx, fy, INOUT, INPUT, link, name, nfx, nfy, OUTPUT, ports, temp, visited, weight, width, x, y
 
Constructor Summary
NodeSR(int idx)
          Constructs new resource node.
 
Method Summary
 boolean isConnectable(int port, int segment)
           
 
Methods inherited from class org.opencores.structure.NodeRoutable
calcCost, lessLoadedNeighbour, opposite, writeBitstream
 
Methods inherited from class org.opencores.structure.Node
clone, duplicate, linkNets, setWidth, toString, unlinkNets
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

NodeSR

public NodeSR(int idx)
Constructs new resource node. Either collector or generator.
Method Detail

isConnectable

public boolean isConnectable(int port,
                             int segment)
Returns:
true whether connection is possible for port port using wire segment segment/i>
Overrides:
isConnectable in class NodeRoutable