|
|||||||||||
| 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 |