org.opencores.structure
Class NodePrim

java.lang.Object
  |
  +--org.opencores.structure.Node
        |
        +--org.opencores.structure.NodeLUT
              |
              +--org.opencores.structure.NodePrim

public final class NodePrim
extends NodeLUT

LUT cell type class. It implements some standard primitives


Field Summary
static int AND2
          primitive
static int BUF
          primitive
private static byte[] funcs
          primitive's functions
static int GND
          primitive
static int INV
          primitive
static java.lang.String[] names
          primitive's names
static int NAND2
          primitive
static int NOR2
          primitive
static int OR2
          primitive
private static int[] sizes
          primitive's number of inputs
static int VCC
          primitive
static int XOR2
          primitive
 
Fields inherited from class org.opencores.structure.NodeLUT
func, OUT
 
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
NodePrim(int type)
           
 
Method Summary
 java.lang.Object clone()
          creates new (unlinked) node with same parameters.
 void duplicate(NodePrim n)
          duplicates parameters from n to this
 java.lang.String toString()
           
 
Methods inherited from class org.opencores.structure.NodeLUT
calc, duplicate, isAChild, NumJoinInputs, NumJoinInputsEx, permutateInputs, permutateInputsInv, size
 
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

INV

public static final int INV
primitive

XOR2

public static final int XOR2
primitive

AND2

public static final int AND2
primitive

OR2

public static final int OR2
primitive

NAND2

public static final int NAND2
primitive

NOR2

public static final int NOR2
primitive

GND

public static final int GND
primitive

VCC

public static final int VCC
primitive

BUF

public static final int BUF
primitive

sizes

private static final int[] sizes
primitive's number of inputs

funcs

private static final byte[] funcs
primitive's functions

names

public static final java.lang.String[] names
primitive's names
Constructor Detail

NodePrim

public NodePrim(int type)
Parameters:
type - primitive type (e.g. NodePrim.INV)
Method Detail

toString

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

clone

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

duplicate

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