03.08.2013 Views

Edwin Jan Klein - Universiteit Twente

Edwin Jan Klein - Universiteit Twente

Edwin Jan Klein - Universiteit Twente

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

87<br />

Simulation and analysis<br />

If the primitive represents a time propagating construct then a time delay has to be<br />

taken into account between the instant that a signal enters one of the inputs Ii and the<br />

moment when the results of the calculation can be forwarded to the next primitive.<br />

Instead of calling the calculation function of the next primitive directly this call is<br />

therefore redirected through a scheduler as shown in Figure 4.11. This scheduler will<br />

then ensure that at the correct time the result data belonging to output O1 is placed on<br />

the port connected to this output. After this the process is finalized by once again<br />

calling the calculation function of the parent of this port.<br />

Primitive<br />

I1<br />

Im<br />

O1, dT,<br />

Port#<br />

Primitive<br />

F ( x .. xn<br />

, I1..<br />

I<br />

1 m<br />

Figure 4.11. A Primitive with delayed (through the scheduler) result forwarding.<br />

The pseudo code implementation of a waveguide, being a typical example of a time<br />

propagating element, is given in Listing 4.3. The time propagating section of the<br />

calculation is code written out in bold and is largely dedicated to gathering all the data<br />

required to build a “call” for the scheduler. As was the case for the coupler the<br />

waveguide also uses a split calculation for each direction of the signal through the<br />

waveguide (entering n1 or n2).<br />

)<br />

Scheduler<br />

t<br />

t+ dT<br />

O1<br />

Primitive

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!