29.01.2015 Views

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

Embedded Software for SoC - Grupo de Mecatrônica EESC/USP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Analysis of HW/SW On-Chip Communication in MP SOC Design 127<br />

shared memory by a write operation (W1). Task T2 runs and writes its output<br />

on its output physical buffer (W2). After task T3 completes its previous<br />

computation at time t1, it reads from two input buffers (R1 and R2).<br />

In Figure 10-1(c), we assume that the two edges of the task graph share<br />

the same physical buffer to reduce the physical buffer overhead. In this case,<br />

compared to the case of Figure 10-1(b), after the execution of task T2, the<br />

task cannot write its output data on the shared physical buffer, since the shared<br />

physical buffer is filled by task T1. Thus, the write operation of task T2 waits<br />

until task T3 reads from its input buffer. When the shared physical buffer<br />

becomes empty after the read of task T3, we assume that there is an interrupt<br />

to task T2 to invoke its write operation (W2). Note that, in this case, the<br />

dynamic behavior of SW architecture is not mo<strong>de</strong>led. That is, the execution<br />

<strong>de</strong>lay of interrupt service routine and that of context switching are not mo<strong>de</strong>led<br />

in this case.<br />

In Figure 10-1(d), the dynamic behavior of SW architecture is mo<strong>de</strong>led.<br />

Compared to the case of Figure 10-1(c), when the interrupt occurs to invoke<br />

the write operation of task T2, first, it accounts <strong>for</strong> the execution <strong>de</strong>lay of ISR.<br />

Then, it accounts <strong>for</strong> the <strong>de</strong>lay of context switching (CS). As this example<br />

shows, compared to the case of Figure 10-1(c), when we mo<strong>de</strong>l the dynamic<br />

behavior of SW, we can obtain more accurate system runtime in scheduling<br />

on-chip communication and task execution.

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

Saved successfully!

Ooh no, something went wrong!