annotate main.c @ 12:4862640793b6

small changes to the netlist creation
author hausers
date Tue, 31 Jan 2012 17:10:29 +0100
parents
children ddd87abfeefd
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@11 12 #include "HWSim__Hello_World_HW/HWSim__Hello_World_HW.h"
Me@11 13
Me@11 14 char __ProgrammName[] = "HWSim Hello World";
Me@11 15 char __DataSet[255];
Me@11 16 char __Scheduler[];
Me@11 17
Me@11 18 /*
Me@11 19 *
Me@11 20 *
Me@11 21 */
Me@11 22
Me@11 23 int main( int argc, char **argv )
Me@11 24 { ParamBag *simParams;
Me@11 25 HWSimNetlist *netlist;
Me@11 26 HWSimResults *simResults;
Me@11 27
Me@11 28 printf( "param file name: %s\n", argv[1] );
Me@11 29 printf("Paraver trace file %s\n", argv[2]);
Me@11 30
Me@11 31 #ifdef FAKE
Me@11 32 simParams= NULL;
Me@11 33 #else
Me@11 34 simParams = makeParamBag();
Me@11 35 readParamFileIntoBag( argv[1], simParams );
Me@11 36 #endif
Me@11 37
Me@11 38 netlist = createPingPongNetlist();
Me@11 39 #ifdef FAKE
Me@11 40 simResults= create_simulation_results__fake(simParams,netlist);
Me@11 41 #else
Me@11 42 simResults =
Me@11 43 HWSim__run_simulation( simParams, netlist );
Me@11 44 #endif
Me@11 45
Me@11 46 //HWSim
Me@11 47 HWSim__generate_paraver_output(argv[2], simResults, netlist);
Me@11 48 //HWSim__generate_vcd_output( simResults );
Me@11 49
Me@11 50 exit(0); //cleans up
Me@11 51 }
Me@11 52