--
You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/41a2b40f-f68e-49f2-8295-e563442cf532o%40googlegroups.com.
start = read_csr(mcycle); /* csrr rd, mcycle */
write_csr(mhpmevent3, 0xe00); /* csrwi mhpmevent3, 0xe00 */
printf("- mhpmevent3: 0x%lx \n", read_csr(mhpmevent3)); /* csrr rd, mhpmevent3 */
computation();
end = read_csr(mcycle);
printf("- Total cylces: %lu\n", end - start); printf("- instret: %lu\n", read_csr(minstret)); /* csrr rd, minstret */ printf("- mhpmcounter3: 0x%lx \n", read_csr(mhpmcounter3)); /* csrr rd, mhpmcounter3 */
- mhpmevent3: 0x0
- Total cylces: 32571- instret: 30387- mhpmcounter3: 0x0
--
You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/648a9fe5-65c7-456a-bf1c-50ed1cd407a8o%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to chip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/cc8009f9-46a4-421e-8141-a2f6a6f4b746n%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/b53defbf-8162-4605-b80a-7f78d96bed54n%40googlegroups.com.
Thanks and Regards,Ayushi AgarwalPhD Student, Khosla School of IT,IIT, Delhi
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/CAHCr_CBxZKi1fjDzKBjpstDVk%3DkeYUZV0x-md1dSbJfAN_-ftA%40mail.gmail.com.
Thanks and Regards,Ayushi AgarwalPhD Student, Khosla School of IT,IIT, Delhi
--
You received this message because you are subscribed to a topic in the Google Groups "Chipyard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/chipyard/NBFasBCiR8w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/47520295-229d-4898-a57f-5ed05a7bb8d5n%40googlegroups.com.
Are you simulating using FireSim or VCS? In FireSim, we already have a DRAM profiling tool that can get the counts for you. In VCS, I would suggest adding a hardware printf statement that outputs every time a request is sent. You can then post-process the simulation log with a script to count the number of requests. Since you likely want to see the L2 miss rate and not just the number of misses, what you probably want to do is have one kind of print statement for the inner interface and one for the outer interface. So in your Chipyard repo, open up this file in generators/sifive-cache https://github.com/sifive/block-inclusivecache-sifive/blob/master/design/craft/inclusivecache/src/InclusiveCache.scala#L188