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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [libdbg64g/] [services/] [bus/] [bus.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      System Bus class declaration (AMBA or whatever).
6
 */
7
 
8
#ifndef __DEBUGGER_LIBDBG64G_SERVICES_BUS_BUS_H__
9
#define __DEBUGGER_LIBDBG64G_SERVICES_BUS_BUS_H__
10
 
11
#include <iclass.h>
12
#include <iservice.h>
13
#include "coreservices/iclock.h"
14
#include "coreservices/imemop.h"
15
#include "coreservices/idsugen.h"
16
#include <string>
17
 
18
namespace debugger {
19
 
20
class Bus : public IService,
21
            public IMemoryOperation {
22
 public:
23
    explicit Bus(const char *name);
24
    virtual ~Bus();
25
 
26
    /** IService interface */
27
    virtual void postinitService();
28
 
29
    /** IMemoryOperation interface */
30
    virtual ETransStatus b_transport(Axi4TransactionType *trans);
31
    virtual ETransStatus nb_transport(Axi4TransactionType *trans,
32
                                      IAxi4NbResponse *cb);
33
 
34
 private:
35
    void getMapedDevice(Axi4TransactionType *trans,
36
                        IMemoryOperation **pdev, uint32_t *sz);
37
 
38
 private:
39
    AttributeType dsu_;
40
 
41
    // Clock interface is used just to tag debug output with some step value,
42
    // in a case of several clocks the first found will be used.
43
    IClock *iclk0_;
44
    IDsuGeneric *idsu_;
45
    mutex_def mutexBAccess_;
46
    mutex_def mutexNBAccess_;
47
    Axi4TransactionType b_tr_;
48
    Axi4TransactionType nb_tr_;
49
};
50
 
51
DECLARE_CLASS(Bus)
52
 
53
}  // namespace debugger
54
 
55
#endif  // __DEBUGGER_LIBDBG64G_SERVICES_BUS_BUS_H__

powered by: WebSVN 2.1.0

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