# HG changeset patch # User hausers # Date 1329761251 -3600 # Node ID b0e9969d8d15884b81d73c8fd5b800da8497a710 # Parent fa277c6ce6f256e11cb7405b9733f966b2f636a8 first runnable version (very buggy) diff -r fa277c6ce6f2 -r b0e9969d8d15 CircuitNetlistCreator.c --- a/CircuitNetlistCreator.c Mon Feb 20 17:06:56 2012 +0100 +++ b/CircuitNetlistCreator.c Mon Feb 20 19:07:31 2012 +0100 @@ -21,6 +21,7 @@ }while(0); //macro magic for namespace + HWSimActivityType* createPingPongActivityType (); HWSimElem* createAPingPongElem (HWSimNetlist *netlist); @@ -78,8 +79,10 @@ netlist->numCommPaths= numCommPaths; netlist->commPaths= commPaths; //TL 0, out-port 0 to TL 1, in-port 0 + commPaths[0]= malloc(sizeof(HWSimCommPath)); setCommPathValuesTo(commPaths[0],0,0,1,0, commPath_TimeSpanCalc, NULL); //TL 1, out-port 0 to TL 0, in-port 0 + commPaths[1]= malloc(sizeof(HWSimCommPath)); setCommPathValuesTo(commPaths[1], 1,0,0,0, commPath_TimeSpanCalc, NULL); //TODO: decide how do in-out bidirectional commPaths -- thinking make it two diff -r fa277c6ce6f2 -r b0e9969d8d15 main.c --- a/main.c Mon Feb 20 17:06:56 2012 +0100 +++ b/main.c Mon Feb 20 19:07:31 2012 +0100 @@ -27,14 +27,19 @@ HWSimNetlist *netlist; HWSimResults *simResults; + printf("DEBUG: main\n"); + +#ifdef FAKE + simParams= NULL; printf( "param file name: %s\n", argv[1] ); printf("Paraver trace file %s\n", argv[2]); -#ifdef FAKE - simParams= NULL; #else - simParams = makeParamBag(); - readParamFileIntoBag( argv[1], simParams ); + //Sean: cause Segmentation fault in VMS_int__malloc, I think the reason for + // this is, that VMS is not initialized yet ? + // => so I continue without params +// simParams = makeParamBag(); +// readParamFileIntoBag( argv[1], simParams ); #endif netlist = createPingPongNetlist(); @@ -42,7 +47,7 @@ simResults= create_simulation_results__fake(simParams,netlist); #else simResults = - HWSim__run_simulation( simParams, netlist ); + HWSim__run_simulation( NULL, netlist ); #endif //HWSim