|
|||||||||||
| 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.Xilinx.Virtex2.Modules.PriorityEncoder
byucc.jhdl.Xilinx.Virtex2.Modules.ReversePriorityEncoder
encodes the input value, prioritizing the bits by LSB has highest priority. Identical to PriorityEnoder except LSB has highest priority.
| Field Summary |
| Fields inherited from class byucc.jhdl.Xilinx.Virtex2.Modules.PriorityEncoder |
cell_interface, SINGLE_BIT |
| 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 | |
ReversePriorityEncoder(Node parent,
Wire i,
Wire o,
Wire zero)
"Active" output is removed, for performance reasons. |
|
ReversePriorityEncoder(Node parent,
Wire i,
Wire o,
Wire zero,
Wire active)
|
|
| Method Summary | |
protected void |
build()
builds the structural circuit for a (reversed) priority encoder. |
void |
clock()
Users define synchronous behavior in this method using standard JHDL constructs. |
protected BV |
compute()
|
boolean |
defaultSimulationModelIsBehavioral()
The default simulation model is structural for Structural cells. |
protected void |
getValues()
|
protected void |
initBehavioralModel()
|
void |
propagate()
Users defined propagatable behavior using standard JHDL constructs. |
protected void |
putValues()
|
void |
reset()
If you define a behavior, you must also define a reset method for resetting the synchonous part of your model. |
| 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 |
| Constructor Detail |
public ReversePriorityEncoder(Node parent,
Wire i,
Wire o,
Wire zero,
Wire active)
i - the input to be encodedo - the encoded outputzero - '1' if the zeroeth bit of the input is high, '0' otherwiseactive - '1' if any of the input bits are high, '0' otherwise
public ReversePriorityEncoder(Node parent,
Wire i,
Wire o,
Wire zero)
i - the input to be encodedo - the encoded outputzero - '1' if the zeroeth bit of the input is high, '0' otherwise| Method Detail |
public void reset()
Structural
reset in interface Clockablereset in class PriorityEncoderpublic void clock()
Structural
clock in interface Clockableclock in class PriorityEncoderpublic void propagate()
Structural
propagate in interface byucc.jhdl.base.Propagateablepropagate in class PriorityEncoderprotected BV compute()
compute in class PriorityEncoderprotected void getValues()
getValues in class PriorityEncoderprotected void putValues()
putValues in class PriorityEncoderprotected void initBehavioralModel()
initBehavioralModel in class PriorityEncoderpublic boolean defaultSimulationModelIsBehavioral()
Structural
defaultSimulationModelIsBehavioral in class PriorityEncoderprotected void build()
build in class PriorityEncoder
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||