de.michab.simulator
Interface Forwarder

All Known Subinterfaces:
Bus
All Known Implementing Classes:
ArrayPort, Port

public interface Forwarder

An entity that is responsible for receiving a read or write operation and forwarding that to some target. Used for example for implementing chip registers, where the processor writes to the register and that write eventually is forwarded to some chip internal machinery.

Version:
$Revision: 1.8 $
Author:
Michael G. Binz

Method Summary
 byte read()
          Read a byte from this Forwarder.
 void write(byte value)
          Write a byte to this Forwarder.
 

Method Detail

read

public byte read()
Read a byte from this Forwarder.

Returns:
The byte read.

write

public void write(byte value)
Write a byte to this Forwarder.

Parameters:
value - The byte to write.