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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [itap.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      General interface of the hardware access.
6
 */
7
 
8
#ifndef __DEBUGGER_ITAP_H__
9
#define __DEBUGGER_ITAP_H__
10
 
11
#include "iface.h"
12
#include "attribute.h"
13
#include <inttypes.h>
14
 
15
namespace debugger {
16
 
17
static const char *const IFACE_TAP = "ITap";
18
 
19
static const char *const ITap_brief =
20
"Test Access Point (TAP) software interface.";
21
 
22
static const char *const ITap_detail =
23
"This interface is used for the direct access to the Hardware. "
24
"Typically, it is doing via JTAG or other transport interface.";
25
 
26
static const int TAP_ERROR = -1;
27
 
28
class ITap : public IFace {
29
public:
30
    ITap() : IFace(IFACE_TAP) {}
31
 
32
    virtual const char *getBrief() { return ITap_brief; }
33
 
34
    virtual const char *getDetail() { return ITap_detail; }
35
 
36
    virtual int read(uint64_t addr, int bytes, uint8_t *obuf) =0;
37
    virtual int write(uint64_t addr, int bytes, uint8_t *ibuf) =0;
38
};
39
 
40
}  // namespace debugger
41
 
42
#endif  // __DEBUGGER_ITAP_H__

powered by: WebSVN 2.1.0

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