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 2

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

Line No. Rev Author Line
1 2 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_BUS_H__
9
#define __DEBUGGER_BUS_H__
10
 
11
#include "iclass.h"
12
#include "iservice.h"
13
#include "coreservices/iclock.h"
14
#include "coreservices/ibus.h"
15
#include <string>
16
 
17
namespace debugger {
18
 
19
class Bus : public IService,
20
            public IBus {
21
public:
22
    explicit Bus(const char *name);
23
    virtual ~Bus();
24
 
25
    /** IService interface */
26
    virtual void postinitService();
27
 
28
    /** IBus interface */
29
    virtual void map(IMemoryOperation *imemop);
30
    virtual ETransStatus b_transport(Axi4TransactionType *trans);
31
    virtual ETransStatus nb_transport(Axi4TransactionType *trans,
32
                                      IAxi4NbResponse *cb);
33
    virtual BusUtilType *bus_utilization();
34
 
35
private:
36
    AttributeType listMap_;
37
    AttributeType imap_;
38
    // Clock interface is used just to tag debug output with some step value,
39
    // in a case of several clocks the first found will be used.
40
    IClock *iclk0_;
41
    mutex_def mutexBAccess_;
42
    mutex_def mutexNBAccess_;
43
 
44
    BusUtilType info_[CFG_NASTI_MASTER_TOTAL];
45
};
46
 
47
DECLARE_CLASS(Bus)
48
 
49
}  // namespace debugger
50
 
51
#endif  // __DEBUGGER_BUS_H__

powered by: WebSVN 2.1.0

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