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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

State Space Compression in History 271<br />

Pre<strong>de</strong>cessor path from to the choice place.<br />

Successor path<br />

from the merging place to<br />

Branch paths those places belonging to each of the branches of the<br />

conditional. Given a conditional <strong>for</strong>med by branches, the places<br />

belonging to a branch path will not belong to any of the other branch paths<br />

of the same conditional.<br />

Assuming that the application execution starts in process with the<br />

marking of the number of repeated states will be equal to the number<br />

of states produced by:<br />

1. Traversing the successor path, plus<br />

Table 20-1. Scheduling results.<br />

System 1<br />

System 2<br />

System 3<br />

WO<br />

W<br />

I%<br />

WO<br />

W<br />

I%<br />

WO<br />

W<br />

I%<br />

# Places<br />

# Transitions<br />

# States<br />

# Repeated states<br />

CPU time (sec.)<br />

Memory (KB)<br />

10<br />

10<br />

19<br />

5<br />

0<br />

49.7<br />

14<br />

0<br />

0.01<br />

60.23<br />

26<br />

-<br />

-<br />

-21<br />

26<br />

24<br />

309<br />

52<br />

0.25<br />

331<br />

257<br />

0<br />

0.21<br />

337<br />

17<br />

-<br />

16<br />

-2<br />

34<br />

29<br />

694<br />

338<br />

1.03<br />

614.4<br />

356<br />

0<br />

0.6<br />

542<br />

49<br />

-<br />

42<br />

12<br />

2. Scheduling a cycle of each of the processes reading from ports that were<br />

written during step 1 or during the traversal of the paths The entry<br />

point <strong>for</strong> one of these cycles is the port used by the process to communicate<br />

with<br />

After per<strong>for</strong>ming steps 1 and 2, the schedule will have produced a cycle<br />

with respect to the starting marking These concepts are summarized in<br />

the following equation:<br />

where is the number of states contained in the cyclic schedule of process<br />

and is the number of conditional branches. The number of repeated<br />

states of this schedule is equal to<br />

If there were more than one conditional in the SCC, equation (1) should<br />

be applied to each of the subsections in which those conditionals would divi<strong>de</strong><br />

the SCC. If were composed of several SCCs, equation (1) should be applied<br />

to all of them. Also, as the different paths are traversed, it may be necessary<br />

either to provi<strong>de</strong> or consume the necessary tokens of the ports accessed during

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

Saved successfully!

Ooh no, something went wrong!