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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 21 wfjm
// $Id: Rw11CntlLP11.hpp 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-01   513   1.0    Initial version
17
// ---------------------------------------------------------------------------
18
 
19
 
20
/*!
21
  \file
22
  \version $Id: Rw11CntlLP11.hpp 515 2013-05-04 17:28:59Z mueller $
23
  \brief   Declaration of class Rw11CntlLP11.
24
*/
25
 
26
#ifndef included_Retro_Rw11CntlLP11
27
#define included_Retro_Rw11CntlLP11 1
28
 
29
#include "Rw11CntlBase.hpp"
30
#include "Rw11UnitLP11.hpp"
31
 
32
namespace Retro {
33
 
34
  class Rw11CntlLP11 : public Rw11CntlBase<Rw11UnitLP11,1> {
35
    public:
36
 
37
                    Rw11CntlLP11();
38
                   ~Rw11CntlLP11();
39
 
40
      void          Config(const std::string& name, uint16_t base, int lam);
41
 
42
      virtual void  Start();
43
 
44
      virtual void  UnitSetup(size_t ind);
45
 
46
      virtual void  Dump(std::ostream& os, int ind=0, const char* text=0) const;
47
 
48
    // some constants (also defined in cpp)
49
      static const uint16_t kIbaddr = 0177514; //!< LP11 default address
50
      static const int      kLam    = 8;       //!< LP11 default lam 
51
 
52
      static const uint16_t kCSR = 000;  //!< CSR register address offset
53
      static const uint16_t kBUF = 002;  //!< BUF register address offset
54
 
55
      static const uint16_t kProbeOff = kCSR;  //!< probe address offset (rcsr)
56
      static const bool     kProbeInt = true;  //!< probe int active
57
      static const bool     kProbeRem = true;  //!< probr rem active
58
 
59
      static const uint16_t kCSR_M_ERROR = kWBit15;
60
      static const uint16_t kBUF_M_VAL   = kWBit08;
61
      static const uint16_t kBUF_M_BUF   = 0177;
62
 
63
    protected:
64
      int           AttnHandler(const RlinkServer::AttnArgs& args);
65
      void          SetOnline(bool online);
66
 
67
    protected:
68
      size_t        fPC_buf;               //!< PrimClist: buf index
69
  };
70
 
71
} // end namespace Retro
72
 
73
//#include "Rw11CntlLP11.ipp"
74
 
75
#endif

powered by: WebSVN 2.1.0

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