com.cmpware.cmp.system.memory
Class Ring

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

public class Ring
extends SystemMemory

This implements ring of processors with shared memory between each of the nodes. Note that the memories have to be mapped at different addresses in each processor to avoid address conflict.

Copyright (c) 2007 Cmpware, Inc. All Rights Reserved.

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
static int MEMORY_ADDRESS1
          The address of the memory bank 1
static int MEMORY_ADDRESS2
          The address of the memory bank 2
static int MEMORY_SIZE
          The size of the memory (in bytes)
 
Constructor Summary
Ring()
           
 
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

MEMORY_SIZE

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


MEMORY_ADDRESS1

public static int MEMORY_ADDRESS1
The address of the memory bank 1


MEMORY_ADDRESS2

public static int MEMORY_ADDRESS2
The address of the memory bank 2

Constructor Detail

Ring

public Ring()
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.