09.08.2013 Views

Architecture Modeling - SPES 2020

Architecture Modeling - SPES 2020

Architecture Modeling - SPES 2020

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Pattern whenever event occurs condition holds [during interval]<br />

F2:<br />

If the event occurs it has to be ensured that the condition is valid during the specified interval or, if<br />

there is no interval specified, forever.<br />

Natural Language Requirement:<br />

If the start button gets pushed signal a and signal be shall be equal for at least 5 seconds.<br />

Pattern based RSL:<br />

whenever StartButtonPushed occurs (SigA == SigB) holds during [0s,5s].<br />

Observers for iterative interpretation with open and closed intervals with events:<br />

e2 && (clk==0)<br />

|fail:=true<br />

e1<br />

idle pre<br />

e1<br />

idle pre<br />

idle<br />

e1<br />

e2 && (clk==0)<br />

|fail:=true<br />

pre<br />

!(c)<br />

|fail:=true<br />

!(c)<br />

|clk:=0<br />

!(c)<br />

|clk:=0<br />

sIn<br />

e2<br />

clk>0<br />

e2 && (clk>0)<br />

!(c) && (clk==0)<br />

|fail:=true<br />

whenever e1 occurs (c) holds during [e2,e3].<br />

e3<br />

!(c)<br />

|clk:=0<br />

!(c) && (clk>0)<br />

|fail:=true<br />

<strong>Architecture</strong> <strong>Modeling</strong><br />

!(c)<br />

|clk:=0<br />

sIn<br />

e2<br />

clk>0<br />

|fail:=true<br />

e2 && (clk>0)<br />

e3 && (clk==0)<br />

whenever e1 occurs (c) holds during [e2,e3[.<br />

e2<br />

|clk:=0<br />

clk>0<br />

!(c) && (clk==0)<br />

!(c) && (clk==0)<br />

|fail:=true<br />

whenever e1 occurs (c) holds during ]e2,e3].<br />

in<br />

in<br />

in<br />

e3<br />

|clk:=0<br />

e3<br />

|clk:=0<br />

!(c)<br />

|clk:=0<br />

sOut<br />

sOut<br />

sOut<br />

127/ 156

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

Saved successfully!

Ooh no, something went wrong!