Subject: RE: SDL-News: Import/Export - reg
john.svensson#telelogic.se
Date: Tue Jun 12 2001 - 20:01:58 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From john.svensson#telelogic.se to sdlnews -----
Dear sir,
It is necessary to change a few things in your system to make the import of
a variable work.
There must be a remote declaration to set the scope for the variable.
You must make an import operation in the importing process.
There must be an export statement in the exporting process.
Try the following:
*** START ***
package referenced;
package mypackage;
signal setx(integer),fromp2(integer);
endpackage;
use mypackage;
block myblock;
remote x integer;
signalroute SR1 from p2 to env with fromp2;
signalroute SR2 from p1 to env with setx;
process p1 referenced;
process p2 referenced;
endblock;
process <<block myblock>>p2;
imported x integer;
start;
nextstate waitx;
state waitx;
input none;
output fromp2(import(x));
nextstate -;
endstate waitx;
endprocess;
process<<block myblock>>p1;
signalset setx;
dcl exported x integer;
start;
nextstate init;
state init;
input setx(x);
export(x);
nextstate-;
endstate init;
endprocess;
*** END ***
Best regards,
John Svensson
-------------------------------------------------------
Telelogic Tau 4.2 speeds up your wireless development!
Read more about it at http://www.telelogic.com/tau42
John Svensson
Product Development Manager
Telelogic Academy
P O Box 4128 phone: +46 40-17
47 45
SE-203 12 Malmö fax: +46 40-17 47 47
Sweden mobile:
+46-705 17 47 72
mailto: john.svensson#telelogic.com
http://www.telelogic.com
Telelogic - Putting you ahead in software development!
--------------------------------------------------------
--End text from john.svensson#telelogic.se to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT