view main.c @ 12:4862640793b6

small changes to the netlist creation
author hausers
date Tue, 31 Jan 2012 17:10:29 +0100
parents
children ddd87abfeefd
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 char __ProgrammName[] = "HWSim Hello World";
15 char __DataSet[255];
16 char __Scheduler[];
18 /*
19 *
20 *
21 */
23 int main( int argc, char **argv )
24 { ParamBag *simParams;
25 HWSimNetlist *netlist;
26 HWSimResults *simResults;
28 printf( "param file name: %s\n", argv[1] );
29 printf("Paraver trace file %s\n", argv[2]);
31 #ifdef FAKE
32 simParams= NULL;
33 #else
34 simParams = makeParamBag();
35 readParamFileIntoBag( argv[1], simParams );
36 #endif
38 netlist = createPingPongNetlist();
39 #ifdef FAKE
40 simResults= create_simulation_results__fake(simParams,netlist);
41 #else
42 simResults =
43 HWSim__run_simulation( simParams, netlist );
44 #endif
46 //HWSim
47 HWSim__generate_paraver_output(argv[2], simResults, netlist);
48 //HWSim__generate_vcd_output( simResults );
50 exit(0); //cleans up
51 }