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

Subversion Repositories w11

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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