Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
view 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 |
line source
1 /*
2 * Copyright 2011 OpenSourceStewardshipFoundation.org
3 * Licensed under BSD
4 *
5 * author seanhalle@yahoo.com
6 */
8 #include <malloc.h>
9 #include <stdlib.h>
11 #include "SimParams.h"
12 #include "HWSim__Hello_World_HW/HWSim__Hello_World_HW.h"
14 /*
15 *
16 *
17 */
19 int main( int argc, char **argv )
20 { ParamBag *simParams;
21 HWSimNetlist *netlist;
22 HWSimResults *simResults;
24 printf( "param file name: %s\n", argv[1] );
26 simParams = makeParamBag();
27 readParamFileIntoBag( argv[1], simParams );
29 netlist = createPingPongNetlist();
30 simResults =
31 HWSim__run_simulation( simParams, netlist );
33 //HWSim
34 HWSim__generate_paraver_output( simResults );
35 HWSim__generate_vcd_output( simResults );
37 exit(0); //cleans up
38 }
