|
|||||||||||
| 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.Virtex.Modules.Equals
Parameterizable module for creating a bit-wise comparator. This module can be either a general-purpose, two-value comparator or a constant-value comparator.
The general-purpose comparator requires a LUT for every two bits of comparison. The constant-value comparator requires a LUT for every four bits of comparison. Both types utilize the carry chain logic to optimize the comparisons for size, routing, and speed.
Note that the constant-vale equals comparator currently only supports up to 32 bits of comparison. Also, the general-purpose equals comparator also only supports up to 32 bits of comparison if it the behavioral model is used for simulation instead of the structural model.
| Field Summary | |
static CellInterface[] |
cell_interface
The ports and parameters of this module. |
| 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 | |
Equals(Node parent,
Wire a,
int b,
Wire eq)
Creates a general-purpose "is equal to" comparator. |
|
Equals(Node parent,
Wire a,
int b,
Wire eq,
java.lang.String instanceName)
Creates a general-purpose "is equal to" comparator. |
|
Equals(Node parent,
Wire a,
Wire b,
Wire eq)
Creates a general-purpose "is equal to" comparator. |
|
Equals(Node parent,
Wire a,
Wire b,
Wire eq,
java.lang.String instanceName)
Creates a general-purpose "is equal to" comparator. |
|
| Method Summary | |
protected boolean |
defaultSimulationModelIsBehavioral()
Default simulation model is structural. |
int |
getConstant()
|
void |
propagate()
This method implements the behavioral model when it is enabled. |
| 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
| Constructor Detail |
public Equals(Node parent,
Wire a,
Wire b,
Wire eq)
parent - the parent Node of this Cella - The wire compared with bb - The wire compared with aeq - The output wire, a single, high-asserted bit.
public Equals(Node parent,
Wire a,
Wire b,
Wire eq,
java.lang.String instanceName)
parent - the parent Node of this Cella - The wire compared with bb - The wire compared with aeq - The output wire, a single, high-asserted bit.instanceName - the name to be assigned to this instance.
public Equals(Node parent,
Wire a,
int b,
Wire eq)
parent - the parent Node of this Cella - The wire compared with the constant value bb - The constant value embedded in this module.eq - The output wire, a single, high-asserted bit.
public Equals(Node parent,
Wire a,
int b,
Wire eq,
java.lang.String instanceName)
parent - the parent Node of this Cella - The wire compared with the constant value bb - The constant value embedded in this module.eq - The output wire, a single, high-asserted bit.instanceName - the name to be assigned to this instance.| Method Detail |
public void propagate()
propagate in interface byucc.jhdl.base.Propagateablepropagate in class Structuralpublic int getConstant()
protected boolean defaultSimulationModelIsBehavioral()
defaultSimulationModelIsBehavioral in class Structural
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||