org.opencores.edifp
Class Port

java.lang.Object
  |
  +--org.opencores.edifp.Port

public class Port
extends java.lang.Object

port type class, used for EDIF parser purposes


Field Summary
(package private)  int direction
          port direction (relative to instance)
static int INOUT
          input/output type wire
static int INPUT
          input type wire
static java.lang.String[] IONames
          names for port directions
(package private)  java.lang.String name
          port name
(package private)  ENet net
          net, port is connected to
static int OUTPUT
          output type wire
(package private)  int width
          width of port (array length)
 
Constructor Summary
Port()
           
 
Method Summary
static int invertDirection(int direction)
          inverts direction
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, 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

IONames

public static final java.lang.String[] IONames
names for port directions

name

java.lang.String name
port name

direction

int direction
port direction (relative to instance)

width

int width
width of port (array length)

net

ENet net
net, port is connected to
Constructor Detail

Port

public Port()
Method Detail

invertDirection

public static final int invertDirection(int direction)
inverts direction
Parameters:
direction - direction to invert
Returns:
inverted direction (e.g. INPUT|->OUTPUT)