Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

oagFunc::SimOcc Class Reference

An object for simulating input vectors on hierarchical designs. More...

#include <oagFpgaSimOcc.h>

List of all members.

Public Types

typedef unsigned int SimVec

Public Member Functions

 SimOcc (oa::oaDesign *design)
 Constructor.
void setVector (OccRef &ref, SimulationVector vec)
 Sets the simulation vector of a reference.
void generateRandomInputVectors ()
 Generates a set of random vectors at all inputs.
void generateRandomStateVectors ()
 Generates a set of random vectors at all state bits.
void clear ()
 Clears all previously set and computed vectors.
void nextCycle ()
 Advances all of the state bits to the next state value.
void runFull ()
 Propagates simulation vectors through all combinational logic.
void initializeIncremental ()
void runIncremental ()
bool getVector (const OccRef &ref, SimulationVector &vec)
 Returns the simulation vector stored for a reference.

Protected Member Functions

SimulationVector randomVector ()
 a random vector

Protected Attributes

int BITS_PER_RAND
oa::oaDesign * design
list< OccRef > toBeSimulated
map< OccRef, SimulationVectordata


Detailed Description

An object for simulating input vectors on hierarchical designs.

Definition at line 36 of file oagFpgaSimOcc.h.


Member Typedef Documentation

typedef unsigned int oagFunc::SimOcc::SimVec
 

Definition at line 40 of file oagFpgaSimOcc.h.


Constructor & Destructor Documentation

oagFunc::SimOcc::SimOcc oa::oaDesign *  design  ) 
 

Constructor.

Definition at line 29 of file oagFpgaSimOcc.cpp.

References BITS_PER_RAND, and clear().


Member Function Documentation

void oagFunc::SimOcc::clear  ) 
 

Clears all previously set and computed vectors.

Definition at line 51 of file oagFpgaSimOcc.cpp.

References data, and toBeSimulated.

Referenced by SimOcc().

void oagFunc::SimOcc::generateRandomInputVectors  ) 
 

Generates a set of random vectors at all inputs.

Definition at line 100 of file oagFpgaSimOcc.cpp.

References design, randomVector(), and setVector().

void oagFunc::SimOcc::generateRandomStateVectors  ) 
 

Generates a set of random vectors at all state bits.

Definition at line 84 of file oagFpgaSimOcc.cpp.

References design, randomVector(), and setVector().

bool oagFunc::SimOcc::getVector const OccRef &  ref,
SimulationVector vec
 

Returns the simulation vector stored for a reference.

Parameters:
ref 
vec 
Returns:
true, if the vector is valid (has been simulated)

Definition at line 304 of file oagFpgaSimOcc.cpp.

References data, and toBeSimulated.

void oagFunc::SimOcc::initializeIncremental  ) 
 

void oagFunc::SimOcc::nextCycle  ) 
 

Advances all of the state bits to the next state value.

Definition at line 321 of file oagFpgaSimOcc.cpp.

References data, design, and toBeSimulated.

SimulationVector oagFunc::SimOcc::randomVector  )  [protected]
 

a random vector

Definition at line 118 of file oagFpgaSimOcc.cpp.

References oagFunc::SimulationVector.

Referenced by generateRandomInputVectors(), and generateRandomStateVectors().

void oagFunc::SimOcc::runFull  ) 
 

Propagates simulation vectors through all combinational logic.

Definition at line 138 of file oagFpgaSimOcc.cpp.

References data, DEBUG_PRINT, DEBUG_PRINTMORE, design, oagFunc::SimulationVector, and toBeSimulated.

void oagFunc::SimOcc::runIncremental  ) 
 

void oagFunc::SimOcc::setVector OccRef &  ref,
SimulationVector  vec
 

Sets the simulation vector of a reference.

Parameters:
ref 
vec 

Definition at line 67 of file oagFpgaSimOcc.cpp.

References data, and toBeSimulated.

Referenced by generateRandomInputVectors(), and generateRandomStateVectors().


Member Data Documentation

int oagFunc::SimOcc::BITS_PER_RAND [protected]
 

Definition at line 61 of file oagFpgaSimOcc.h.

Referenced by SimOcc().

map<OccRef, SimulationVector> oagFunc::SimOcc::data [protected]
 

Definition at line 65 of file oagFpgaSimOcc.h.

Referenced by clear(), getVector(), nextCycle(), runFull(), and setVector().

oa::oaDesign* oagFunc::SimOcc::design [protected]
 

Definition at line 63 of file oagFpgaSimOcc.h.

Referenced by generateRandomInputVectors(), generateRandomStateVectors(), nextCycle(), and runFull().

list<OccRef> oagFunc::SimOcc::toBeSimulated [protected]
 

Definition at line 64 of file oagFpgaSimOcc.h.

Referenced by clear(), getVector(), nextCycle(), runFull(), and setVector().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:17:24 2007 for OA Gear Fpga by  doxygen 1.3.9.1