|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.emulator.Emulator
public class Emulator
Emulator - The main class in charge of running the emulator. This class contains all the main objects that need to be accessed from user code; The EmuWorld, SignalEnvironment, DaemonCommunicator, WorldViewer and the EventQueue. Startup proceeds in two phases. First init() is called to initialize data structures. start() is then called to begin actual emulation. Note that all modules must not begin actual emulation or assume the presence of real hardware before start() is called. This allows utility code (e.g. verilog generation code) to construct an emulator and access data structures without actually performing emulation.
Field Summary | |
---|---|
protected static String |
BUILD_NUMBER
|
protected CommReceiver |
commReceiver
|
protected CommSender |
commSender
|
protected DaemonCommunicator |
daemonCommunicator
|
private static String |
DEMO_MODE_PROP
|
static String |
DEMO_SCHED_SERVER
|
static boolean |
demoMode
|
protected DSPConfiguration |
dspConfiguration
|
protected EmuHWConfiguration |
emuHWConfiguration
|
protected EmuEventQueue |
eventQueue
|
protected Thread |
eventT
|
protected GUIServerControl |
guiServerControl
|
protected GUISettings |
guiSettings
|
protected Logger |
log
|
protected static String |
MAJOR_VERSION
|
private boolean |
noGUI
|
private SchedClient |
schedClient
|
protected ScriptController |
scriptController
|
protected SignalEnvironment |
sigEnv
|
private String[][] |
userArgs
|
private String[] |
userClassNames
|
private String[] |
userCodeUrls
|
protected EmuWorld |
world
|
protected WorldDef |
worldDef
|
protected WorldViewer |
worldViewer
|
Constructor Summary | |
---|---|
Emulator()
Constructor. |
Method Summary | |
---|---|
CommSender |
getCommSender()
Part of EmuControlInterface Implementation. |
DaemonCommunicator |
getDaemonCommunicator()
|
EmuEventQueue |
getEmuEventQueue()
|
EmuWorld |
getEmuWorld()
Helper API for user code to obtain access to EmuWorld object in the emulator. |
GUISettings |
getGUISettings()
|
EmuHWConfiguration |
getHWConfig()
|
SignalEnvironment |
getSignalEnvironment()
|
WorldDef |
getWorldDef()
|
WorldViewer |
getWorldViewer()
This should not be used within the core emulator code. |
ConfigFileParser |
init(String hwConfigFile,
String pid,
String eid,
String emuConfigFile,
boolean validate)
Initializes the emulator by invoking the parser to parse the config file. |
static void |
main(String[] args)
|
void |
noGUI()
|
void |
shutdown()
Shuts down the emulator. |
void |
shutdownAndExit(int exitCode)
|
void |
start()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EmuWorld world
protected EmuEventQueue eventQueue
protected WorldViewer worldViewer
protected SignalEnvironment sigEnv
protected ScriptController scriptController
protected DaemonCommunicator daemonCommunicator
protected Thread eventT
protected WorldDef worldDef
protected DSPConfiguration dspConfiguration
protected EmuHWConfiguration emuHWConfiguration
protected CommSender commSender
protected CommReceiver commReceiver
protected GUIServerControl guiServerControl
protected GUISettings guiSettings
private String[] userCodeUrls
private String[] userClassNames
private String[][] userArgs
private SchedClient schedClient
private boolean noGUI
private static final String DEMO_MODE_PROP
public static final String DEMO_SCHED_SERVER
public static final boolean demoMode
protected static String MAJOR_VERSION
protected static String BUILD_NUMBER
protected Logger log
Constructor Detail |
---|
public Emulator()
Method Detail |
---|
public void noGUI()
public ConfigFileParser init(String hwConfigFile, String pid, String eid, String emuConfigFile, boolean validate) throws IOException
hwConfigFile
- Hardware configuration file. XXX undocumented!pid
- What is this? Nobody knows! XXX undocumented!eid
- What is this? Nobody knows! XXX undocumented!emuconfigFile
- The XML config file that defines the emulator and node
properties and the user class files that need to be
loaded.
IOException
public void start()
public EmuWorld getEmuWorld()
public SignalEnvironment getSignalEnvironment()
public EmuEventQueue getEmuEventQueue()
public WorldDef getWorldDef()
public EmuHWConfiguration getHWConfig()
public DaemonCommunicator getDaemonCommunicator()
public GUISettings getGUISettings()
public void shutdown()
public void shutdownAndExit(int exitCode)
public CommSender getCommSender()
public WorldViewer getWorldViewer()
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |