Newsgroups: comp.sys.transputer
From: andyr@wizzy.com (Andy Rabagliati)
Subject: Re: Clarification needed for T800 transputer and OCCAM
Organization: W.Z.I.
Date: Thu, 7 Apr 1994 21:52:48 GMT
Message-ID: <Cnwss1.1y9@wizzy.com>

In article <1994Apr7.163800.23391@cs.uno.edu>,
koppolu <kkoppolu@chezhelen.cs.uno.edu> wrote:
>
>I need to find out a suitable OCCAM2 construct to pass data simultaneously  
>in both directions across a bidirectional link between a pair of  
>transputers. 

Treat the link as two separate channels.

-----------                   -----------
|         |                   |         |
| T800    |-------------------| T425    |
|         | Link 1     Link 3 |         |
|         |                   |         |
-----------                   -----------


As an example, On the T800 :-

PROC generate ()

  CHAN OF REAL64 dfloats :
  PLACE dfloats AT 1 :
  REAL64 float :
  dfloats ! float
:

PROC consume()

  CHAN OF BYTE biter :
  PLACE biter AT 5 :
  BYTE b :
  biter ? b
:

PRI PAR
  generate()
  consume()


You will note that there is nothing in common between the two channels,
neither their protocol, number of bytes in each direction, their
priority, nothing.

The only thing in common is that they are both PLACEd on the same
link.

Cheers,     Andy.

