Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
diff CircuitNetlistCreator.c @ 18:b0e9969d8d15
first runnable version (very buggy)
author | hausers |
---|---|
date | Mon, 20 Feb 2012 19:07:31 +0100 |
parents | fa277c6ce6f2 |
children | ba3883d39e62 |
line diff
1.1 --- a/CircuitNetlistCreator.c Mon Feb 20 17:06:56 2012 +0100 1.2 +++ b/CircuitNetlistCreator.c Mon Feb 20 19:07:31 2012 +0100 1.3 @@ -21,6 +21,7 @@ 1.4 }while(0); //macro magic for namespace 1.5 1.6 1.7 + 1.8 HWSimActivityType* createPingPongActivityType (); 1.9 1.10 HWSimElem* createAPingPongElem (HWSimNetlist *netlist); 1.11 @@ -78,8 +79,10 @@ 1.12 netlist->numCommPaths= numCommPaths; 1.13 netlist->commPaths= commPaths; 1.14 //TL 0, out-port 0 to TL 1, in-port 0 1.15 + commPaths[0]= malloc(sizeof(HWSimCommPath)); 1.16 setCommPathValuesTo(commPaths[0],0,0,1,0, commPath_TimeSpanCalc, NULL); 1.17 //TL 1, out-port 0 to TL 0, in-port 0 1.18 + commPaths[1]= malloc(sizeof(HWSimCommPath)); 1.19 setCommPathValuesTo(commPaths[1], 1,0,0,0, commPath_TimeSpanCalc, NULL); 1.20 1.21 //TODO: decide how do in-out bidirectional commPaths -- thinking make it two