annotate 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
rev   line source
Me@11 1 /*
Me@11 2 * Copyright 2011 OpenSourceStewardshipFoundation.org
Me@11 3 * Licensed under BSD
Me@11 4 *
Me@11 5 * author seanhalle@yahoo.com
Me@11 6 */
hausers@20 7
Me@11 8 #include <malloc.h>
Me@11 9 #include <stdlib.h>
Me@11 10
Me@11 11 #include "SimParams.h"
Me@14 12 #include "HWSim__PingPong__HWDef/HWSim__PingPong__HWDef.h"
Me@15 13 #include "../C_Libraries/ParamHelper/Param.h"
Me@15 14
hausers@19 15 #include "../VMS_Implementations/HWSim_impl/HWSim_tests.h"
hausers@19 16
Me@11 17
Me@11 18 char __ProgrammName[] = "HWSim Hello World";
Me@11 19 char __DataSet[255];
hausers@16 20 char __Scheduler[1];
Me@11 21
Me@11 22 /*
Me@11 23 *
Me@11 24 *
Me@11 25 */
Me@11 26
hausers@20 27 int main(int argc, char **argv) {
hausers@20 28 ParamBag *simParams;
hausers@20 29 HWSimNetlist *netlist;
hausers@20 30 HWSimResults *simResults;
hausers@20 31 int result;
Me@11 32
hausers@18 33 #ifdef FAKE
hausers@20 34 simParams = NULL;
hausers@20 35 printf("param file name: %s\n", argv[1]);
hausers@20 36 printf("Paraver trace file %s\n", argv[2]);
Me@11 37
Me@11 38 #else
hausers@20 39
hausers@20 40 //TODO use the pure C branch of paramBag
hausers@20 41 simParams = makeParamBag();
hausers@20 42 readParamFileIntoBag( argv[1], simParams );
Me@11 43 #endif
hausers@20 44
hausers@20 45 netlist = createPingPongNetlist();
hausers@19 46
Me@11 47 #ifdef FAKE
hausers@20 48 simResults = create_simulation_results__fake(simParams, netlist);
Me@11 49 #else
hausers@20 50 simResults = HWSim__run_simulation( simParams, netlist );
hausers@20 51 //HWSim_test__run();
Me@11 52 #endif
Me@11 53
hausers@20 54 //HWSim
hausers@20 55 //HWSim__generate_paraver_output(argv[2], simResults, netlist); //Stefan: my version
hausers@20 56 //HWSim__generate_paraver_output(simResults);
hausers@20 57 //HWSim__generate_vcd_output( simResults );
Me@11 58
hausers@20 59 exit(0); //cleans up
hausers@20 60 }
hausers@20 61