Subject: SDL-News: Import/Export - reg
From: Elangovan Angannan (sdlelango#yahoo.com)
Date: Tue Jun 12 2001 - 12:48:16 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 Elangovan Angannan <sdlelango#yahoo.com> to sdlnews -----
Dear SDL experts,
I am new to SDL. Could you please help in clarifying
my doubt regarding exporting variables?
I have developed a system with a block "myblock"
containing two processes "p1" and "p2". p1 contains an
exported variable. But I was not able to import the
variable from p2. I have given the system in SDL/PR
notation below:
*** START ***
package referenced;
package mypackage;
signal setx(integer),fromp2(integer);
endpackage;
use mypackage;
block myblock;
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;
export(x);
output fromp2(x);
nextstate -;
endstate waitx;
endprocess;
process<<block myblock>>p1;
signalset setx;
dcl exported x integer;
start;
nextstate init;
state init;
input setx(x);
nextstate-;
endstate init;
endprocess;
*** END ***
Thanks a lot for any help
Elango
__________________________________________________
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