|
|||||||||||
| 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.Logic.Modules.FreeRunTimer
a free-running timer that triggers (times out) at a user-defined interval. This could be used, for instance, as a real-time clock (RTC) in a System-on-Chip. The user specifies the clock frequency in increments of .1 MHz, and, if desired the trigger interval in increments of 10 ns.
| Field Summary | |
static CellInterface[] |
cell_interface
cell's interface to the outside world |
protected int |
clock_freq
|
static double |
CLOCK_FREQ_INCREMENTS
|
protected static BV |
counter_reset_value
|
protected int |
counter_width
|
static boolean |
debug
|
protected int |
interval
|
protected static BV |
ONE_VALUE
|
static int |
SINGLE_BIT
|
protected Wire |
time_out
main wires and their widths |
static double |
TIME_OUT_INCREMENTS
|
protected BV |
time_out_match
|
protected static BV |
ZERO_VALUE
|
| 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 | |
FreeRunTimer(Node parent,
Wire time_out,
int clock_freq,
int interval)
|
|
| Method Summary | |
protected void |
build()
|
protected void |
calculateTimeOutMatch()
|
void |
clock()
Users define synchronous behavior in this method using standard JHDL constructs. |
boolean |
defaultSimulationModelIsBehavioral()
The default simulation model is structural for Structural cells. |
protected void |
getValues()
|
protected void |
initBehavioralModel()
|
protected void |
putValues()
|
void |
reset()
If you define a behavior, you must also define a reset method for resetting the synchonous part of your model. |