|
|||||||||||
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.downcnt
A generic sized down counter
Downcnt is a loadable, holdable down counter. The signal Term_cnt
goes low when the counter contents are zero.
All state changes occur on the rising
edge. See the tables below for a better understanding on how this module
works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Field Summary | |
static CellInterface[] |
cell_interface
|
static java.lang.String |
cellname
The output is a generic width |
static CellInterface[] |
implicit_interface
|
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 |
Fields inherited from class byucc.jhdl.base.Cell |
BOOLEAN, CELL_NAME_DECLARATION, CellInterfaceDeterminesUniqueNetlistStructure, DETERMINE_FROM_STRING, GENERICS_DECLARATION, IMPLICIT_INTERFACE_DECLARATION, INTEGER, INTERFACE_DECLARATION, LONG, PORT_IOS_DECLARATION, PORT_NAMES_DECLARATION, PORT_NET_NAMES_DECLARATION, PORT_PROPERTIES, PORT_WIDTHS_DECLARATION, SIGN_EXT, STRING, ZERO_PAD |
Constructor Summary | |
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire out)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire out,
long resetState)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire out,
long resetState,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire out,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
BV resetState)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
BV resetState,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
long resetState)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
long resetState,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk,
boolean b,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire out)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire out,
long resetState)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire out,
long resetState,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire out,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
BV resetState)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
BV resetState,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
long resetState)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
Wire out,
long resetState,
java.lang.String name)
|
|
downcnt(Node parent,
Wire clk_en,
Wire load,
Wire load_data,
Wire term_cnt,
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 is used in the behavioral model and is called once per clock cycle |
static byucc.jhdl.contrib.modgen.outputs |
compute(int load,
long load_data,
long out,
int width)
Used in behavioral model to compute the output. |
static byucc.jhdl.contrib.modgen.BVoutputs |
computeBV(int load,
BV load_data,
BV out,
int width)
Used in behavioral model to compute the output. |
void |
connectImplicitPorts()
Connects the implicit ports. |
protected boolean |
defaultSimulationModelIsBehavioral()
Default simulation model is behavioral |
java.lang.String |
getCellName()
Access the cell name associated with a derived class. |
void |
propagate()
Propagate isn't used in this class |
void |
reset()
Resets the output to the user-provided reset state. |
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 CellInterface[] implicit_interface
public static final java.lang.String cellname
Constructor Detail |
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire out)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire out)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire out, java.lang.String name)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire out, java.lang.String name)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, java.lang.String name)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, java.lang.String name)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire out, long resetState)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire out, long resetState)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire out, long resetState, java.lang.String name)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire out, long resetState, java.lang.String name)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, long resetState)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, long resetState)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, long resetState, java.lang.String name)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, long resetState, java.lang.String name)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, BV resetState)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, BV resetState)
public downcnt(Node parent, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, BV resetState, java.lang.String name)
public downcnt(Node parent, Wire clk, boolean b, Wire clk_en, Wire load, Wire load_data, Wire term_cnt, Wire out, BV resetState, java.lang.String name)
Method Detail |
public java.lang.String getCellName()
Cell
getCellName
in class Cell
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 void connectImplicitPorts()
Logic
#implicit_ports
.
If you used the old version of connect_implicit_ports, this method will use
reflection to see that the old version gets called correctly.
connectImplicitPorts
in class Logic
public static byucc.jhdl.contrib.modgen.outputs compute(int load, long load_data, long out, int width)
public static byucc.jhdl.contrib.modgen.BVoutputs computeBV(int load, BV load_data, BV out, int width)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |