mirror of
https://github.com/openhwgroup/cva5.git
synced 2025-04-22 13:07:33 -04:00
added pause/resume behaviour to stat collection
This commit is contained in:
parent
c2c71f79a3
commit
6ba93a3f63
2 changed files with 6 additions and 2 deletions
|
@ -146,10 +146,13 @@ void TaigaTracer<TB>::tick() {
|
|||
|
||||
|
||||
if (check_instruction_issued(BENCHMARK_START_COLLECTION_NOP)) {
|
||||
collect_stats = true;
|
||||
reset_stats();
|
||||
collect_stats = true;
|
||||
}
|
||||
if (check_instruction_issued(BENCHMARK_END_COLLECTION_NOP)) {
|
||||
else if (check_instruction_issued(BENCHMARK_RESUME_COLLECTION_NOP)) {
|
||||
collect_stats = true;
|
||||
}
|
||||
else if (check_instruction_issued(BENCHMARK_END_COLLECTION_NOP)) {
|
||||
collect_stats = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#define COMPLIANCE_SIG_PHASE_NOP 0x00B00013U
|
||||
#define BENCHMARK_START_COLLECTION_NOP 0x00C00013U
|
||||
#define BENCHMARK_END_COLLECTION_NOP 0x00D00013U
|
||||
#define BENCHMARK_RESUME_COLLECTION_NOP 0x00E00013U
|
||||
#define ERROR_TERMINATION_NOP 0x00F00013U
|
||||
#define SUCCESS_TERMINATION_NOP 0x00A00013U
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue