Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
diff src/Application/SimParams.h @ 5:648207f2e38f
Netlist creation runnable + creation of faked simulation results
| author | hausers |
|---|---|
| date | Tue, 06 Dec 2011 18:46:42 +0100 |
| parents | 7566745e812a |
| children |
line diff
1.1 --- a/src/Application/SimParams.h Mon Dec 05 12:24:44 2011 +0100 1.2 +++ b/src/Application/SimParams.h Tue Dec 06 18:46:42 2011 +0100 1.3 @@ -1,1 +1,45 @@ 1.4 -/* 1.5 * Copyright 2011 OpenSourceStewardshipFoundation.org 1.6 * Licensed under GNU General Public License version 2 1.7 */ 1.8 1.9 #ifndef SIM_PARAMS_ 1.10 #define SIM_PARAMS_ 1.11 1.12 #include <stdio.h> 1.13 #include <unistd.h> 1.14 #include <malloc.h> 1.15 1.16 #include "../HWSim_lib/VMS/VMS_primitive_data_types.h" 1.17 #include "ParamHelper/Param.h" 1.18 1.19 1.20 //============================== Structures ============================== 1.21 typedef struct 1.22 { uint8 *guestApp; 1.23 uint8 *systemCode; 1.24 int32 numNodes; 1.25 } 1.26 SimulationResults; 1.27 1.28 typedef struct 1.29 { uint8 *guestApp; 1.30 uint8 *systemCode; 1.31 int32 numNodes; 1.32 SimulationResults *simResults; 1.33 } 1.34 SimulationParams; 1.35 1.36 //============================== Functions ================================ 1.37 void 1.38 printSimResults( SimulationResults simResults ); 1.39 1.40 void 1.41 fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); 1.42 1.43 1.44 //=========================================================================== 1.45 1.46 #endif /**/ 1.47 1.48 \ No newline at end of file 1.49 +/* 1.50 + * Copyright 2011 OpenSourceStewardshipFoundation.org 1.51 + * Licensed under GNU General Public License version 2 1.52 + */ 1.53 + 1.54 +#ifndef SIM_PARAMS_ 1.55 +#define SIM_PARAMS_ 1.56 + 1.57 +#include <stdio.h> 1.58 +#include <unistd.h> 1.59 +#include <malloc.h> 1.60 + 1.61 +#include "../HWSim_lib/VMS/VMS_primitive_data_types.h" 1.62 +#include "ParamHelper/Param.h" 1.63 + 1.64 + 1.65 +//============================== Structures ============================== 1.66 +typedef struct 1.67 + { uint8 *guestApp; 1.68 + uint8 *systemCode; 1.69 + int32 numNodes; 1.70 + } 1.71 +SimulationResults; 1.72 + 1.73 +typedef struct 1.74 + { uint8 *guestApp; 1.75 + uint8 *systemCode; 1.76 + int32 numNodes; 1.77 + SimulationResults *simResults; 1.78 + } 1.79 +SimulationParams; 1.80 + 1.81 +//============================== Functions ================================ 1.82 +void 1.83 +printSimResults( SimulationResults simResults ); 1.84 + 1.85 +void 1.86 +fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); 1.87 + 1.88 + 1.89 +//=========================================================================== 1.90 + 1.91 +#endif /**/ 1.92 + 1.93 +
