|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthades.simulator.SimObject
hades.models.special.GraphicsLCDnfb
GraphicsLCDnfb: display with dual Samsung KS0108 LCD controller.
This class models the logical function of a 128x64 pixel graphical liquid crystal display controlled by a dual KS0108 controller chip.
Nested Class Summary | |
(package private) class |
GraphicsLCDnfb.KS0108
An inner class that models the Samsung KS0108 LCD controller for a 64x64 dot matrix display. |
Field Summary | |
protected static int |
BIT_CL1
|
protected static int |
BIT_CL2
|
protected static int |
BIT_D0
|
protected static int |
BIT_D1
|
protected static int |
BIT_D2
|
protected static int |
BIT_D3
|
protected static int |
BIT_D4
|
protected static int |
BIT_D5
|
protected static int |
BIT_D6
|
protected static int |
BIT_D7
|
protected static int |
BIT_E
|
protected static int |
BIT_FLM
|
protected static int |
BIT_M
|
protected static int |
BIT_RS
|
protected boolean |
busy
|
protected int |
command_word
|
(package private) boolean |
debug
|
(package private) GraphicsLCDnfb.KS0108 |
driver1
|
(package private) GraphicsLCDnfb.KS0108 |
driver2
|
(package private) GraphicsLCDCanvasuniv |
lcdCanvas
|
protected static int |
NO_CS_BITS
|
protected PortStdLogic1164 |
port_CL1
|
protected PortStdLogic1164 |
port_CL2
|
protected PortStdLogic1164 |
port_D0
|
protected PortStdLogic1164 |
port_D1
|
protected PortStdLogic1164 |
port_D2
|
protected PortStdLogic1164 |
port_D3
|
protected PortStdLogic1164 |
port_D4
|
protected PortStdLogic1164 |
port_D5
|
protected PortStdLogic1164 |
port_D6
|
protected PortStdLogic1164 |
port_D7
|
protected PortStdLogic1164 |
port_FLM
|
protected PortStdLogic1164 |
port_M
|
protected PortStdLogic1164 |
port_nR
|
protected PortStdLogic1164 |
port_RS
|
protected PortStdLogic1164 |
port_VO
|
protected Label |
symbolTypeLabel
|
int |
t_awt_repaint_millis
|
(package private) java.awt.Image |
theIcon
|
(package private) java.awt.Frame |
topFrame
|
protected StdLogic1164 |
value_0
|
protected StdLogic1164 |
value_1
|
protected StdLogic1164 |
value_H
|
protected StdLogic1164 |
value_X
|
Fields inherited from class hades.simulator.SimObject |
classloader, console, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
Constructor Summary | |
GraphicsLCDnfb()
GraphicsLCDnfb(): construct a GraphicsLCDnfb and also show the display GUI. |
Method Summary | |
(package private) void |
buildGUI()
|
(package private) void |
buildGUICallbacks()
|
void |
busyWait(double delta_t)
|
void |
changeName()
|
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
SimObject |
copy()
copy(): create a clone of the current GraphicsLCDnfb, including its color |
void |
decode(int command)
|
void |
elaborate(java.lang.Object arg)
elaborate(): We assign a '0' to all our outputs. |
void |
evaluate(java.lang.Object arg)
evaluate(): This LCD controller is sensitive to the falling edge on the enable signal (port_M) only, when the R/S, R/W, and data signals are sampled. |
java.awt.Component |
getPropertySheet()
return a reference to the 'property sheet' or configuration window for this SimObject. |
java.lang.String |
getToolTip(java.awt.Point position,
long millis)
construct a (short) tool tip message for a SimObject. |
boolean |
initialize(java.lang.String s)
initialize a SimObject from a String. |
static void |
main(java.lang.String[] argv)
main(): simple selftest of the GraphicsLCDnfb's GUI |
void |
mousePressed(java.awt.event.MouseEvent me)
react to a MouseEvent. |
void |
setName(java.lang.String name)
set the name of this SimObject. |
void |
setSymbol(Symbol s)
|
static void |
sleep(int millis)
|
java.lang.String |
toString()
toString() - the usual info method |
void |
wakeup(java.lang.Object arg)
called in reaction to our busyWait calls. |
void |
write(java.io.PrintWriter ps)
|
Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, getBindkey, getClassLoader, getDebug, getEditor, getExternalResources, getFullName, getName, getParent, getPort, getPorts, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, needsDynamicSymbol, needsExternalResources, setClassLoader, setConsole, setDebug, setEditor, setParent, setPorts, setSimulator, setVersionId, setVisible, tearDown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface hades.simulator.Simulatable |
message |
Field Detail |
boolean debug
protected boolean busy
protected int command_word
protected PortStdLogic1164 port_RS
protected PortStdLogic1164 port_FLM
protected PortStdLogic1164 port_M
protected PortStdLogic1164 port_CL1
protected PortStdLogic1164 port_CL2
protected PortStdLogic1164 port_nR
protected PortStdLogic1164 port_D7
protected PortStdLogic1164 port_D6
protected PortStdLogic1164 port_D5
protected PortStdLogic1164 port_D4
protected PortStdLogic1164 port_D3
protected PortStdLogic1164 port_D2
protected PortStdLogic1164 port_D1
protected PortStdLogic1164 port_D0
protected PortStdLogic1164 port_VO
protected StdLogic1164 value_0
protected StdLogic1164 value_1
protected StdLogic1164 value_X
protected StdLogic1164 value_H
protected Label symbolTypeLabel
GraphicsLCDnfb.KS0108 driver1
GraphicsLCDnfb.KS0108 driver2
java.awt.Frame topFrame
GraphicsLCDCanvasuniv lcdCanvas
java.awt.Image theIcon
protected static final int NO_CS_BITS
protected static final int BIT_E
protected static final int BIT_CL2
protected static final int BIT_CL1
protected static final int BIT_M
protected static final int BIT_RS
protected static final int BIT_FLM
protected static final int BIT_D7
protected static final int BIT_D6
protected static final int BIT_D5
protected static final int BIT_D4
protected static final int BIT_D3
protected static final int BIT_D2
protected static final int BIT_D1
protected static final int BIT_D0
public int t_awt_repaint_millis
Constructor Detail |
public GraphicsLCDnfb()
Method Detail |
public void setSymbol(Symbol s)
setSymbol
in class SimObject
public void setName(java.lang.String name)
SimObject
To avoid consistency problems, when the user changes a SimObject's name interactively, we also try to enforce a unique name.
setName
in class SimObject
void buildGUI()
void buildGUICallbacks()
public void changeName()
public void write(java.io.PrintWriter ps)
write
in class SimObject
public boolean initialize(java.lang.String s)
SimObject
initialize
in class SimObject
public java.awt.Component getPropertySheet()
SimObject
getPropertySheet
in class SimObject
public void configure()
SimObject
configure
in class SimObject
public void mousePressed(java.awt.event.MouseEvent me)
SimObject
Note that the HADES schematic editor will also deliver jfig.canvas.FigCanvasEvent object, which also include the world-coordinates of the Event.
mousePressed
in class SimObject
public void elaborate(java.lang.Object arg)
elaborate
in interface Simulatable
elaborate
in class SimObject
arg
- This parameter is ignored by GraphicsLCDnfbpublic void evaluate(java.lang.Object arg)
Also, note that the enable pulse duration must be at least 450 nsec, and that all commands except 'read busy flag' are ignored while the controller is busy servicing an older command.
See the data-sheet for details of controller commands and operation.
evaluate
in interface Simulatable
evaluate
in class SimObject
arg
- An arbitrary and unused objectpublic void decode(int command)
public SimObject copy()
copy
in class SimObject
public void busyWait(double delta_t)
public void wakeup(java.lang.Object arg)
wakeup
in interface Wakeable
public java.lang.String getToolTip(java.awt.Point position, long millis)
SimObject
getToolTip
in interface ContextToolTip
getToolTip
in class SimObject
public java.lang.String toString()
toString
in class SimObject
public static void sleep(int millis)
public static void main(java.lang.String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |