|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthades.simulator.SimObject
hades.models.pic.TurboPicCore
hades.models.pic.TurboPic16C84
| Nested Class Summary |
| Field Summary | |
(package private) static java.lang.Integer[] |
_integerTable
|
(package private) double |
clk4Period
|
(package private) double |
clk8Period
|
PortStdLogic1164[] |
portA
|
PortStdLogic1164[] |
portB
|
PortStdLogic1164 |
portClkin
|
PortStdLogic1164 |
portClkout
|
PortString |
portINSTR
|
PortInteger |
portINTCON
|
PortStdLogic1164 |
portMclr
|
PortInteger |
portPC
|
PortInteger |
portSTATUS
|
PortInteger |
portW
|
(package private) double |
t_now
|
(package private) double |
t_portdelay
|
| Fields inherited from class hades.models.pic.TurboPicCore |
_C, _cycle, _DC, _EEADR, _EECON1, _EECON2, _EEDATA, _EEIE, _FSR, _GIE, _INDF, _INTCON, _INTE, _INTF, _IRP, _nPD, _nTO, _OPTION, _PC, _PCL, _PCLATH, _period, _PORTA_LATCH, _PORTB_LATCH, _RA0, _RA1, _RA2, _RA3, _RA4, _RBIE, _RBIF, _RP0, _RP1, _SP, _STATUS, _T0IE, _T0IF, _TMR0, _TRISA, _TRISB, _W, _WDT, _WDT_PRESCALER, _Z, bank0BitNames, bank0Names, bank1BitNames, bank1Names, eeprom, EEPROM_SIZE, enableDebugSignals, enableGUI, enableIRQs, enableWDT, EPROM_SIZE, isResetOrSleep, labelTable, MAX_RAM, n_errors, needCheckIRQs, program, register, stack, STACK_DEPTH |
| Fields inherited from class hades.simulator.SimObject |
classloader, console, debug, editor, name, parent, ports, propertySheet, simulator, symbol, versionId, visible |
| Constructor Summary | |
TurboPic16C84()
|
|
| Method Summary | |
void |
configure()
create and display a 'ConfigDialog' to set the parameters for a SimObject. |
void |
createGUI()
|
void |
createPorts()
|
void |
elaborate(java.lang.Object dummy)
elaborate(): This method is called by the simulation engine to initialize the simulation object. |
void |
evaluate(java.lang.Object arg)
this method is called in reaction to external simulation events, namely, when one of the input signals to the PIC microcontroller changes. |
double |
getClockFrequency()
return the input clock period of this PIC. |
java.lang.String[] |
getExternalResources()
return a String[] array of length 1 with the program ROM init file. |
java.lang.Integer |
getInteger(int i)
|
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 tool tip message (with the timing parameters) |
boolean |
initialize(java.lang.String s)
initialize this PIC from String s, which contains the version ID (1001), the clock period (double value in seconds), and the resource name of the initial program ROM/HEX file. |
boolean |
needsExternalResources()
we use one external resource: the program ROM initialization file. |
boolean |
nextExternalEventIsLate()
|
int |
readPortA()
read operation on PORT A. |
int |
readPortB()
read operation on PORT B. |
void |
reset()
reset the PIC processor |
void |
scheduleDebugSignals()
generate simulation events with the current values of the PC, W, STATUS, INTCON, and INSTRUCTION (opcode/mnemonic) registers on the corresponding debug output signals. |
void |
setClockFrequency(double f)
set the input clock period of this PIC. |
void |
singleStep()
execute one PIC instruction |
void |
wakeup(java.lang.Object event)
wakeup: called by the simulation engine after the instruction-cycle sleep period has elapsed. |
void |
write(java.io.PrintWriter ps)
|
void |
writePortA(int value)
write operation to PORT A. |
void |
writePortB(int value)
write operation to PORT B. |
void |
writeTrisA(int value)
write operation on the TRIS A register. |
void |
writeTrisB(int value)
write operation on the TRIS B register. |
| Methods inherited from class hades.models.pic.TurboPicCore |
__fill, __formatBit, __formatFD, __formatLabel, __formatLiteral, __formatReg, __hex, __xhex, _d, _h, checkIRQs, clearLabels, createAndInitializeMemoryArrays, createDECFSZ, decode, dump, dumpProgram, error, isCodeBreakPoint, isNormalRegister, isSpecialRegister, loadProgram, loadProgramFormatHEX, loadProgramFormatROM, main, readReg, readRegRaw, setCodeBreakPoint, setEnableIRQs, setEnableWDT, steps, tinySelftest, writePCL, writeReg |
| Methods inherited from class hades.simulator.SimObject |
constructDynamicSymbol, copy, getBindkey, getClassLoader, getDebug, getEditor, getFullName, getName, getParent, getPort, getPorts, getResourceAsStream, getSimulator, getSymbol, getSymbolResourceName, getVersionId, isVisible, keyPressed, message, mousePressed, needsDynamicSymbol, setClassLoader, setConsole, setDebug, setEditor, setName, setParent, setPorts, setSimulator, setSymbol, setVersionId, setVisible, tearDown, toString |
| 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 |
public PortStdLogic1164 portClkin
public PortStdLogic1164 portClkout
public PortStdLogic1164 portMclr
public PortStdLogic1164[] portA
public PortStdLogic1164[] portB
public PortInteger portPC
public PortInteger portW
public PortInteger portSTATUS
public PortInteger portINTCON
public PortString portINSTR
double clk4Period
double clk8Period
double t_now
double t_portdelay
static java.lang.Integer[] _integerTable
| Constructor Detail |
public TurboPic16C84()
| Method Detail |
public void createPorts()
public void elaborate(java.lang.Object dummy)
Simulatable
elaborate in interface Simulatableelaborate in class SimObjectpublic void wakeup(java.lang.Object event)
wakeup in interface Wakeablepublic boolean nextExternalEventIsLate()
public void evaluate(java.lang.Object arg)
evaluate in interface Simulatableevaluate in class SimObjectarg - an arbitrary object argumentpublic boolean initialize(java.lang.String s)
initialize in class SimObjectpublic void write(java.io.PrintWriter ps)
write in class SimObjectpublic boolean needsExternalResources()
needsExternalResources in class SimObjectpublic java.lang.String[] getExternalResources()
getExternalResources in class SimObject
public java.lang.String getToolTip(java.awt.Point position,
long millis)
getToolTip in interface ContextToolTipgetToolTip in class SimObjectpublic void setClockFrequency(double f)
public double getClockFrequency()
public int readPortA()
readPortA in class TurboPicCorepublic int readPortB()
readPortB in class TurboPicCorepublic void writePortA(int value)
writePortA in class TurboPicCorepublic void writePortB(int value)
writePortB in class TurboPicCorepublic void writeTrisA(int value)
writeTrisA in class TurboPicCorepublic void writeTrisB(int value)
writeTrisB in class TurboPicCorepublic void reset()
TurboPicCore
reset in class TurboPicCorepublic void singleStep()
singleStep in class TurboPicCorepublic void scheduleDebugSignals()
public java.lang.Integer getInteger(int i)
public java.awt.Component getPropertySheet()
SimObject
getPropertySheet in class SimObjectpublic void configure()
SimObject
configure in class SimObjectpublic void createGUI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||