com.cmpware.cmp.networks
Class Torus

java.lang.Object
  extended by com.cmpware.cmp.Network
      extended by com.cmpware.cmp.networks.Torus

public class Torus
extends Network

This implements a 2D Torus (a 2D grid with the ends connected around -- a dougnhut) network. Each processor also contains a "null device" which is an unsynchronized pipeline register which goes nowhere. This is often useful in software for terminating a data stream.

Copyright (c) 2004, 2005, 2006 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
static int DEV_NULL
          The address of the 'null device' IO register
static int EAST
          The address of the 'east' IO register
static int IO_ANCHOR
          The start address of the IO registers
static int NORTH
          The address of the 'north' IO register
static int SOUTH
          The address of the 'south' IO register
static int WEST
          The address of the 'west' IO register
 
Constructor Summary
Torus()
           
 
Method Summary
 void connectNetwork(Multiprocessor mp, java.lang.String linkName)
          This method is called to build the interconnection network for the newly allocated processor array.
 
Methods inherited from class com.cmpware.cmp.Network
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright
Copyright string

See Also:
Constant Field Values

IO_ANCHOR

public static int IO_ANCHOR
The start address of the IO registers


NORTH

public static int NORTH
The address of the 'north' IO register


EAST

public static int EAST
The address of the 'east' IO register


SOUTH

public static int SOUTH
The address of the 'south' IO register


WEST

public static int WEST
The address of the 'west' IO register


DEV_NULL

public static int DEV_NULL
The address of the 'null device' IO register

Constructor Detail

Torus

public Torus()
Method Detail

connectNetwork

public void connectNetwork(Multiprocessor mp,
                           java.lang.String linkName)
                    throws LinkException
Description copied from class: Network
This method is called to build the interconnection network for the newly allocated processor array.

Specified by:
connectNetwork in class Network
Parameters:
mp - The multiprocessor to be connected.
linkName - The name of the link type to be used to build this network. This shouyld be a fully qualified class name. This parameter may or may not be used in this method, depending on the type of network constructed.
Throws:
LinkException - if there is a problem allocating or using the Link objects.