URL
https://opencores.org/ocsvn/w11/w11/trunk
Subversion Repositories w11
[/] [w11/] [tags/] [w11a_V0.61/] [tools/] [src/] [librw11/] [Rw11.hpp] - Rev 26
Compare with Previous | Blame | View Log
// $Id: Rw11.hpp 502 2013-04-02 19:29:30Z mueller $ // // Copyright 2013- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de> // // This program is free software; you may redistribute and/or modify it under // the terms of the GNU General Public License as published by the Free // Software Foundation, either version 2, or at your option any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License // for complete details. // // Revision History: // Date Rev Version Comment // 2013-03-06 495 1.0 Initial version // 2013-01-27 478 0.1 First draft // --------------------------------------------------------------------------- /*! \file \version $Id: Rw11.hpp 502 2013-04-02 19:29:30Z mueller $ \brief Declaration of class Rw11. */ #ifndef included_Retro_Rw11 #define included_Retro_Rw11 1 #include "boost/utility.hpp" #include "boost/shared_ptr.hpp" #include "librlink/RlinkServer.hpp" namespace Retro { class Rw11Cpu; // forw decl to avoid circular incl class Rw11 : private boost::noncopyable { public: Rw11(); virtual ~Rw11(); void SetServer(const boost::shared_ptr<RlinkServer>& spserv); const boost::shared_ptr<RlinkServer>& ServerSPtr() const; RlinkServer& Server() const; RlinkConnect& Connect() const; RlogFile& LogFile() const; void AddCpu(const boost::shared_ptr<Rw11Cpu>& spcpu); size_t NCpu() const; Rw11Cpu& Cpu(size_t ind) const; void Start(); bool IsStarted() const; virtual void Dump(std::ostream& os, int ind=0, const char* text=0) const; // some constants (also defined in cpp) static const int kLam = 0; //!< W11 CPU cluster lam protected: int AttnHandler(const RlinkServer::AttnArgs& args); protected: boost::shared_ptr<RlinkServer> fspServ; size_t fNCpu; boost::shared_ptr<Rw11Cpu> fspCpu[4]; bool fStarted; //!< true if Start() called }; } // end namespace Retro #include "Rw11.ipp" #endif