Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__LPGPU_Arch__HWDef
annotate SimParams.h @ 9:a4fc1d735dce
New Structures for InPorts and OutPorts Defined
| author | sohan |
|---|---|
| date | Tue, 13 Mar 2012 18:08:09 +0100 |
| parents | def43ecee616 |
| children |
| rev | line source |
|---|---|
| Me@0 | 1 /* |
| Me@0 | 2 * Copyright 2011 OpenSourceStewardshipFoundation.org |
| Me@0 | 3 * Licensed under GNU General Public License version 2 |
| Me@0 | 4 */ |
| Me@0 | 5 |
| Me@0 | 6 #ifndef SIM_PARAMS_ |
| Me@0 | 7 #define SIM_PARAMS_ |
| Me@0 | 8 |
| Me@0 | 9 #include <stdio.h> |
| Me@0 | 10 #include <unistd.h> |
| Me@0 | 11 #include <malloc.h> |
| Me@0 | 12 |
| kshalle@1 | 13 #include "../VMS_Implementations/VMS_impl/VMS_primitive_data_types.h" |
| kshalle@1 | 14 #include "../C_Libraries/ParamHelper/Param.h" |
| Me@0 | 15 |
| Me@0 | 16 |
| Me@0 | 17 //============================== Structures ============================== |
| Me@0 | 18 typedef struct |
| Me@0 | 19 { uint8 *guestApp; |
| Me@0 | 20 uint8 *systemCode; |
| Me@0 | 21 int32 numNodes; |
| Me@0 | 22 } |
| Me@0 | 23 SimulationResults; |
| Me@0 | 24 |
| Me@0 | 25 typedef struct |
| Me@0 | 26 { uint8 *guestApp; |
| Me@0 | 27 uint8 *systemCode; |
| Me@0 | 28 int32 numNodes; |
| Me@0 | 29 SimulationResults *simResults; |
| Me@0 | 30 } |
| Me@0 | 31 SimulationParams; |
| Me@0 | 32 |
| Me@0 | 33 //============================== Functions ================================ |
| Me@0 | 34 void |
| Me@0 | 35 printSimResults( SimulationResults simResults ); |
| Me@0 | 36 |
| Me@0 | 37 void |
| Me@0 | 38 fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); |
| Me@0 | 39 |
| Me@0 | 40 |
| Me@0 | 41 //=========================================================================== |
| Me@0 | 42 |
| Me@0 | 43 #endif /**/ |
| Me@0 | 44 |
| Me@0 | 45 |
