Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
annotate SimParams.h @ 12:4862640793b6
small changes to the netlist creation
| author | hausers |
|---|---|
| date | Tue, 31 Jan 2012 17:10:29 +0100 |
| parents | |
| children | ddd87abfeefd |
| rev | line source |
|---|---|
| Me@11 | 1 /* |
| Me@11 | 2 * Copyright 2011 OpenSourceStewardshipFoundation.org |
| Me@11 | 3 * Licensed under GNU General Public License version 2 |
| Me@11 | 4 */ |
| Me@11 | 5 |
| Me@11 | 6 #ifndef SIM_PARAMS_ |
| Me@11 | 7 #define SIM_PARAMS_ |
| Me@11 | 8 |
| Me@11 | 9 #include <stdio.h> |
| Me@11 | 10 #include <unistd.h> |
| Me@11 | 11 #include <malloc.h> |
| Me@11 | 12 |
| Me@11 | 13 #include "../HWSim_lib/VMS/VMS_primitive_data_types.h" |
| Me@11 | 14 #include "ParamHelper/Param.h" |
| Me@11 | 15 |
| Me@11 | 16 |
| Me@11 | 17 //============================== Structures ============================== |
| Me@11 | 18 typedef struct |
| Me@11 | 19 { uint8 *guestApp; |
| Me@11 | 20 uint8 *systemCode; |
| Me@11 | 21 int32 numNodes; |
| Me@11 | 22 } |
| Me@11 | 23 SimulationResults; |
| Me@11 | 24 |
| Me@11 | 25 typedef struct |
| Me@11 | 26 { uint8 *guestApp; |
| Me@11 | 27 uint8 *systemCode; |
| Me@11 | 28 int32 numNodes; |
| Me@11 | 29 SimulationResults *simResults; |
| Me@11 | 30 } |
| Me@11 | 31 SimulationParams; |
| Me@11 | 32 |
| Me@11 | 33 //============================== Functions ================================ |
| Me@11 | 34 void |
| Me@11 | 35 printSimResults( SimulationResults simResults ); |
| Me@11 | 36 |
| Me@11 | 37 void |
| Me@11 | 38 fill_sim_params_from_bag( SimulationParams *simParams, ParamBag *paramBag ); |
| Me@11 | 39 |
| Me@11 | 40 |
| Me@11 | 41 //=========================================================================== |
| Me@11 | 42 |
| Me@11 | 43 #endif /**/ |
| Me@11 | 44 |
| Me@11 | 45 |
