diff main.c @ 18:b0e9969d8d15

first runnable version (very buggy)
author hausers
date Mon, 20 Feb 2012 19:07:31 +0100
parents df53f52ef49c
children ba3883d39e62
line diff
     1.1 --- a/main.c	Mon Feb 20 17:06:56 2012 +0100
     1.2 +++ b/main.c	Mon Feb 20 19:07:31 2012 +0100
     1.3 @@ -27,14 +27,19 @@
     1.4     HWSimNetlist  *netlist;
     1.5     HWSimResults  *simResults;
     1.6  
     1.7 +	printf("DEBUG: main\n");
     1.8 +
     1.9 +#ifdef FAKE
    1.10 +	simParams= NULL;
    1.11     printf( "param file name: %s\n", argv[1] );
    1.12     printf("Paraver trace file %s\n", argv[2]);
    1.13  
    1.14 -#ifdef FAKE
    1.15 -	simParams= NULL;
    1.16  #else
    1.17 -   simParams = makeParamBag();
    1.18 -   readParamFileIntoBag( argv[1], simParams );
    1.19 +	//Sean: cause Segmentation fault in VMS_int__malloc, I think the reason for
    1.20 +	//			this is, that VMS is not initialized yet ?
    1.21 +	//			=> so I continue without params
    1.22 +//   simParams = makeParamBag();
    1.23 +//   readParamFileIntoBag( argv[1], simParams );
    1.24  #endif
    1.25     
    1.26     netlist = createPingPongNetlist();
    1.27 @@ -42,7 +47,7 @@
    1.28     simResults= create_simulation_results__fake(simParams,netlist);
    1.29  #else
    1.30     simResults = 
    1.31 -    HWSim__run_simulation( simParams, netlist );
    1.32 +    HWSim__run_simulation( NULL, netlist );
    1.33  #endif
    1.34  
    1.35        //HWSim