comparison main.c @ 22:fac65c465f98

chgd to new activityType structure w/booleans in it
author Some Random Person <seanhalle@yahoo.com>
date Tue, 15 May 2012 06:00:36 -0700
parents ba3883d39e62
children c11c48758df3
comparison
equal deleted inserted replaced
5:4dc94457d16d 6:850848e2ee90
2 * Copyright 2011 OpenSourceStewardshipFoundation.org 2 * Copyright 2011 OpenSourceStewardshipFoundation.org
3 * Licensed under BSD 3 * Licensed under BSD
4 * 4 *
5 * author seanhalle@yahoo.com 5 * author seanhalle@yahoo.com
6 */ 6 */
7 7
8 #include <malloc.h> 8 #include <malloc.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 #include "SimParams.h" 11 #include "SimParams.h"
12 #include "HWSim__PingPong__HWDef/HWSim__PingPong__HWDef.h" 12 #include "HWSim__PingPong__HWDef/HWSim__PingPong__HWDef.h"
22 /* 22 /*
23 * 23 *
24 * 24 *
25 */ 25 */
26 26
27 int main( int argc, char **argv ) 27 int main(int argc, char **argv) {
28 { ParamBag *simParams; 28 ParamBag *simParams;
29 HWSimNetlist *netlist; 29 HWSimNetlist *netlist;
30 HWSimResults *simResults; 30 HWSimResults *simResults;
31 int result;
31 32
32 #ifdef FAKE 33 #ifdef FAKE
33 simParams= NULL; 34 simParams = NULL;
34 printf( "param file name: %s\n", argv[1] ); 35 printf("param file name: %s\n", argv[1]);
35 printf("Paraver trace file %s\n", argv[2]); 36 printf("Paraver trace file %s\n", argv[2]);
36 37
37 #else 38 #else
38 39
39 // TODO use the pure C branch of paramBag 40 //TODO use the pure C branch of paramBag
40 // simParams = makeParamBag(); 41 simParams = makeParamBag();
41 // readParamFileIntoBag( argv[1], simParams ); 42 readParamFileIntoBag( argv[1], simParams );
42 #endif 43 #endif
43 44
44 netlist = createPingPongNetlist(); 45 netlist = createPingPongNetlist();
45 46
46 #ifdef FAKE 47 #ifdef FAKE
47 simResults= create_simulation_results__fake(simParams,netlist); 48 simResults = create_simulation_results__fake(simParams, netlist);
48 #else 49 #else
49 simResults = 50 simResults = HWSim__run_simulation( simParams, netlist );
50 HWSim__run_simulation( NULL, netlist ); 51 //HWSim_test__run();
51 // HWSim_test__run();
52 #endif 52 #endif
53 53
54 //HWSim 54 //HWSim
55 //HWSim__generate_paraver_output(argv[2], simResults, netlist); //Stefan: my version 55 //HWSim__generate_paraver_output(argv[2], simResults, netlist); //Stefan: my version
56 //HWSim__generate_paraver_output(simResults); 56 //HWSim__generate_paraver_output(simResults);
57 //HWSim__generate_vcd_output( simResults ); 57 //HWSim__generate_vcd_output( simResults );
58
59 exit(0); //cleans up
60 }
61 58
59 exit(0); //cleans up
60 }
61