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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [gui_plugin/] [CpuWidgets/] [MemArea.h] - Blame information for rev 5

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

Line No. Rev Author Line
1 3 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Memory Editor area.
6
 */
7
 
8
#pragma once
9
 
10
#include "api_core.h"   // MUST BE BEFORE QtWidgets.h or any other Qt header.
11
#include "attribute.h"
12
#include "igui.h"
13
#include "coreservices/isocinfo.h"
14
 
15
#include <QtWidgets/QWidget>
16
#include <QtWidgets/QPlainTextEdit>
17
 
18
namespace debugger {
19
 
20
class MemArea : public QPlainTextEdit,
21
                public IGuiCmdHandler {
22
    Q_OBJECT
23
public:
24
    explicit MemArea(IGui *gui, QWidget *parent, uint64_t addr, uint64_t sz);
25
    virtual ~MemArea();
26
 
27
    /** IGuiCmdHandler */
28
    virtual void handleResponse(AttributeType *req, AttributeType *resp);
29
 
30
signals:
31
    void signalUpdateData();
32
 
33
public slots:
34
    void slotAddressChanged(AttributeType *cmd);
35
    void slotUpdateByTimer();
36
    void slotUpdateData();
37
 
38
private:
39
    void to_string(uint64_t addr, unsigned bytes, AttributeType *out);
40
 
41
private:
42
    AttributeType cmdRead_;
43
    QString name_;
44
    IGui *igui_;
45
 
46
    AttributeType data_;
47
    AttributeType tmpBuf_;
48
    AttributeType dataText_;
49
 
50
    uint64_t reqAddr_;
51
    unsigned reqBytes_;
52
    uint64_t reqAddrZ_;
53
    unsigned reqBytesZ_;
54
    bool waitingResponse_;
55
};
56
 
57
}  // namespace debugger

powered by: WebSVN 2.1.0

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