view main.c @ 21:561d3a06ffc5

updated for VMS name chgs from VMS__malloc to VMS_int__malloc
author Some Random Person <seanhalle@yahoo.com>
date Sun, 01 Apr 2012 13:33:18 -0700
parents 8d9d367e96f9
children c11c48758df3
line source
1 /*
2 * Copyright 2011 OpenSourceStewardshipFoundation.org
3 * Licensed under BSD
4 *
5 * author seanhalle@yahoo.com
6 */
8 #include <malloc.h>
9 #include <stdlib.h>
11 #include "SimParams.h"
12 #include "HWSim__PingPong__HWDef/HWSim__PingPong__HWDef.h"
13 //Stefan: name conflict here -- MC_shared version of params is in HWSim__PingPong__HWDef.h, but need normal C version here
14 #include "../C_Libraries/ParamHelper/Param.h"
17 char __ProgrammName[] = "HWSim Hello World";
18 char __DataSet[255];
19 char __Scheduler[];
21 /*
22 *
23 *
24 */
26 int main( int argc, char **argv )
27 { ParamBag *simParams;
28 HWSimNetlist *netlist;
29 HWSimResults *simResults;
31 printf( "param file name: %s\n", argv[1] );
32 printf("Paraver trace file %s\n", argv[2]);
34 #ifdef FAKE
35 simParams= NULL;
36 #else
37 simParams = makeParamBag();
38 readParamFileIntoBag( argv[1], simParams );
39 #endif
41 netlist = createPingPongNetlist();
42 #ifdef FAKE
43 simResults= create_simulation_results__fake(simParams,netlist);
44 #else
45 simResults =
46 HWSim__run_simulation( simParams, netlist );
47 #endif
49 //HWSim
50 //HWSim__generate_paraver_output(argv[2], simResults, netlist);
51 //HWSim__generate_vcd_output( simResults );
53 exit(0); //cleans up
54 }