Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
view src/Application/main.c @ 2:d872169e58fa
Minor changes -- mostly renaming structs and vars
| author | Me@portablequad |
|---|---|
| date | Wed, 30 Nov 2011 08:40:30 -0800 |
| parents | 7566745e812a |
| children | 0ef08e9afd54 |
line source
1 /*
2 * Copyright 2011 OpenSourceStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
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 HWSimResults *simResults;
22 HWSimNetlist *netlist;
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 printSimResults( simResults );
36 fflush(stdin);
37 exit(0); //cleans up
38 }
