view main.c @ 26:0deed3ee0b02

update comments for public viewing
author kshalle
date Wed, 25 Feb 2015 15:20:16 -0800
parents b924d86f829e
children fb4970a0c337
line source
1 /*
2 * Copyright 2011 OpenSourceResearchInstitute.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 #include "ParamHelper/Param.h"
15 #include "HWSim_impl/HWSim_tests.h"
19 /* This sample code shows
20 *
21 *
22 */
24 int main(int argc, char **argv)
25 {
26 ParamBag *simParams;
27 HWSimNetlist *netlist;
28 HWSimResults *simResults;
29 int result;
31 //Use a helper called ParamBag to read in paramters from file
32 simParams = makeParamBag();
33 readParamFileIntoBag( argv[1], simParams );
35 //Create the simulated objects and connect them to each other
36 netlist = createPingPongNetlist(); //defined in CircuitNetlistCreator.c
38 simResults = HWSim__run_simulation( simParams, netlist );
40 exit(0); //cleans up
41 }