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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.6/] [tools/] [src/] [librw11/] [Rw11UnitPC11.cpp] - Blame information for rev 24

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 wfjm
// $Id: Rw11UnitPC11.cpp 515 2013-05-04 17:28:59Z mueller $
2
//
3
// Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
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-03   515   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
/*!
20
  \file
21
  \version $Id: Rw11UnitPC11.cpp 515 2013-05-04 17:28:59Z mueller $
22
  \brief   Implemenation of Rw11UnitPC11.
23
*/
24
 
25
#include "boost/bind.hpp"
26
 
27
#include "librtools/RosFill.hpp"
28
#include "Rw11CntlPC11.hpp"
29
 
30
#include "Rw11UnitPC11.hpp"
31
 
32
using namespace std;
33
 
34
/*!
35
  \class Retro::Rw11UnitPC11
36
  \brief FIXME_docs
37
*/
38
 
39
// all method definitions in namespace Retro
40
namespace Retro {
41
 
42
//------------------------------------------+-----------------------------------
43
//! Constructor
44
 
45
Rw11UnitPC11::Rw11UnitPC11(Rw11CntlPC11* pcntl, size_t index)
46
  : Rw11UnitStreamBase<Rw11CntlPC11>(pcntl, index)
47
{
48
  // unit 0 -> reader   -> read  only stream
49
  // unit 1 -> puncher  -> write only stream
50
  const char* opts = (index==0) ? "?ronly" : "?wonly";
51
  SetAttachOpts(opts);
52
}
53
 
54
//------------------------------------------+-----------------------------------
55
//! Destructor
56
 
57
Rw11UnitPC11::~Rw11UnitPC11()
58
{}
59
 
60
//------------------------------------------+-----------------------------------
61
//! FIXME_docs
62
 
63
void Rw11UnitPC11::Dump(std::ostream& os, int ind, const char* text) const
64
{
65
  RosFill bl(ind);
66
  os << bl << (text?text:"--") << "Rw11UnitPC11 @ " << this << endl;
67
  Rw11UnitStreamBase<Rw11CntlPC11>::Dump(os, ind, " ^");
68
  return;
69
}
70
 
71
} // end namespace Retro

powered by: WebSVN 2.1.0

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