Simulator 2 Initialization, changes some of the basics
++ Sim02 Files and Makefile
This commit is contained in:
parent
a2211ac942
commit
cb1bd64489
14 changed files with 2901 additions and 0 deletions
62
Sim02/simulator.h
Normal file
62
Sim02/simulator.h
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
#ifndef SIMULATORX
|
||||
#define SIMULATORX
|
||||
|
||||
#include "StandardConstants.h"
|
||||
#include "configops.h"
|
||||
#include "metadataops.h"
|
||||
|
||||
// data structures
|
||||
|
||||
typedef enum{
|
||||
PROCESS_STATE_NEW = 0,
|
||||
PROCESS_STATE_READY,
|
||||
PROCESS_STATE_RUNNING,
|
||||
PROCESS_STATE_BLOCKED,
|
||||
PROCESS_STATE_TERMINATED
|
||||
} PROCESS_STATES;
|
||||
|
||||
typedef struct ProcessControlBlockStruct
|
||||
{
|
||||
int uniquePid;
|
||||
PROCESS_STATES process_state;
|
||||
//
|
||||
} ProcessControlBlock;
|
||||
|
||||
/*
|
||||
Name: ???
|
||||
Process: ???
|
||||
Function Input/Parameters: ???
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: none
|
||||
Device Input/Device: none
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
// need a function (or functions) to handle FILE I/O?
|
||||
|
||||
/*
|
||||
Name: ???
|
||||
Process: ???
|
||||
// Function Input/Parameters: ???
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: none
|
||||
Device Input/Device: none
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
// need a function to ???
|
||||
|
||||
/*
|
||||
Name: runSim
|
||||
Process: primary simulation driver
|
||||
Function Input/Parameters: configuration data (ConfigDataType *),
|
||||
metadata (OpCodeType *)
|
||||
Function Output/Parameters: none
|
||||
Function Output/Returned: none
|
||||
Device Input/Device: none
|
||||
Device Output/Device: none
|
||||
Dependencies: ???
|
||||
*/
|
||||
void runSim(ConfigDataType *configPtr, OpCodeType *metaDataMstrPtr);
|
||||
|
||||
#endif // SIMULATORX
|
||||
Loading…
Add table
Add a link
Reference in a new issue