byucc.jhdl.apps.Viewers.Waves
Class WatchInterface

java.lang.Object
  extended bybyucc.jhdl.apps.Viewers.Waves.WatchInterface
All Implemented Interfaces:
SimulatorCallback, Tool

public class WatchInterface
extends java.lang.Object
implements Tool, SimulatorCallback

BrowserWavesNameTable.java Created: ??

Version:
1 This is the manager of the Waves Veiwer. Here all the wires being watched are kept track of, and BrowserWaves GUI is initialized here when the first wire is added. Also the GUI and this class exchange information and keep the wires and cycles updated. This class creates the generic frame, and then the generic frame helps to manage the GUI.
Author:
??

Constructor Summary
WatchInterface()
           
WatchInterface(ViewManager vMan)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addCycles(java.lang.String[] theCycles)
           
 void addMenuItems(javax.swing.JMenu menu, java.lang.String menuTitle)
           
 void addStepButton()
           
 boolean addWatch(java.lang.String wireName, int width, BV[] inData)
           
 boolean addWatch(Wire toAdd)
           
 boolean addWatch(Wire toAdd, java.lang.String wireName)
           
 void changeCycle(java.lang.String cycle)
           
 void decSize()
           
 void dispose()
           
 void dumpDataToFile(java.lang.String fName)
           
 javax.swing.JMenu getMenu()
           
 javax.swing.JMenuBar getMenuBar()
           
 java.lang.String getName()
           
protected  ViewManager getViewManager()
           
 void incSize()
           
 boolean isEmpty()
           
 boolean isWatched(java.lang.String key)
           
 void killBrowserDataView()
           
 void killCurrentWindow()
           
 void modifyFormat(java.lang.String newFormat, int formatNumber)
           
 void modifyRadix(int sIndex)
           
protected  boolean removeSelected()
           
 void removeStepButton()
           
 boolean removeWatch(java.lang.String wireName)
           
 void reset()
           
 void setCursor(java.awt.Cursor newCursor)
           
 void setFrame(GenericFrame gFrame)
           
 void setReadCycle(int c)
           
 void setReadStep(int s)
           
 void setShortName(boolean value)
           
 void setTableWidth(int tw)
           
 void setViewStart(int newVS)
           
 void setWavesType(boolean newValue)
           
 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.
 void update()
           
 void updateDataRow(int row)
           
 void updateDataScroll(int value)
           
 void updateNameRow(int row)
           
 void updateNameScroll(int value)
           
 void updateSelectedFormat(int row)
           
 void updateWaves(boolean nameChange)
           
 void updateWaves(boolean align, boolean nameChange)
           
 void updateWaves(int sCycle, boolean nameChange)
           
 void updateWaves(int sCycle, boolean align, boolean nameChange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatchInterface

public WatchInterface(ViewManager vMan)

WatchInterface

public WatchInterface()
Method Detail

getViewManager

protected ViewManager getViewManager()

setReadCycle

public void setReadCycle(int c)

setReadStep

public void setReadStep(int s)

dumpDataToFile

public void dumpDataToFile(java.lang.String fName)

setCursor

public void setCursor(java.awt.Cursor newCursor)

setWavesType

public void setWavesType(boolean newValue)

update

public void update()

reset

public void reset()

updateDataScroll

public void updateDataScroll(int value)

updateNameScroll

public void updateNameScroll(int value)

setShortName

public void setShortName(boolean value)

updateDataRow

public void updateDataRow(int row)

updateNameRow

public void updateNameRow(int row)

updateSelectedFormat

public void updateSelectedFormat(int row)

modifyFormat

public void modifyFormat(java.lang.String newFormat,
                         int formatNumber)

modifyRadix

public void modifyRadix(int sIndex)

changeCycle

public void changeCycle(java.lang.String cycle)

isEmpty

public boolean isEmpty()

isWatched

public boolean isWatched(java.lang.String key)

updateWaves

public void updateWaves(int sCycle,
                        boolean nameChange)

updateWaves

public void updateWaves(boolean nameChange)

updateWaves

public void updateWaves(boolean align,
                        boolean nameChange)

updateWaves

public void updateWaves(int sCycle,
                        boolean align,
                        boolean nameChange)

addWatch

public boolean addWatch(Wire toAdd)

addWatch

public boolean addWatch(Wire toAdd,
                        java.lang.String wireName)

addWatch

public boolean addWatch(java.lang.String wireName,
                        int width,
                        BV[] inData)

addCycles

public void addCycles(java.lang.String[] theCycles)

removeSelected

protected boolean removeSelected()

removeWatch

public boolean removeWatch(java.lang.String wireName)

killBrowserDataView

public void killBrowserDataView()

killCurrentWindow

public void killCurrentWindow()

setViewStart

public void setViewStart(int newVS)

decSize

public void decSize()

incSize

public void incSize()

setTableWidth

public void setTableWidth(int tw)

addMenuItems

public void addMenuItems(javax.swing.JMenu menu,
                         java.lang.String menuTitle)
Specified by:
addMenuItems in interface Tool

getMenu

public javax.swing.JMenu getMenu()
Specified by:
getMenu in interface Tool

getMenuBar

public javax.swing.JMenuBar getMenuBar()
Specified by:
getMenuBar in interface Tool

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface Tool

setFrame

public void setFrame(GenericFrame gFrame)
Specified by:
setFrame in interface Tool

getName

public java.lang.String getName()
Specified by:
getName in interface Tool

dispose

public void dispose()

addStepButton

public void addStepButton()

removeStepButton

public void removeStepButton()

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().

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


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.