annotate src/Application/main.c @ 1:7566745e812a

Ideas starting to gel.. application part close to candidate form
author Me@portablequad
date Sat, 19 Nov 2011 17:58:21 -0800
parents 8ea476474093
children d872169e58fa
rev   line source
Me@1 1 /*
Me@1 2 * Copyright 2011 OpenSourceStewardshipFoundation.org
Me@1 3 * Licensed under GNU General Public License version 2
Me@1 4 *
Me@1 5 * author seanhalle@yahoo.com
Me@1 6 */
Me@1 7
Me@1 8 #include <malloc.h>
Me@1 9 #include <stdlib.h>
Me@1 10
Me@1 11 #include "SimParams.h"
Me@1 12 #include "HWSim__Hello_World_HW/HWSim__Hello_World_HW.h"
Me@1 13
Me@1 14 /*
Me@1 15 *
Me@1 16 *
Me@1 17 */
Me@1 18
Me@1 19 int main( int argc, char **argv )
Me@1 20 { ParamBag *simParams;
Me@1 21 HWSimResults *simResults;
Me@1 22
Me@1 23 printf( "param file name: %s\n", argv[1] );
Me@1 24
Me@1 25 simParams = makeParamBag();
Me@1 26 readParamFileIntoBag( argv[1], simParams );
Me@1 27
Me@1 28 netlist = createPingPongNetlist();
Me@1 29 simResults =
Me@1 30 HWSim__run_simulation( simParams, netlist );
Me@1 31
Me@1 32 //HWSim
Me@1 33 printSimResults( simResults );
Me@1 34
Me@1 35 fflush(stdin);
Me@1 36 exit(0); //cleans up
Me@1 37 }
Me@1 38