Emulator.Global
Class DataTransferMap

java.lang.Object
  extended by Emulator.Global.DataTransferMap
All Implemented Interfaces:
Constants

public class DataTransferMap
extends java.lang.Object
implements Constants

********************** Created By: Yuval Tzur Date: 15/12/12 Time: 15:04 Description: The Data Transfer Map acts as a routing table for data. Each row defines the current component holding the data. Each column defines the target component to which the data is transferred. A cell defined by a row and column defines the next component to receive the data. Special values are designated to special actions: UNREACHABLE - The data can't reach the target from its current location. TARGET_REACHED - Current location is the target. ***********************


Field Summary
 
Fields inherited from interface Emulator.Global.Constants
_0, _1, AC, ADDR_REGISTER_SIZE, ALU, ALU_IN0, ALU_IN1, ALU_OUT, AR, BUS, BUS_SIZE, DATA_COMPONENTS, DATA_REGISTER_SIZE, DATA_TABLE_SIZE, DR, E, FGI, FGO, I, IEN, INPR, IO_REGISTER_SIZE, IR, M, MEMORY_SIZE, OUTR, PC, R, S, TARGET_REACHED, TIMEOUT, TIMER, TIMER_LIMIT, TR, TR0, TR1, UNREACHABLE
 
Constructor Summary
DataTransferMap(java.lang.String filename)
           
 
Method Summary
 int nextInRoute(int currID, int targetID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTransferMap

public DataTransferMap(java.lang.String filename)
Method Detail

nextInRoute

public int nextInRoute(int currID,
                       int targetID)