jmce - 1_02

jmce.intel
Class I8237

java.lang.Object
  extended by jmce.sim.AbstractHardware
      extended by jmce.sim.AbstractPeripheral
          extended by jmce.intel.I8237
All Implemented Interfaces:
Hardware, Peripheral

public class I8237
extends AbstractPeripheral

Intel 8237 Dma Controller

This class implements a complete 4 channel Intel 8237 dma controller.

Limitations :

Resources used :

Version:
1.00
Author:
Mario Viara

Nested Class Summary
 class I8237.I8237Channel
          Inner class for I8237 channel
 class I8237.WordRegister
          Class to rappresent a 16 bit register that can be readed / written at 8 bit at time.
 
Field Summary
static int MODE_AUTO
          Auto initialize on TC
static int MODE_DECREMENT
          Address decremenent if not set address are incrmented
static int MODE_DMA_BLOCK
          Mode block transfer
static int MODE_DMA_CASCADE
          Cascade mode trasfer
static int MODE_DMA_DEMAND
          Mode demand
static int MODE_DMA_MASK
          Mask mode in mode register
static int MODE_DMA_SINGLE
          Mode Single transfer
static int MODE_TRANSFER_MASK
          Transfer mask
static int MODE_TRANSFER_READ
          Read mode
static int MODE_TRANSFER_VERIFY
          Verify mode
static int MODE_TRANSFER_WRITE
          Write mode
 
Fields inherited from class jmce.sim.AbstractPeripheral
cpu
 
Method Summary
 jmce.intel.DmaChannel getChannelAt(int i)
          Return a specific DMA channel
 int getChannelCount()
          Return the number of channel installed.
 int getPort()
           
 int readMemory(Memory m, int a, int v)
           
 void setPort(int port)
           
 java.lang.String toString()
           
 void writeMemory(Memory m, int a, int v, int oldValue)
           
 
Methods inherited from class jmce.sim.AbstractPeripheral
idle, registerCPU, setIdle, setLive
 
Methods inherited from class jmce.sim.AbstractHardware
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jmce.sim.Hardware
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, init, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName
 

Field Detail

MODE_DMA_MASK

public static final int MODE_DMA_MASK
Mask mode in mode register

See Also:
Constant Field Values

MODE_DMA_DEMAND

public static final int MODE_DMA_DEMAND
Mode demand

See Also:
Constant Field Values

MODE_DMA_SINGLE

public static final int MODE_DMA_SINGLE
Mode Single transfer

See Also:
Constant Field Values

MODE_DMA_BLOCK

public static final int MODE_DMA_BLOCK
Mode block transfer

See Also:
Constant Field Values

MODE_DMA_CASCADE

public static final int MODE_DMA_CASCADE
Cascade mode trasfer

See Also:
Constant Field Values

MODE_DECREMENT

public static final int MODE_DECREMENT
Address decremenent if not set address are incrmented

See Also:
Constant Field Values

MODE_AUTO

public static final int MODE_AUTO
Auto initialize on TC

See Also:
Constant Field Values

MODE_TRANSFER_MASK

public static final int MODE_TRANSFER_MASK
Transfer mask

See Also:
Constant Field Values

MODE_TRANSFER_VERIFY

public static final int MODE_TRANSFER_VERIFY
Verify mode

See Also:
Constant Field Values

MODE_TRANSFER_READ

public static final int MODE_TRANSFER_READ
Read mode

See Also:
Constant Field Values

MODE_TRANSFER_WRITE

public static final int MODE_TRANSFER_WRITE
Write mode

See Also:
Constant Field Values
Method Detail

getPort

public int getPort()

setPort

public void setPort(int port)

readMemory

public int readMemory(Memory m,
                      int a,
                      int v)
               throws SIMException
Throws:
SIMException

writeMemory

public void writeMemory(Memory m,
                        int a,
                        int v,
                        int oldValue)
                 throws SIMException
Throws:
SIMException

getChannelCount

public int getChannelCount()
Return the number of channel installed.


getChannelAt

public jmce.intel.DmaChannel getChannelAt(int i)
Return a specific DMA channel


toString

public java.lang.String toString()
Overrides:
toString in class AbstractHardware

jmce - 1_02