org.opencores.structure
Class NodeAdd

java.lang.Object
  |
  +--org.opencores.structure.Node
        |
        +--org.opencores.structure.NodeAdd

public class NodeAdd
extends Node

Node class that implements full adder Ports: 0: A (in) 1: B (in) 2: C (in) 3: S (out) 4: COUT (out)


Field Summary
static int CARRY_IN_PORT
          index of carry input port
static int CARRY_OUT_PORT
          index of carry ouput port
 NodeAdd group
          first adder of the group
 NodeAdd next
          adder this one passes carry
static int NINPUTS
          number of inputs, they must be listed first in ports
 NodeAdd prev
          adder this one receives carry
 
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
NodeAdd()
          constructs new adder
 
Method Summary
 java.lang.Object clone()
          creates new (unlinked) node with same parameters.
 void duplicate(NodeAdd n)
          duplicates parameters from n to this
 java.lang.String toString()
           
 
Methods inherited from class org.opencores.structure.Node
duplicate, linkNets, setWidth, unlinkNets
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

NINPUTS

public static final int NINPUTS
number of inputs, they must be listed first in ports

CARRY_IN_PORT

public static final int CARRY_IN_PORT
index of carry input port

CARRY_OUT_PORT

public static final int CARRY_OUT_PORT
index of carry ouput port

prev

public NodeAdd prev
adder this one receives carry

next

public NodeAdd next
adder this one passes carry

group

public NodeAdd group
first adder of the group
Constructor Detail

NodeAdd

public NodeAdd()
constructs new adder
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class Node

clone

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

duplicate

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