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] - Rev 4

Compare with Previous | Blame | View Log

/**
 * @file
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
 * @brief      System Bus class declaration (AMBA or whatever).
 */
 
#ifndef __DEBUGGER_LIBDBG64G_SERVICES_BUS_BUS_H__
#define __DEBUGGER_LIBDBG64G_SERVICES_BUS_BUS_H__
 
#include <iclass.h>
#include <iservice.h>
#include "coreservices/iclock.h"
#include "coreservices/imemop.h"
#include "coreservices/idsugen.h"
#include <string>
 
namespace debugger {
 
class Bus : public IService,
            public IMemoryOperation {
 public:
    explicit Bus(const char *name);
    virtual ~Bus();
 
    /** IService interface */
    virtual void postinitService();
 
    /** IMemoryOperation interface */
    virtual ETransStatus b_transport(Axi4TransactionType *trans);
    virtual ETransStatus nb_transport(Axi4TransactionType *trans,
                                      IAxi4NbResponse *cb);
 
 private:
    void getMapedDevice(Axi4TransactionType *trans,
                        IMemoryOperation **pdev, uint32_t *sz);
 
 private:
    AttributeType dsu_;
 
    // Clock interface is used just to tag debug output with some step value,
    // in a case of several clocks the first found will be used.
    IClock *iclk0_;
    IDsuGeneric *idsu_;
    mutex_def mutexBAccess_;
    mutex_def mutexNBAccess_;
    Axi4TransactionType b_tr_;
    Axi4TransactionType nb_tr_;
};
 
DECLARE_CLASS(Bus)
 
}  // namespace debugger
 
#endif  // __DEBUGGER_LIBDBG64G_SERVICES_BUS_BUS_H__
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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