byucc.jhdl.apps.Tbone
Class TboneObserver
java.lang.Object
byucc.jhdl.apps.Tbone.TboneObserver
- All Implemented Interfaces:
- SimulatorCallback
- public class TboneObserver
- extends java.lang.Object
- implements SimulatorCallback
Method Summary |
java.lang.StringBuffer |
printErrorVal(int index,
java.lang.StringBuffer message)
|
void |
simulatorRefresh(int cycle,
int phase)
This method is called after each simulation run. |
void |
simulatorReset()
This method will be called after the simulation has been reset. |
void |
simulatorUpdate(int cycle,
int phase)
This method is called after each simulation event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TboneObserver
public TboneObserver(Node parent)
simulatorUpdate
public void simulatorUpdate(int cycle,
int phase)
- Description copied from interface:
SimulatorCallback
- This method is called after each simulation event. The granularity
of the event is determined by the specific Simulator within the
simulate() method of the Simulator. For the single-clock simulator,
this corresponds to each cycle of simulation. For the multi-clock
simulator, this corresponds to each step in the clock schedule of
the simulator.
- Specified by:
simulatorUpdate
in interface SimulatorCallback
- Parameters:
cycle
- The current cycle number of the simulator. This
value is the same as the value generated by the call
HWSystem.getTotalClockCount()
.phase
- The current phase of the simulator. This
value is the same as the value generated by the call
HWSystem.getCurrentStepCount()
.
simulatorReset
public void simulatorReset()
- Description copied from interface:
SimulatorCallback
- This method will be called after the simulation has been reset.
Unlike the initialize method of the
Initializeable
interface,
this method is called after every simulator reset. This
method can be used to reset variables associated with watching
the progress of a simulation. Note that the cycle and phase
number is reset to zero before this call is made.
- Specified by:
simulatorReset
in interface SimulatorCallback
simulatorRefresh
public void simulatorRefresh(int cycle,
int phase)
- Description copied from interface:
SimulatorCallback
- This method is called after each simulation run. A simulation run
is a multiple clock/step execution issued by a testbench or jab.
For example, if the user types 'cycle 50', this callback method
will be called after the completed simulation of all 50
clock cycles. Unlike the simulatorUpdate method, this method will
not be called on each simulation event. This method is
useful for GUIs or display widgets that only need to be updated
once the simulaton has paused.
- Specified by:
simulatorRefresh
in interface SimulatorCallback
- Parameters:
cycle
- The current cycle number of the simulator. This
value is the same as the value generated by the call
HWSystem.getTotalClockCount()
.phase
- The current phase of the simulator. This
value is the same as the value generated by the call
HWSystem.getCurrentStepCount()
.
printErrorVal
public java.lang.StringBuffer printErrorVal(int index,
java.lang.StringBuffer message)
Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.