Newsgroups: comp.sys.transputer
From: andyr@teal.csn.org (Andy Rabagliati)
Subject: Re: occam CHAN vs. PORT
Organization: Colorado SuperNet, Inc.
Date: 4 Nov 1994 13:16:12 GMT
Message-ID: <39dc6s$dk7@burgundy.csn.net>

In article <189@autro1.UUCP>, Oyvind Teig <teig@autro1.UUCP> wrote:
>OCCAM CHAN vs. PORT
>
>Questions below concern memory mapped I/O only:
>Q1.  CHAN and PORT - What is the difference?

These are very different.

PORT is a PLACEd variable, with a different syntax.

It has the syntax of a channel, to emphasise its volatile nature.


>Q2.  Which do I use if I want to access memory mapped I/O?

PORT.

>Q3.  Which do I use if I later on want to make a simulator for the I/O?

A high priority process that is always ready to do I/O.

>Q4.  How do I access memory mapped registers on a UART?

[16]PORT OF BYTE.


Cheers,       Andy!


--
What Godzilla said to God when his name                       andyr@wizzy.com
wasn't found in the Book of Life. (American Music Club)     W.Z.I. Consulting


