Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
comparison main.c @ 12:4862640793b6
small changes to the netlist creation
| author | hausers |
|---|---|
| date | Tue, 31 Jan 2012 17:10:29 +0100 |
| parents | |
| children | ddd87abfeefd |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f317515865e3 |
|---|---|
| 1 /* | |
| 2 * Copyright 2011 OpenSourceStewardshipFoundation.org | |
| 3 * Licensed under BSD | |
| 4 * | |
| 5 * author seanhalle@yahoo.com | |
| 6 */ | |
| 7 | |
| 8 #include <malloc.h> | |
| 9 #include <stdlib.h> | |
| 10 | |
| 11 #include "SimParams.h" | |
| 12 #include "HWSim__Hello_World_HW/HWSim__Hello_World_HW.h" | |
| 13 | |
| 14 char __ProgrammName[] = "HWSim Hello World"; | |
| 15 char __DataSet[255]; | |
| 16 char __Scheduler[]; | |
| 17 | |
| 18 /* | |
| 19 * | |
| 20 * | |
| 21 */ | |
| 22 | |
| 23 int main( int argc, char **argv ) | |
| 24 { ParamBag *simParams; | |
| 25 HWSimNetlist *netlist; | |
| 26 HWSimResults *simResults; | |
| 27 | |
| 28 printf( "param file name: %s\n", argv[1] ); | |
| 29 printf("Paraver trace file %s\n", argv[2]); | |
| 30 | |
| 31 #ifdef FAKE | |
| 32 simParams= NULL; | |
| 33 #else | |
| 34 simParams = makeParamBag(); | |
| 35 readParamFileIntoBag( argv[1], simParams ); | |
| 36 #endif | |
| 37 | |
| 38 netlist = createPingPongNetlist(); | |
| 39 #ifdef FAKE | |
| 40 simResults= create_simulation_results__fake(simParams,netlist); | |
| 41 #else | |
| 42 simResults = | |
| 43 HWSim__run_simulation( simParams, netlist ); | |
| 44 #endif | |
| 45 | |
| 46 //HWSim | |
| 47 HWSim__generate_paraver_output(argv[2], simResults, netlist); | |
| 48 //HWSim__generate_vcd_output( simResults ); | |
| 49 | |
| 50 exit(0); //cleans up | |
| 51 } | |
| 52 |
