annotate src/Application/main.c @ 2:d872169e58fa

Minor changes -- mostly renaming structs and vars
author Me@portablequad
date Wed, 30 Nov 2011 08:40:30 -0800
parents 7566745e812a
children 0ef08e9afd54
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@2 22 HWSimNetlist *netlist;
Me@1 23
Me@1 24 printf( "param file name: %s\n", argv[1] );
Me@1 25
Me@1 26 simParams = makeParamBag();
Me@1 27 readParamFileIntoBag( argv[1], simParams );
Me@1 28
Me@1 29 netlist = createPingPongNetlist();
Me@1 30 simResults =
Me@1 31 HWSim__run_simulation( simParams, netlist );
Me@1 32
Me@1 33 //HWSim
Me@1 34 printSimResults( simResults );
Me@1 35
Me@1 36 fflush(stdin);
Me@1 37 exit(0); //cleans up
Me@1 38 }
Me@1 39