com.cmpware.cmp.system.memory
Class Torus

java.lang.Object
  extended by com.cmpware.cmp.SystemMemory
      extended by com.cmpware.cmp.system.memory.Torus

public class Torus
extends SystemMemory

This implements a 2D Torus (a 2D grid with the ends connected around -- a dougnhut) shared memory configuration. Neighboring processors share a small block of memory in a toroidal topology.

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

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
static int EAST
          The start address of the 'east' shared memory bank
static int LOCAL_MEMORY_SIZE
          The size of the local memory (in bytes)
static int NORTH
          The start address of the 'north' shared memory bank
static int SHARED_MEMORY_SIZE
          The size of the shared memories (in bytes)
static int SOUTH
          The start address of the 'south' shared memory bank
static int WEST
          The start address of the 'west' shared memory bank
 
Constructor Summary
Torus()
           
 
Method Summary
 void configureMemory(Multiprocessor mp)
          This method is called to build and configure the memory system for the newly allocated processor array.
 
Methods inherited from class com.cmpware.cmp.SystemMemory
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

LOCAL_MEMORY_SIZE

public static int LOCAL_MEMORY_SIZE
The size of the local memory (in bytes)


SHARED_MEMORY_SIZE

public static int SHARED_MEMORY_SIZE
The size of the shared memories (in bytes)


NORTH

public static int NORTH
The start address of the 'north' shared memory bank


EAST

public static int EAST
The start address of the 'east' shared memory bank


SOUTH

public static int SOUTH
The start address of the 'south' shared memory bank


WEST

public static int WEST
The start address of the 'west' shared memory bank

Constructor Detail

Torus

public Torus()
Method Detail

configureMemory

public void configureMemory(Multiprocessor mp)
                     throws SystemMemoryException
Description copied from class: SystemMemory
This method is called to build and configure the memory system for the newly allocated processor array. In particular, shared memories should be allocated and connected to processors here. This method may also be used to adding additional banks of local memories or manipulating the default local memory, although this could also be done locally.

Specified by:
configureMemory in class SystemMemory
Parameters:
mp - The multiprocessor.
Throws:
SystemMemoryException - if there is a problem allocating or using the memory objects.