add test runner script to run rtlsim benchmarks

This commit is contained in:
codetector
2020-04-06 01:53:28 +00:00
parent 8d4d07d56b
commit 829042f472
3 changed files with 59 additions and 5 deletions

View File

@@ -351,6 +351,8 @@ void Simulator::send_snoops(uint32_t mem_addr, uint32_t size) {
}
void Simulator::flush_caches(uint32_t mem_addr, uint32_t size) {
printf("[sim] total cycles: %lld\n", this->total_cycles_);
// send snoops for L1 flush
this->send_snoops(mem_addr, size);
this->wait(PIPELINE_FLUSH_LATENCY);
@@ -383,4 +385,4 @@ bool Simulator::run() {
#endif
return (status == 1);
}
}