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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [sw/] [host/] [scopecls.h] - Blame information for rev 49

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

Line No. Rev Author Line
1 4 dgisselq
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Filename:    scopecls.h
4
//
5
// Project:     XuLA2-LX25 SoC based upon the ZipCPU
6
//
7
// Purpose:     After rebuilding the same code over and over again for every
8
//              "scope" I tried to interact with, I thought it would be simpler
9
//      to try to make a more generic interface, that other things could plug
10
//      into.  This is that more generic interface.
11
//
12
// Creator:     Dan Gisselquist, Ph.D.
13
//              Gisselquist Technology, LLC
14
//
15
////////////////////////////////////////////////////////////////////////////////
16
//
17
// Copyright (C) 2015-2016, Gisselquist Technology, LLC
18
//
19
// This program is free software (firmware): you can redistribute it and/or
20
// modify it under the terms of  the GNU General Public License as published
21
// by the Free Software Foundation, either version 3 of the License, or (at
22
// your option) any later version.
23
//
24
// This program is distributed in the hope that it will be useful, but WITHOUT
25
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
26
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
27
// for more details.
28
//
29
// You should have received a copy of the GNU General Public License along
30
// with this program.  (It's in the $(ROOT)/doc directory, run make with no
31
// target there if the PDF file isn't present.)  If not, see
32
// <http://www.gnu.org/licenses/> for a copy.
33
//
34
// License:     GPL, v3, as defined and found on www.gnu.org,
35
//              http://www.gnu.org/licenses/gpl.html
36
//
37
//
38
////////////////////////////////////////////////////////////////////////////////
39
//
40
//
41
#ifndef SCOPECLS_H
42
#define SCOPECLS_H
43
 
44
#include "devbus.h"
45
 
46
class   SCOPE {
47
        DEVBUS          *m_fpga;
48
        DEVBUS::BUSW    m_addr;
49
        bool            m_compressed, m_vector_read;
50
        unsigned        m_scoplen;
51
 
52
public:
53
        SCOPE(DEVBUS *fpga, unsigned addr,
54
                        bool compressed=false, bool vecread=true)
55
                : m_fpga(fpga), m_addr(addr),
56
                        m_compressed(compressed), m_vector_read(vecread),
57
                        m_scoplen(0) {}
58
        ~SCOPE(void) {}
59
 
60
        bool    ready();
61
        void    decode_control(void);
62
        virtual void    decode(DEVBUS::BUSW v) const {};
63
        int     scoplen(void);
64
        void    read(void);
65
};
66
 
67
#endif  // SCOPECLS_H

powered by: WebSVN 2.1.0

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