RE: SDL-News: Import/Export - reg

Subject: RE: SDL-News: Import/Export - reg
Date: Tue Jun 12 2001 - 20:01:58 GMT

Become an SDL Forum Society member <>
The originator of this message is responsible for its content.
-----From 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);

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;

process <<block myblock>>p2;
  imported x integer;

  nextstate waitx;

  state waitx;
   input none;
   output fromp2(import(x));
   nextstate -;
  endstate waitx;

process<<block myblock>>p1;
  signalset setx;
  dcl exported x integer;

  nextstate init;
  state init;
   input setx(x);
  endstate init;

*** END ***

Best regards,

John Svensson

Telelogic Tau 4.2 speeds up your wireless development!
Read more about it at

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

Telelogic - Putting you ahead in software development!

--End text from to sdlnews ---
For extra SDL Forum Society benefits join at <>

This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:49 GMT