Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
comparison src/Application/main.c @ 6:e6ee13464969
small syntax fixups
| author | Me@portablequad |
|---|---|
| date | Wed, 21 Dec 2011 07:19:51 -0800 |
| parents | d872169e58fa |
| children | 648207f2e38f |
comparison
equal
deleted
inserted
replaced
| 2:e101135500b5 | 3:5db8b214975f |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2011 OpenSourceStewardshipFoundation.org | 2 * Copyright 2011 OpenSourceStewardshipFoundation.org |
| 3 * Licensed under GNU General Public License version 2 | 3 * Licensed under BSD |
| 4 * | 4 * |
| 5 * author seanhalle@yahoo.com | 5 * author seanhalle@yahoo.com |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include <malloc.h> | 8 #include <malloc.h> |
| 16 * | 16 * |
| 17 */ | 17 */ |
| 18 | 18 |
| 19 int main( int argc, char **argv ) | 19 int main( int argc, char **argv ) |
| 20 { ParamBag *simParams; | 20 { ParamBag *simParams; |
| 21 HWSimNetlist *netlist; | |
| 21 HWSimResults *simResults; | 22 HWSimResults *simResults; |
| 22 HWSimNetlist *netlist; | |
| 23 | 23 |
| 24 printf( "param file name: %s\n", argv[1] ); | 24 printf( "param file name: %s\n", argv[1] ); |
| 25 | 25 |
| 26 simParams = makeParamBag(); | 26 simParams = makeParamBag(); |
| 27 readParamFileIntoBag( argv[1], simParams ); | 27 readParamFileIntoBag( argv[1], simParams ); |
| 29 netlist = createPingPongNetlist(); | 29 netlist = createPingPongNetlist(); |
| 30 simResults = | 30 simResults = |
| 31 HWSim__run_simulation( simParams, netlist ); | 31 HWSim__run_simulation( simParams, netlist ); |
| 32 | 32 |
| 33 //HWSim | 33 //HWSim |
| 34 printSimResults( simResults ); | 34 HWSim__generate_paraver_output( simResults ); |
| 35 HWSim__generate_vcd_output( simResults ); | |
| 35 | 36 |
| 36 fflush(stdin); | |
| 37 exit(0); //cleans up | 37 exit(0); //cleans up |
| 38 } | 38 } |
| 39 | 39 |
