comparison CircuitNetlistCreator.c @ 19:ba3883d39e62

small changes
author hausers
date Fri, 02 Mar 2012 18:14:06 +0100
parents b0e9969d8d15
children 3a4be4048a21
comparison
equal deleted inserted replaced
6:cef1de1e9e77 7:b8d2e8f62032
11 */ 11 */
12 #define setCommPathValuesTo( commPath, fromElIdx, outPort, toElIdx, inPort,\ 12 #define setCommPathValuesTo( commPath, fromElIdx, outPort, toElIdx, inPort,\
13 timeFnPtr, dataPtr)\ 13 timeFnPtr, dataPtr)\
14 do{\ 14 do{\
15 commPath->idxOfFromElem = fromElIdx; \ 15 commPath->idxOfFromElem = fromElIdx; \
16 commPath->idxOfFromOutPort = fromElIdx; \ 16 commPath->idxOfFromOutPort = outPort; \
17 commPath->idxOfToElem = toElIdx; \ 17 commPath->idxOfToElem = toElIdx; \
18 commPath->idxOfToInPort = inPort; \ 18 commPath->idxOfToInPort = inPort; \
19 commPath->commTimeCalcFn = timeFnPtr;\ 19 commPath->commTimeCalcFn = timeFnPtr;\
20 commPath->archSpecCommPathData = dataPtr; \ 20 commPath->archSpecCommPathData = dataPtr; \
21 }while(0); //macro magic for namespace 21 }while(0); //macro magic for namespace
90 90
91 return netlist; 91 return netlist;
92 } 92 }
93 93
94 //Stefan: copy netlist struct with VMS malloc after VMS initialized? 94 //Stefan: copy netlist struct with VMS malloc after VMS initialized?
95 //Sean: yes, otherwise the user has to deal with VMS details. 95 //ANSWER: yes, otherwise the user has to deal with VMS details.
96 // So we should do this in HWSim__make_netlist_simulatable ? 96 // So we should do this in HWSim__make_netlist_simulatable -> yes
97 // If so, I can do this 97 // If so, I can do this
98 HWSimElem * 98 HWSimElem *
99 createAPingPongElem( HWSimNetlist *netlist ) 99 createAPingPongElem( HWSimNetlist *netlist )
100 { HWSimElem *TL; 100 { HWSimElem *TL;
101 TL = malloc( sizeof(HWSimElem) ); 101 TL = malloc( sizeof(HWSimElem) );