byucc.jhdl.base
Interface Checkpointable

All Known Implementing Classes:
GenericMemory, RAMB16_S, RAMB16_S_S, RAMB16DualNoParity, RAMB16DualParity, RAMB16DualParityB, RAMB16SingleNoParity, RAMB16SingleParity, RAMB4Dual, RAMB4Single, Tbone

public interface Checkpointable

This interface flags JHDL objects (*other* than those primitives who are ExternallyUpdatable) that can be Checkpointed when a circuit checkpoint is performed.


Method Summary
 java.io.Serializable getData()
          Called by the checkpointing code to get all of the data that should be checkpointed.
 void setData(java.io.Serializable data)
          This is called on a checkpoint restore, and the object checkpointed out is passed back in.
 

Method Detail

getData

public java.io.Serializable getData()
Called by the checkpointing code to get all of the data that should be checkpointed. The data in the object returned should include all literal values last "put" onto all output wires, and any internal state that must be saved

Returns:
all state to be saved

setData

public void setData(java.io.Serializable data)
This is called on a checkpoint restore, and the object checkpointed out is passed back in. In this function it is the responsibility of the circuit to do "put"s on all output wires using the *literal* (non-calculated) values checkpointed.

Parameters:
data - the state that was saved earlier


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.