Sampa::Dma Class Reference

#include <dma.h>

Inheritance diagram for Sampa::Dma:

Sampa::Module Sampa::ContainerObject Sampa::Object

List of all members.

Public Member Functions

 Dma (const Name &name)
void bind_clock (Clock *clock)
void bind_read_target (Target *)
void bind_write_target (Target *)
Initiatorget_read_initiator ()
Initiatorget_write_initiator ()
 SAMPA_PERSISTENT (Module)
const char * get_name () const
const char * get_full_name () const
 name can be ([^. ]+.)*[^. ]+
Objectget_parent () const
 return object containing this one
Objectget_sibling () const
 return next object with same parent or NULL if none
Objectget_first_child () const
 return first child object or NULL if none
int is_debug () const

Protected Types

typedef
AdaptingInitiator
< Dma
AdaptingInitiator
enum  Severity { S_INFO, S_WARNING, S_ERROR, S_FATAL }

Protected Member Functions

void complete_restart ()
bool recieve_read_response (const Response &)
bool recieve_write_response (const Response &)
void request ()
void forward ()
void set_next_trigger (EventListenerSingle &)
ProcessBase__get_process_by_name (const std::string &name)
void debug (const char *,...)
void error (Severity severity, const char *,...)

Protected Attributes

int m_transfer
IntParameter m_word_size
IntParameter m_transfer_size
IntParameter m_burst_size
Time m_period
Time m_request_date
Burst m_read_burst
Burst m_write_burst
HexParameter m_read_address_base
HexParameter m_write_address_base
Address m_read_address
Address m_write_address
EventSingle e_request
AdaptingInitiator p_read
AdaptingInitiator p_write
EventListener e_push_or_write_request_accept_event
Request m_read_request
Request m_write_request
Fifo m_response_fifo
Gated< bool > m_pending

Private Member Functions

 SAMPA_MODULE (Dma)


Detailed Description

Definition at line 28 of file dma.h.


Member Typedef Documentation

typedef AdaptingInitiator<Dma> Sampa::Dma::AdaptingInitiator [protected]

Definition at line 50 of file dma.h.


Member Enumeration Documentation

enum Sampa::Object::Severity [protected, inherited]

Enumerator:
S_INFO 
S_WARNING 
S_ERROR 
S_FATAL 

Definition at line 48 of file object.h.


Constructor & Destructor Documentation

Sampa::Dma::Dma ( const Name name  ) 


Member Function Documentation

Sampa::Dma::SAMPA_MODULE ( Dma   )  [private]

void Sampa::Dma::bind_clock ( Clock clock  ) 

void Sampa::Dma::bind_read_target ( Target  ) 

void Sampa::Dma::bind_write_target ( Target  ) 

Initiator* Sampa::Dma::get_read_initiator (  )  [inline]

Definition at line 38 of file dma.h.

References p_read.

Initiator* Sampa::Dma::get_write_initiator (  )  [inline]

Definition at line 39 of file dma.h.

References p_write.

void Sampa::Dma::complete_restart (  )  [protected, virtual]

is called to finalize restart. On restart, one shall update pointers, or reopen ressources (files, ...).

Most of pointers are restored by the thanks to the post++ library provided that the CLASSINFO() was correctly set.

However, some pointers are not relocated by the library. These are for example the method pointers used for the processes. Take a look at

See also:
Module::restart_process, to see how this is handled

Reimplemented from Sampa::Object.

bool Sampa::Dma::recieve_read_response ( const Response  )  [protected]

bool Sampa::Dma::recieve_write_response ( const Response  )  [protected]

void Sampa::Dma::request (  )  [protected]

void Sampa::Dma::forward (  )  [protected]

void Sampa::Module::set_next_trigger ( EventListenerSingle  )  [protected, inherited]

ProcessBase* Sampa::Module::__get_process_by_name ( const std::string &  name  )  [protected, inherited]

Sampa::Module::SAMPA_PERSISTENT ( Module   )  [inherited]

const char* Sampa::Object::get_name (  )  const [inherited]

returns the local name

const char* Sampa::Object::get_full_name (  )  const [inherited]

name can be ([^. ]+.)*[^. ]+

Object* Sampa::Object::get_parent (  )  const [inherited]

return object containing this one

Object* Sampa::Object::get_sibling (  )  const [inherited]

return next object with same parent or NULL if none

Object* Sampa::Object::get_first_child (  )  const [inherited]

return first child object or NULL if none

int Sampa::Object::is_debug (  )  const [inline, inherited]

Definition at line 44 of file object.h.

void Sampa::Object::debug ( const char *  ,
  ... 
) [protected, inherited]

void Sampa::Object::error ( Severity  severity,
const char *  ,
  ... 
) [protected, inherited]


Member Data Documentation

int Sampa::Dma::m_transfer [protected]

Definition at line 51 of file dma.h.

IntParameter Sampa::Dma::m_word_size [protected]

Definition at line 52 of file dma.h.

IntParameter Sampa::Dma::m_transfer_size [protected]

Definition at line 53 of file dma.h.

IntParameter Sampa::Dma::m_burst_size [protected]

Definition at line 54 of file dma.h.

Time Sampa::Dma::m_period [protected]

Definition at line 55 of file dma.h.

Time Sampa::Dma::m_request_date [protected]

Definition at line 56 of file dma.h.

Burst Sampa::Dma::m_read_burst [protected]

Definition at line 57 of file dma.h.

Burst Sampa::Dma::m_write_burst [protected]

Definition at line 58 of file dma.h.

HexParameter Sampa::Dma::m_read_address_base [protected]

Definition at line 59 of file dma.h.

HexParameter Sampa::Dma::m_write_address_base [protected]

Definition at line 60 of file dma.h.

Address Sampa::Dma::m_read_address [protected]

Definition at line 61 of file dma.h.

Address Sampa::Dma::m_write_address [protected]

Definition at line 62 of file dma.h.

EventSingle Sampa::Dma::e_request [protected]

Definition at line 63 of file dma.h.

AdaptingInitiator Sampa::Dma::p_read [protected]

Definition at line 64 of file dma.h.

Referenced by get_read_initiator().

AdaptingInitiator Sampa::Dma::p_write [protected]

Definition at line 65 of file dma.h.

Referenced by get_write_initiator().

EventListener Sampa::Dma::e_push_or_write_request_accept_event [protected]

Definition at line 66 of file dma.h.

Request Sampa::Dma::m_read_request [protected]

Definition at line 67 of file dma.h.

Request Sampa::Dma::m_write_request [protected]

Definition at line 68 of file dma.h.

Fifo Sampa::Dma::m_response_fifo [protected]

Definition at line 69 of file dma.h.

Gated<bool> Sampa::Dma::m_pending [protected]

Definition at line 70 of file dma.h.


The documentation for this class was generated from the following file:
Generated on Sat Feb 16 16:23:18 2008 for Sampa by  doxygen 1.5.3