com.cmpware.cmp.links
Class CellBE_SharedRegister

java.lang.Object
  extended by com.cmpware.cmp.Link
      extended by com.cmpware.cmp.links.SharedRegister
          extended by com.cmpware.cmp.links.CellBE_SharedRegister
All Implemented Interfaces:
MemoryMappedIOReader, MemoryMappedIOWriter

public class CellBE_SharedRegister
extends SharedRegister

This class extends the standard shared register for the Cell BE. The only difference is that the read does not stall and over-reads the data quietly. This implements the functionality of the PPU to SPU mailbox channels.

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

Author:
SAG

Field Summary
static java.lang.String copyright
          Copyright string
 
Fields inherited from class com.cmpware.cmp.links.SharedRegister
mmioe, readAddr, readCount, readStallCount, shreg, shregShadow, writeAddr, writeCount, writeStallCount
 
Constructor Summary
CellBE_SharedRegister()
           
 
Method Summary
 int read()
          This method reads a value from the Memory Mapped IO port.
 
Methods inherited from class com.cmpware.cmp.links.SharedRegister
clear, getReadAddress, getReadCount, getReadStallCount, getValue, getWriteAddress, getWriteCount, getWriteStallCount, isReadable, isSet, isWriteable, readCommit, reset, set, setReadAddress, setWriteAddress, write, writeCommit
 
Methods inherited from class com.cmpware.cmp.Link
get, setBufferSize
 
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
Constructor Detail

CellBE_SharedRegister

public CellBE_SharedRegister()
Method Detail

read

public int read()
         throws MemoryMappedIOException
Description copied from interface: MemoryMappedIOReader
This method reads a value from the Memory Mapped IO port.

Specified by:
read in interface MemoryMappedIOReader
Overrides:
read in class SharedRegister
Returns:
This method reads a value from the Memory mapped IO port.
Throws:
MemoryMappedIOException - - this method throws a MemoryMappedIOException if the read could not be completed on this cycle. This will typically cause a stall of the processor and a retry on the next cycle.