Department of Computing Science, University of Newcastle upon TyneI.G. ClarkDepartment of Electronic Engineering, King’s College LondonIndexing terms: asynchronous data communications, concurrent systems.1 AbstractThe 3-slot asynchronous communication mechanism (ACM) has existed for a long time, but hasalways been regarded as an inferior solution, especially to the 4-slot ACM, primarily because of questionsabout its behaviour when individual control variable statements are regarded as non-atomic. With thepublication of ACM solutions using mutex elements to deal with metastability, however, any statementprotected by a mutex can be regarded as atomic. In such ACM designs it may turn out to be advantageousto use a 3-slot algorithm instead of a 4-slot one with potentially significant savings in silicon. Here the 3-slot method is studied in detail, using a particular algorithm as an example, with certain atomicassumptions consistent with mutex protection of statements. The results confirm promising potential for 3-slot ACMs.2 IntroductionData communication between processes running in different processors has been extensively studied,especially in distributed and real-time systems. The minimal form of this problem concerns the passing ofdata between two distributed single-thread processes. One provides the data, which is used by the other.This is schematically shown in Figure 1.process 1 data process 2Figure 1 Passing data between two processes.In distributed systems, processors may not always share a common clock. When the two processes inFigure 1 are not synchronised, some kind of intermediate data repository, usually in the form of sharedmemory, is often needed between them to facilitate the data passage. This is schematically shown inFigure 2.process 1 process 2data repository(shared memory)Figure 2 Passing data via shared memory.An asynchronous data communication mechanism (ACM) is a scheme which manages the transfer ofdata between two processes not necessarily synchronised for the purpose of data transfer. It is assumedthat the data being passed consists of a stream of individual items of a given type. It is also assumed thatthe processes in question are single thread cycles, one providing an item of data during each cycle, theother making use of an item of data during each cycle. The provider of data is known as the “writer” of theACM and the user of data is known as the “reader” of the ACM.writerdata in shared memorycontrol variablesreaderFigure 3 ACM using shared memory and control variables.Such techniques as the multiple “slot” (or “track”) mechanisms described in [1], [2] and [3] realiseregular and atomic registers in the data path between asynchronous concurrent processes by employing“safe” bit registers to convey the values of bit-size control variables. They avoid conflicts on data memory
[1]
John Tromp,et al.
How to construct an atomic variable
,
1989
.
[2]
Fei Xia,et al.
Complementing Role Models with Petri Nets in Studying Asynchronous Data Communications
,
2000
.
[3]
H. R. Simpson.
Correctness analysis for class of asynchronous communication mechanisms
,
1992
.
[4]
H. R. Simpson.
Four-slot fully asynchronous communication mechanism
,
1990
.
[5]
Evangelos Kranakis,et al.
Atomic Multireader Register
,
1987,
WDAG.
[6]
Fei Xia.
Testing the data freshness properties of asynchronous communication mechanisms
,
2007
.
[7]
Fei Xia,et al.
An Asynchronous Communication Mechanism Using Self-timed Circuits
,
1999
.