|
|||||||||||
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.contrib.modgen.eq
Generic equal comparator.
Eq takes in two inputs of the same size. The output is high when in1 == in2, it is low otherwise. The comparison is signed or unsigned based on parameter "signed", although the funcionality is the same. An exception will be thrown if the two inputs are different widths.
This module works by XORing each bit of the inputs together. The output bits are then placed in a NOR gate.
CLB Placement:
CLB count:
Slice Placement:
Slice count:
Field Summary | |
static CellInterface[] |
cell_interface
|
static java.lang.String |
cellname
The input is a generic width |
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 | |
eq(Node parent,
Wire in1,
Wire in2,
boolean signed,
Wire out)
|
|
eq(Node parent,
Wire in1,
Wire in2,
boolean signed,
Wire out,
java.lang.String name)
|
Method Summary | |
boolean |
cellInterfaceDeterminesUniqueNetlistStructure()
When false, the default behavior of this method, each cell will list itself separately in a netlist, guaranteeing that the netlist will not have invalid data at the expense of a larger file-size. |
void |
clock()
Clock isn't used in this module |
int |
compute(BV in1,
BV in2,
boolean signed)
Used in behavioral model to compute the output - BV version |
int |
compute(long in1,
long in2,
boolean signed)
Used in behavioral model to compute the output |
protected boolean |
defaultSimulationModelIsBehavioral()
Default simulation model is behavioral |
void |
propagate()
Propagate is used in the behavioral model to propagate the inputs |
void |
reset()
Resets the output to zero |
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 java.lang.String cellname
Constructor Detail |
public eq(Node parent, Wire in1, Wire in2, boolean signed, Wire out)
public eq(Node parent, Wire in1, Wire in2, boolean signed, Wire out, java.lang.String name)
Method Detail |
public void reset()
reset
in interface Clockable
reset
in class Structural
public void clock()
clock
in interface Clockable
clock
in class Structural
public void propagate()
propagate
in interface byucc.jhdl.base.Propagateable
propagate
in class Structural
protected boolean defaultSimulationModelIsBehavioral()
defaultSimulationModelIsBehavioral
in class Structural
public boolean cellInterfaceDeterminesUniqueNetlistStructure()
Cell
cellInterfaceDeterminesUniqueNetlistStructure
in class Cell
public int compute(long in1, long in2, boolean signed)
public int compute(BV in1, BV in2, boolean signed)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |