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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [libdbg64g/] [services/] [exec/] [cmd/] [cmd_busutil.cpp] - Diff between revs 3 and 4

Show entire file | Details | Blame | View Log

Rev 3 Rev 4
Line 14... Line 14...
namespace debugger {
namespace debugger {
 
 
CmdBusUtil::CmdBusUtil(ITap *tap, ISocInfo *info)
CmdBusUtil::CmdBusUtil(ITap *tap, ISocInfo *info)
    : ICommand ("busutil", tap, info) {
    : ICommand ("busutil", tap, info) {
 
 
    briefDescr_.make_string("Compute Clocks Per Instruction (CPI) rate");
    briefDescr_.make_string("Read per master bus utilization in percentage "
 
                            "of time");
    detailedDescr_.make_string(
    detailedDescr_.make_string(
        "Description:\n"
        "Description:\n"
        "    Read and normalize per master bus utilization statistic\n"
        "    Read and normalize per master bus utilization statistic\n"
        "    using information about total number of clocks and counters\n"
        "    using information about total number of clocks and counters\n"
        "    of clocks spending on read/write transactions.\n"
        "    of clocks spending on read/write transactions.\n"
Line 44... Line 45...
    }
    }
    return CMD_INVALID;
    return CMD_INVALID;
}
}
 
 
void CmdBusUtil::exec(AttributeType *args, AttributeType *res) {
void CmdBusUtil::exec(AttributeType *args, AttributeType *res) {
    unsigned mst_total = info_->getMastersTotal();
    unsigned mst_total = 4;//info_->getMastersTotal();
    res->make_list(mst_total);
    res->make_list(mst_total);
    if (!isValid(args)) {
    if (!isValid(args)) {
        generateError(res, "Wrong argument list");
        generateError(res, "Wrong argument list");
        return;
        return;
    }
    }

powered by: WebSVN 2.1.0

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