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

Subversion Repositories riscv_vhdl

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

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

Line No. Rev Author Line
1 4 sergeykhbr
/*
2
 *  Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com
3
 *
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
 *  you may not use this file except in compliance with the License.
6
 *  You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *  Unless required by applicable law or agreed to in writing, software
11
 *  distributed under the License is distributed on an "AS IS" BASIS,
12
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *  See the License for the specific language governing permissions and
14
 *  limitations under the License.
15 3 sergeykhbr
 */
16
 
17
#pragma once
18
 
19
#include "api_core.h"   // MUST BE BEFORE QtWidgets.h or any other Qt header.
20
#include "attribute.h"
21
 
22
#include <QtWidgets/QWidget>
23
#include <QtWidgets/QLineEdit>
24
 
25
namespace debugger {
26
 
27
class RegWidget : public QWidget {
28
    Q_OBJECT
29
public:
30 4 sergeykhbr
    explicit RegWidget(const char *name, int bytes, QWidget *parent);
31 3 sergeykhbr
 
32
signals:
33
    void signalChanged(AttributeType *req);
34
private slots:
35
    void slotHandleResponse(AttributeType *resp);
36
    void slotEditingFinished();
37
 
38
private:
39
    AttributeType regName_;
40
    AttributeType cmdRead_;
41
    AttributeType cmdWrite_;
42
    QString name_;
43
    QLineEdit *edit_;
44
    uint64_t value_;
45
    uint64_t respValue_;
46 4 sergeykhbr
    char fmtValue_[64];
47 3 sergeykhbr
};
48
 
49
}  // namespace debugger

powered by: WebSVN 2.1.0

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