|
|||||||||||
| 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.lt
Generic less-than comparator.

Lt 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". An exception will be thrown if the two inputs are different widths.
This module works by instantiating a subtractor. If the user wants a signed comparator, the module sign extends the input by 1 bit, performs in1 - in2, and then returns the sign bit of the result. If the user wants an unsigned comparator, the module simply performs in1 - in2, inverts the carry-out, and returns that as the output.
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 | |
lt(Node parent,
Wire in1,
Wire in2,
boolean signed,
Wire out)
|
|
lt(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 |
java.lang.String |
getCellName()
Access the cell name associated with a derived class. |
void |
propagate()
Propagate is used in the behavioral model to propagate the inputs |
void |
reset()
Resets the output to zero |