Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
view src/Application/main.c @ 1:7566745e812a
Ideas starting to gel.. application part close to candidate form
| author | Me@portablequad |
|---|---|
| date | Sat, 19 Nov 2011 17:58:21 -0800 |
| parents | 8ea476474093 |
| children | d872169e58fa |
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;
23 printf( "param file name: %s\n", argv[1] );
25 simParams = makeParamBag();
26 readParamFileIntoBag( argv[1], simParams );
28 netlist = createPingPongNetlist();
29 simResults =
30 HWSim__run_simulation( simParams, netlist );
32 //HWSim
33 printSimResults( simResults );
35 fflush(stdin);
36 exit(0); //cleans up
37 }
