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.

264 Chapter 20<br />

3.1. Petri net fundamentals<br />

A Petri net, PN is a tuple (P, T, F, where P and T are sets of no<strong>de</strong>s of<br />

place or transition type respectively [7]. F is a function of<br />

to the set of non-negative integers. A marking M is a function of P to the set<br />

of non-negative integers. A number of tokens of p in M, where p is a place<br />

of the net, equals to the value of the function M <strong>for</strong> p, that is, M[p]. If<br />

M[p] > 0 the place is said to be marked. Intuitively, the marking values of all<br />

the places of the net constitute the system state.<br />

A PN can be represented as a bipartite directed graph, so that in case the<br />

function F(u, v) is positive, there will exist an edge [u, v] between such graph<br />

no<strong>de</strong>s u and v. The value F(u, v) is the edge weight. A transition t is enabled<br />

in a marking M if<br />

In this case, the transition can be<br />

fired in the marking M, yielding a new marking given by<br />

A marking is reachable from the initial marking if there exists a<br />

sequence of transitions that can be sequentially fired from to produce<br />

Such a sequence is said to be fireable from The set of markings reachable<br />

from is <strong>de</strong>noted The reachability graph of a PN is a directed<br />

graph in which is a set of no<strong>de</strong>s and each edge corresponds<br />

to a PN transition, t, such that the firing of t from marking M gives<br />

A transition t is called source transition if<br />

A pair of<br />

non source transitions and are in equal conflict if<br />

An equal conflict set, ECS is a group of transitions that are in equal conflict.<br />

A place is a choice place if it has more than one successor transition. If<br />

all the successor transitions of a choice place belong to the same ECS, the<br />

place is called equal choice place. A PN is Equal Choice if all the choice<br />

places are equal.<br />

A choice place is called unique choice if in every marking of that<br />

place cannot have more than one enabled successor transition. A uniquechoice<br />

Petri net, UCPN, is one in which all the choice places are either unique<br />

or equal. The PNs obtained after compiling our high-level specification present<br />

unique-choice ports.<br />

3.2. Conditions <strong>for</strong> valid schedules<br />

A schedule <strong>for</strong> a given PN is a directed graph where each no<strong>de</strong> represents a<br />

marking of the PN and each edge joining two no<strong>de</strong>s stands <strong>for</strong> the firing of<br />

an enabled transition that leads from one marking to another. A valid schedule<br />

has five properties. First, there is a unique root no<strong>de</strong>, corresponding to the<br />

starting marking. Second, <strong>for</strong> every marking no<strong>de</strong> v, the set of edges that<br />

start from v must correspond to the transitions of an enabled ECS. If this<br />

ECS is a set of source transitions, v is called an await no<strong>de</strong>. Third, the no<strong>de</strong>s<br />

v and w linked by an edge t are such that the marking w is obtained after firing

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

Saved successfully!

Ooh no, something went wrong!