Newsgroups: comp.sys.transputer
From: andyr@wizzy.com (Andy Rabagliati)
Subject: Re: Occam problem
Organization: W.Z.I.
Date: Wed, 29 Jun 1994 17:12:11 GMT
Message-ID: <Cs654C.L0r@wizzy.com>

Matthew Wood <mwood@tartarus.uwa.edu.au> wrote:
>
>In particular I have a problem with passing an array of channels from a
>PLACED PAR statement.
>
>[2]CHAN OF INT channel.block
>
>PLACED PAR
>
>  PROCESSOR 0 T425
>    PLACE from.host AT link0.in
>    PLACE to.host AT link0.out
>
>    PLACE channel.block[0] AT link1.out
>    PLACE channel.block[1] AT link2.out
>
>    main(from.host, to.host, channel.block)
>

There was a change in moving from Dx205 to Dx305 toolsets in the
way channels were handled.

Dx205 allowed you to PLACE arrays of channels - of course this only made
sense with arrays of input and output hard links.

[4]CHAN OF INT link.in :
PLACE link.in AT 4 :       -- old, now obsolete

Now you do this (Dx305a) :-

CHAN OF INT link.in.0 :
PLACE link0.in   AT 4 :
CHAN OF INT link.in.1 :
PLACE link0.in   AT 5 :
CHAN OF INT link.in.2 :
PLACE link0.in   AT 6 :
CHAN OF INT link.in.3 :
PLACE link0.in   AT 7 :

[4]CHAN OF INT link.in IS [ link.in.3, link.in.0, link.in.1, link.in.2 ] :

For a major improvement in flexibility.

This certainly works in occam code, I confess I have not actually tried
it at configuration level.

Cheers,      Andy.

--
Andy Rabagliati . andyr@wizzy.com .  Parallel processing  . +1.719.635.6099

