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

Subversion Repositories w11

[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librw11/] [Rw11.hpp] - Blame information for rev 38

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 28 wfjm
// $Id: Rw11.hpp 625 2014-12-30 16:17:45Z mueller $
2 19 wfjm
//
3 28 wfjm
// Copyright 2013-2014 by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
4 19 wfjm
//
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 28 wfjm
// 2014-12-29   624   1.1    adopt to Rlink V4 attn logic
17 19 wfjm
// 2013-03-06   495   1.0    Initial version
18
// 2013-01-27   478   0.1    First draft
19
// ---------------------------------------------------------------------------
20
 
21
 
22
/*!
23
  \file
24 28 wfjm
  \version $Id: Rw11.hpp 625 2014-12-30 16:17:45Z mueller $
25 19 wfjm
  \brief   Declaration of class Rw11.
26
*/
27
 
28
#ifndef included_Retro_Rw11
29
#define included_Retro_Rw11 1
30
 
31
#include "boost/utility.hpp"
32
#include "boost/shared_ptr.hpp"
33
 
34
#include "librlink/RlinkServer.hpp"
35
 
36
namespace Retro {
37
 
38
  class Rw11Cpu;                            // forw decl to avoid circular incl
39
 
40
  class Rw11 : private boost::noncopyable {
41
    public:
42
 
43
                    Rw11();
44
      virtual      ~Rw11();
45
 
46
      void          SetServer(const boost::shared_ptr<RlinkServer>& spserv);
47
      const boost::shared_ptr<RlinkServer>& ServerSPtr() const;
48
      RlinkServer&  Server() const;
49
      RlinkConnect& Connect() const;
50
      RlogFile&     LogFile() const;
51
 
52
      void          AddCpu(const boost::shared_ptr<Rw11Cpu>& spcpu);
53
      size_t        NCpu() const;
54
      Rw11Cpu&      Cpu(size_t ind) const;
55
 
56
      void          Start();
57
      bool          IsStarted() const;
58
 
59
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
60
 
61
    // some constants (also defined in cpp)
62
      static const int      kLam    = 0;       //!< W11 CPU cluster lam 
63
 
64
    protected:
65 28 wfjm
      int           AttnHandler(RlinkServer::AttnArgs& args);
66 19 wfjm
 
67
    protected:
68
      boost::shared_ptr<RlinkServer>  fspServ;
69
      size_t        fNCpu;
70
      boost::shared_ptr<Rw11Cpu>  fspCpu[4];
71
      bool          fStarted;               //!< true if Start() called
72
  };
73
 
74
} // end namespace Retro
75
 
76
#include "Rw11.ipp"
77
 
78
#endif

powered by: WebSVN 2.1.0

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