URL
https://opencores.org/ocsvn/or1k_old/or1k_old/trunk
Subversion Repositories or1k_old
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 23 to Rev 24
- ↔ Reverse comparison
Rev 23 → Rev 24
/trunk/or1ksim/cpu/common/stats.c
189,10 → 189,16
|
printf("SUM: %d instructions (dynamic, functional units stats) depend: %d%%\n", all, (dependall * 100) / all); |
printf("Byte ADD: %d instructions\n", mstats.byteadd); |
printf("BEQZ: %d (%d%%) taken,", mstats.beqz.taken, (mstats.beqz.taken * 100) / (mstats.beqz.taken + mstats.beqz.nottaken)); |
printf(" %d (%d%%) not taken\n", mstats.beqz.nottaken, (mstats.beqz.nottaken * 100) / (mstats.beqz.taken + mstats.beqz.nottaken)); |
printf("BNEZ: %d (%d%%) taken,", mstats.bnez.taken, (mstats.bnez.taken * 100) / (mstats.bnez.taken + mstats.bnez.nottaken)); |
printf(" %d (%d%%) not taken\n", mstats.bnez.nottaken, (mstats.bnez.nottaken * 100) / (mstats.bnez.taken + mstats.bnez.nottaken)); |
printf("bnf: %d (%d%%) taken,", mstats.beqz.taken, (mstats.beqz.taken * 100) / (mstats.beqz.taken + mstats.beqz.nottaken)); |
printf(" %d (%d%%) not taken,", mstats.beqz.nottaken, (mstats.beqz.nottaken * 100) / (mstats.beqz.taken + mstats.beqz.nottaken)); |
printf(" %d (%d%%) forward,", mstats.beqz.forward, (mstats.beqz.forward * 100) / (mstats.beqz.forward + mstats.beqz.backward)); |
printf(" %d (%d%%) backward\n", mstats.beqz.backward, (mstats.beqz.backward * 100) / (mstats.beqz.forward + mstats.beqz.backward)); |
printf("bf: %d (%d%%) taken,", mstats.bnez.taken, (mstats.bnez.taken * 100) / (mstats.bnez.taken + mstats.bnez.nottaken)); |
printf(" %d (%d%%) not taken,", mstats.bnez.nottaken, (mstats.bnez.nottaken * 100) / (mstats.bnez.taken + mstats.bnez.nottaken)); |
printf(" %d (%d%%) forward,", mstats.bnez.forward, (mstats.bnez.forward * 100) / (mstats.bnez.forward + mstats.bnez.backward)); |
printf(" %d (%d%%) backward\n", mstats.bnez.backward, (mstats.bnez.backward * 100) / (mstats.bnez.forward + mstats.bnez.backward)); |
printf("StaticBP bnf: correct %d%% (forward)\n", (mstats.sbp_bnf.correct * 100) / mstats.sbp_bnf.all); |
printf("StaticBP bf: correct %d%% (backward)\n", (mstats.sbp_bf.correct * 100) / mstats.sbp_bf.all); |
printf("BPB: hit %d (correct %d%%), miss %d\n", mstats.bpb.hit, (mstats.bpb.correct * 100) / mstats.bpb.hit, mstats.bpb.miss); |
printf("BTIC: hit %d(%d%%), miss %d\n", mstats.btic.hit, (mstats.btic.hit * 100) / (mstats.btic.hit + mstats.btic.miss), mstats.btic.miss); |
printf("IC read: hit %d(%d%%), miss %d\n", ic_stats.readhit, (ic_stats.readhit * 100) / (ic_stats.readhit + ic_stats.readmiss), ic_stats.readmiss); |
/trunk/or1ksim/cpu/common/stats.h
45,8 → 45,15
struct branchstat { |
int taken; |
int nottaken; |
int forward; |
int backward; |
}; |
|
struct staticbp_stat { |
int correct; |
int all; |
}; |
|
struct bpbstat { |
int hit; |
int miss; |
63,6 → 70,8
int byteadd; |
struct branchstat beqz; |
struct branchstat bnez; |
struct staticbp_stat sbp_bf; |
struct staticbp_stat sbp_bnf; |
struct bpbstat bpb; |
struct bticstat btic; |
}; /* misc units stats */ |