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

Subversion Repositories w11

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

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

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

powered by: WebSVN 2.1.0

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