Main Page | Modules | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages | Examples

ac_storage Class Reference

#include <ac_storage.H>

Inheritance diagram for ac_storage:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ac_word read (unsigned address)
 Reading a word.

virtual unsigned char read_byte (unsigned address)
 Reading a byte.

virtual ac_Hword read_half (unsigned address)
 Reading half word.

virtual void write (unsigned address, ac_word datum)
 Writing a word.

virtual void write_byte (unsigned address, unsigned char datum)
 Writing a byte.

virtual void write_half (unsigned address, ac_Hword datum)
 Writing a short int.

 ac_storage (char *n, unsigned s)
 Constructor.

 ac_storage (char *n)
 Constructor. Without Data Initialization.

virtual ~ac_storage ()
 Destructor.

ac_storageoperator= (ac_storage &src)
 Copy operator.

void initialize (char *n, unsigned s)
 Method to initialize Data array dynamically.

char * get_name ()
 Method to provide the name of the device.

unsigned get_size ()
 Method to provide the size of the device.

void load (char *file)
 Method to load device content from a file.

void load_array (const unsigned char *d, const unsigned s)
 Method to load device content from an array.


Protected Attributes

char * Data
 The data stored into the device.

char * name
 Device name.

unsigned size
 Device size.


Detailed Description

ArchC class for storage devices

Definition at line 53 of file ac_storage.H.


Constructor & Destructor Documentation

ac_storage::ac_storage char *  n  )  [inline]
 

Constructor. Without Data Initialization.

Used to declare devices where sizes will be computed dynamically

Definition at line 135 of file ac_storage.H.

References name.


The documentation for this class was generated from the following files:
Generated on Thu Jun 24 08:30:09 2004 for ArchC by doxygen 1.3.4