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

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

/**
 * @file
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
 * @brief      Memory Editor area.
 */
 
#pragma once
 
#include "api_core.h"   // MUST BE BEFORE QtWidgets.h or any other Qt header.
#include "attribute.h"
#include "igui.h"
#include "coreservices/isocinfo.h"
 
#include <QtWidgets/QWidget>
#include <QtWidgets/QPlainTextEdit>
 
namespace debugger {
 
class MemArea : public QPlainTextEdit,
                public IGuiCmdHandler {
    Q_OBJECT
public:
    explicit MemArea(IGui *gui, QWidget *parent, uint64_t addr, uint64_t sz);
    virtual ~MemArea();
 
    /** IGuiCmdHandler */
    virtual void handleResponse(AttributeType *req, AttributeType *resp);
 
signals:
    void signalUpdateData();
 
public slots:
    void slotAddressChanged(AttributeType *cmd);
    void slotUpdateByTimer();
    void slotUpdateData();
 
private:
    void to_string(uint64_t addr, unsigned bytes, AttributeType *out);
 
private:
    AttributeType cmdRead_;
    QString name_;
    IGui *igui_;
 
    AttributeType data_;
    AttributeType tmpBuf_;
    AttributeType dataText_;
 
    uint64_t reqAddr_;
    unsigned reqBytes_;
    uint64_t reqAddrZ_;
    unsigned reqBytesZ_;
    bool waitingResponse_;
};
 
}  // namespace debugger
 

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

powered by: WebSVN 2.1.0

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