URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
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;
|
}
|
}
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.