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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [common/] [coreservices/] [iclock.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      Clock interface.
6
 */
7
 
8
#ifndef __DEBUGGER_PLUGIN_ICLOCK_H__
9
#define __DEBUGGER_PLUGIN_ICLOCK_H__
10
 
11
#include "iface.h"
12
#include <inttypes.h>
13
#include "iclklistener.h"
14
#include "attribute.h"
15
 
16
namespace debugger {
17
 
18
static const char *const IFACE_CLOCK = "IClock";
19
 
20
class IClock : public IFace {
21
public:
22
    IClock() : IFace(IFACE_CLOCK) {}
23
 
24
    virtual uint64_t getStepCounter() =0;
25
 
26
    /** Executed instruction counter.
27
     *
28
     * One executed instruction = 1 step for functional simulation.
29
     * And it can be more than 1 for precise SystemC model if enabled
30
     * GENERATE_CORE_TRACE.
31
     */
32
    virtual void registerStepCallback(IClockListener *cb, uint64_t t) =0;
33
};
34
 
35
}  // namespace debugger
36
 
37
#endif  // __DEBUGGER_PLUGIN_ICLOCK_H__

powered by: WebSVN 2.1.0

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