annotate main.c @ 15:8d9d367e96f9

updated for VMS name chgs from VMS__malloc to VMS_int__malloc
author Me@portablequad
date Sun, 12 Feb 2012 01:47:58 -0800
parents ddd87abfeefd
children df53f52ef49c 561d3a06ffc5
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 */
Me@11 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 //Stefan: name conflict here -- MC_shared version of params is in HWSim__PingPong__HWDef.h, but need normal C version here
Me@15 14 #include "../C_Libraries/ParamHelper/Param.h"
Me@15 15
Me@11 16
Me@11 17 char __ProgrammName[] = "HWSim Hello World";
Me@11 18 char __DataSet[255];
Me@11 19 char __Scheduler[];
Me@11 20
Me@11 21 /*
Me@11 22 *
Me@11 23 *
Me@11 24 */
Me@11 25
Me@11 26 int main( int argc, char **argv )
Me@11 27 { ParamBag *simParams;
Me@11 28 HWSimNetlist *netlist;
Me@11 29 HWSimResults *simResults;
Me@11 30
Me@11 31 printf( "param file name: %s\n", argv[1] );
Me@11 32 printf("Paraver trace file %s\n", argv[2]);
Me@11 33
Me@11 34 #ifdef FAKE
Me@11 35 simParams= NULL;
Me@11 36 #else
Me@11 37 simParams = makeParamBag();
Me@11 38 readParamFileIntoBag( argv[1], simParams );
Me@11 39 #endif
Me@11 40
Me@11 41 netlist = createPingPongNetlist();
Me@11 42 #ifdef FAKE
Me@11 43 simResults= create_simulation_results__fake(simParams,netlist);
Me@11 44 #else
Me@11 45 simResults =
Me@11 46 HWSim__run_simulation( simParams, netlist );
Me@11 47 #endif
Me@11 48
Me@11 49 //HWSim
Me@11 50 HWSim__generate_paraver_output(argv[2], simResults, netlist);
Me@11 51 //HWSim__generate_vcd_output( simResults );
Me@11 52
Me@11 53 exit(0); //cleans up
Me@11 54 }
Me@11 55