OpenCores
URL https://opencores.org/ocsvn/w11/w11/trunk

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11UnitStreamBase.ipp] - Blame information for rev 40

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 wfjm
// $Id: Rw11UnitStreamBase.ipp 515 2013-05-04 17:28:59Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller 
4
//
5
// This program is free software; you may redistribute and/or modify it under
6
// the terms of the GNU General Public License as published by the Free
7
// Software Foundation, either version 2, or at your option any later version.
8
//
9
// This program is distributed in the hope that it will be useful, but
10
// WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY
11
// or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12
// for complete details.
13
//
14
// Revision History:
15
// Date         Rev Version  Comment
16
// 2013-05-04   515   1.0    Initial version
17
// 2013-05-01   513   0.1    First draft
18
// ---------------------------------------------------------------------------
19
 
20
/*!
21
  \file
22
  \version $Id: Rw11UnitStreamBase.ipp 515 2013-05-04 17:28:59Z mueller $
23
  \brief   Implemenation (inline) of Rw11UnitStreamBase.
24
*/
25
 
26
#include "Rw11UnitStreamBase.hpp"
27
 
28
/*!
29
  \class Retro::Rw11UnitStreamBase
30
  \brief FIXME_docs
31
*/
32
 
33
// all method definitions in namespace Retro
34
namespace Retro {
35
 
36
//------------------------------------------+-----------------------------------
37
//! Default constructor
38
 
39
template 
40
Rw11UnitStreamBase::Rw11UnitStreamBase(TC* pcntl, size_t index)
41
  : Rw11UnitStream(pcntl, index),
42
    fpCntl(pcntl)
43
{}
44
 
45
//------------------------------------------+-----------------------------------
46
//! Destructor
47
 
48
template 
49
Rw11UnitStreamBase::~Rw11UnitStreamBase()
50
{}
51
 
52
//------------------------------------------+-----------------------------------
53
//! FIXME_docs
54
 
55
template 
56
inline TC& Rw11UnitStreamBase::Cntl() const
57
{
58
  return *fpCntl;
59
}
60
 
61
//------------------------------------------+-----------------------------------
62
//! FIXME_docs
63
 
64
template 
65
void Rw11UnitStreamBase::Dump(std::ostream& os, int ind,
66
                                const char* text) const
67
{
68
  RosFill bl(ind);
69
  os << bl << (text?text:"--") << "Rw11UnitStreamBase  @ " << this << std::endl;
70
  os << bl << "  fpCntl:          " << fpCntl   << std::endl;
71
  Rw11UnitStream::Dump(os, ind, " ^");
72
  return;
73
}
74
 
75
//------------------------------------------+-----------------------------------
76
//! FIXME_docs
77
 
78
template 
79
void  Rw11UnitStreamBase::AttachDone()
80
{
81
  Cntl().UnitSetup(Index());
82
  return;
83
}
84
 
85
 
86
//------------------------------------------+-----------------------------------
87
//! FIXME_docs
88
 
89
template 
90
void  Rw11UnitStreamBase::DetachDone()
91
{
92
  Cntl().UnitSetup(Index());
93
  return;
94
}
95
 
96
} // end namespace Retro

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.