Me@0: /* Me@0: * Copyright 2011 OpenSourceStewardshipFoundation.org Me@0: * Licensed under BSD Me@0: * Me@0: * author seanhalle@yahoo.com Me@0: */ Me@0: Me@0: #include Me@0: #include Me@0: Me@0: #include "SimParams.h" kshalle@1: #include "HWSim__LPGPU_Arch__HWDef/HWSim__LPGPU_Arch__HWDef.h" kshalle@1: //Stefan: name conflict here -- MC_shared version of params is in HWSim__PingPong__HWDef.h, but need normal C version here kshalle@1: #include "../C_Libraries/ParamHelper/Param.h" kshalle@1: Me@0: Me@0: char __ProgrammName[] = "HWSim Hello World"; Me@0: char __DataSet[255]; Me@0: char __Scheduler[]; Me@0: Me@0: /* Me@0: * Me@0: * Me@0: */ Me@0: Me@0: int main( int argc, char **argv ) Me@0: { ParamBag *simParams; Me@0: HWSimNetlist *netlist; Me@0: HWSimResults *simResults; Me@0: Me@0: printf( "param file name: %s\n", argv[1] ); Me@0: printf("Paraver trace file %s\n", argv[2]); Me@0: Me@0: #ifdef FAKE Me@0: simParams= NULL; Me@0: #else Me@0: simParams = makeParamBag(); Me@0: readParamFileIntoBag( argv[1], simParams ); Me@0: #endif Me@0: Me@0: netlist = createPingPongNetlist(); Me@0: #ifdef FAKE Me@0: simResults= create_simulation_results__fake(simParams,netlist); Me@0: #else Me@0: simResults = Me@0: HWSim__run_simulation( simParams, netlist ); Me@0: #endif Me@0: Me@0: //HWSim Me@0: HWSim__generate_paraver_output(argv[2], simResults, netlist); Me@0: //HWSim__generate_vcd_output( simResults ); Me@0: Me@0: exit(0); //cleans up Me@0: } Me@0: