Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > HWSim > HWSim__PingPong__HWDef
comparison CircuitNetlistCreator.c @ 13:abe3db0025d5
results after discussion at February 1
| author | hausers |
|---|---|
| date | Wed, 01 Feb 2012 17:54:13 +0100 |
| parents | 4862640793b6 |
| children | ddd87abfeefd |
comparison
equal
deleted
inserted
replaced
| 1:151ab2a08c86 | 2:48b803c89d4d |
|---|---|
| 87 createAPingPongTimeline( HWSimNetlist *netlist ) | 87 createAPingPongTimeline( HWSimNetlist *netlist ) |
| 88 { HWSimTimeline *TL; | 88 { HWSimTimeline *TL; |
| 89 TL = malloc( sizeof(HWSimTimeline) ); | 89 TL = malloc( sizeof(HWSimTimeline) ); |
| 90 TL->numInPorts = 1; | 90 TL->numInPorts = 1; |
| 91 TL->numOutPorts = 1; | 91 TL->numOutPorts = 1; |
| 92 //Sean: here we create only inPorts -> outPorts will be created be HWSim ? | |
| 93 TL->inPorts = HWSim_ext__make_inPortsArray( TL->numInPorts ); | 92 TL->inPorts = HWSim_ext__make_inPortsArray( TL->numInPorts ); |
| 94 TL->inPorts[-1].triggeredSpanType = IDLE_SPAN; //reset port | 93 TL->inPorts[-1].triggeredSpanType = IDLE_SPAN; //reset port |
| 95 TL->inPorts[0].triggeredSpanType = netlist->spanTypes[PING_PONG_TYPE]; | 94 TL->inPorts[0].triggeredSpanType = netlist->spanTypes[PING_PONG_TYPE]; |
| 96 } | 95 } |
| 97 | 96 |
