Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
view src/Application/main.c @ 4:2d3505958ca8
TimelineTraces: 1 trace for each timeline contain several Spanrecs for the
different spans
| author | hausers |
|---|---|
| date | Mon, 05 Dec 2011 12:24:44 +0100 |
| 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 }
