|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.base.Nameable
byucc.jhdl.base.Node
byucc.jhdl.base.Cell
byucc.jhdl.base.Structural
byucc.jhdl.Logic.LogicGates
byucc.jhdl.Logic.LogicStatic
byucc.jhdl.Logic.Logic
byucc.jhdl.CSRC.Shifter
This shifter was taken straight from the Xilinx directory. The minimum changes were made to simply get it to work with CSRC
Field Summary | |
static CellInterface[] |
cell_interface
|
static boolean |
LEFT
Simple flag for identifying the left-shift direction in the constructor call. |
static boolean |
RIGHT
Simple flag for identifying the right-shift direction in the constructor call. |
Fields inherited from class byucc.jhdl.Logic.Logic |
ABOVE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_LSB, ALIGN_MSB, ALIGN_RIGHT, ALIGN_TOP, BELOW, DOWN, EAST_OF, LEFT_OF, MAX_PACK, NORTH_OF, ON, ONTOP, ONTOP_OF, RIGHT_OF, SOUTH_OF, TOLEFT, TORIGHT, UNCONSTRAINED, UP, WEST_OF |
Fields inherited from class byucc.jhdl.Logic.LogicGates |
tech_mapper |
Constructor Summary | |
Shifter(Node parent,
Wire in,
Wire out,
int shift,
boolean direction,
boolean arithmetic)
Constructs a Shifter that shifts the in Wire
parameter, with the out Wire parameter as output,
and with the shift amount, direction, and mode given by the
integer and boolean parameters. |
Method Summary | |
boolean |
cellInterfaceDeterminesUniqueNetlistStructure()
The port interface for Shifter: i: in ("n") o: out ("n") parameter: "n" (INTEGER). |
java.lang.String |
getCellName()
Returns the netlist-name of the Shifter, which is: ashift<wire_width>r<shift_amount> , for arithmetic shift right;
shift<wire_width>r<shift_amount> , for logical shift right;
shift<wire_width>l<shift_amount> , for
logical shift left. |
int |
type()
This method returns one of the predefined schematic constants to identify the type of this cell. |
Methods inherited from class byucc.jhdl.base.Node |
addObservable, addSimulatorCallback, checkAll, delete, getBuildingFlag, getChildren, getChildrenEnumeration, getInstanceName, getParent, getParentCell, getRelatives, getSystem, getWires, optimize, orphanAllowed, printAllChildren, printTree, removeSimulatorCallback, setDefaultClock |
Methods inherited from class byucc.jhdl.base.Nameable |
caseSensitivity, caseSensitivity, disableNameClashChecking, getFullName, getFullNameNoTestBench, getHierNameNoTestBench, getInstanceNo, getInstanceNumber, getLeafName, getLeafName, getRelativeName, getUserName, getUserName, hasUserSpecifiedName, isDescendantOf, setInstanceNumber |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static CellInterface[] cell_interface
public static final boolean LEFT
public static final boolean RIGHT
Constructor Detail |
public Shifter(Node parent, Wire in, Wire out, int shift, boolean direction, boolean arithmetic)
in
Wire
parameter, with the out
Wire parameter as output,
and with the shift amount, direction, and mode given by the
integer and boolean parameters.
parent
- The Node
to be used as the
hierarchical parent of the Shifter.in
- The wire to be used as the input to the Shifter.out
- The wire to be used as the output to the Shifter.shift
- This shift amount.direction
- The direction of shift -- Shifter.LEFT passed
in makes a left-shift be implemented; Shifter.RIGHT passed in
makes a right-shifted.arithmetic
- True
if an arithmetic shift is to
be implemented.Method Detail |
public boolean cellInterfaceDeterminesUniqueNetlistStructure()
cellInterfaceDeterminesUniqueNetlistStructure
in class Cell
public java.lang.String getCellName()
ashift<wire_width>r<shift_amount>
, for arithmetic shift right;
shift<wire_width>r<shift_amount>
, for logical shift right;
shift<wire_width>l<shift_amount>
, for
logical shift left.
getCellName
in class Cell
String
of the Shifter.public int type()
PreDefinedSchematic
type
in interface PreDefinedSchematic
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |