10.01.2013 Views

ComputerAided_Design_Engineering_amp_Manufactur.pdf

ComputerAided_Design_Engineering_amp_Manufactur.pdf

ComputerAided_Design_Engineering_amp_Manufactur.pdf

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.

home place of the basic process (called ) from which the synthesis begins (called the time-saving<br />

method). We will briefly compare the two after the presentation of the latter method.<br />

The algorithm then assigns a global variable (initialized to 1) to pbh . This variable Hc indicates the<br />

minimum tokens required in pbh for the synthesized net to be live. It also assigns two variables to each<br />

node ni in the net: upper[i] and lower [i] representing ( Rih) and , respectively. Their ratio is<br />

called the least home ratio. Lower[i] indicates the minimum tokens, among all reachable markings,<br />

required in for , if a place, to gain at least one token (actually upper [i]), or, if a transition, to fire<br />

at least one (actually upper[i]) time by firing transitions along any path from to .<br />

Whenever we generate a new arc and a new node at its end, we calculate the upper and lower of the<br />

new node using the following rule.<br />

u<br />

( Rih) l<br />

pbh ni pbh ni Rule New-Ratio<br />

Let [ n1n 2]<br />

be an arc with only two nodes with weight w and the least home ratio of n1 is known, then<br />

n 2<br />

(1) if is a place<br />

n 2<br />

(2) if is a transition<br />

p bh<br />

upper[ 2]<br />

---------------------lower[<br />

2]<br />

� upper[ 1]w<br />

--------------------------,<br />

lower[ 1]<br />

i.e., upper[ 2]<br />

� upper[ 1]�w,<br />

lower[ 2]<br />

� lower[ 1],<br />

and Hc unchanged.<br />

upper[ 2]<br />

1 upper[ 1]<br />

---------------------- � --------------------- ⎛---------------------- ⎞ ,<br />

lower[ 2]<br />

lower[ 1]<br />

⎝ w ⎠<br />

i.e; lower[ 2]<br />

� lower[ 1]�w/gcd,<br />

and<br />

upper[ 2]<br />

� upper[ 1]/gcd,<br />

and Hc � Hc�w/gcd, where gcd is the greatest<br />

common denominatorof upper[ 1]<br />

and w.<br />

(1) is obvious; (2) is to avoid tokens left in the place between and when all tokens in are<br />

consumed and proceed to fire .<br />

When we stop at an , which is in N1 , we require that its least home ratio be primarily equal, but not<br />

necessarily literally smaller (unlike Rule Arr.1.a) than that in N1 . This is to reduce the time to find the<br />

firing ratio between and , which cannot be deferred from the mere least home ratios of and<br />

. As a result, extra time complexity would be incurred to trace all paths between and to find<br />

the firing ratio between them.<br />

By “primarily,” we mean the resulting ratio after the cancellation of the GCD (greatest common<br />

denominator) between upper and lower. By “literally,” we mean we do not perform the above cancellation<br />

of the GCD between upper and lower.<br />

The two ratios must be primarily equal and there are no restrictions on the magnitudes of upper and<br />

lower in N1 n1 n2 Hc pbh n2 nj ng nj ng nj ng nj . They may be smaller or greater than those in the NP. In the former (smaller) case, there is<br />

no need to update all uppers and lowers. In the latter (greater), there are two cases: forward and backward<br />

generations.<br />

For a backward generation, there is no need to update for a TT-generation, since it creates a new home<br />

place as will be discussed later. In the former case of a forward TT-generation plus backward PPgenerations,<br />

the updates at tj are needed for any node n1, nj → n1 must have its upper and lower updated<br />

if its lower is smaller than that of tj . And Hc must be updated also if any updated lower is greater than<br />

the current Hc. Otherwise, it will not be able to get a token or fire at least once if the amount of tokens<br />

in the home place equals the old lower (not updated) at the node. If the lower of the above is smaller<br />

n 1

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

Saved successfully!

Ooh no, something went wrong!