using single-port block ram for cache tags, restoring core reset signal

This commit is contained in:
Blaise Tine
2021-01-02 19:53:41 -08:00
parent a766c16ac9
commit 4815ab099c
9 changed files with 213 additions and 23 deletions

View File

@@ -8,6 +8,8 @@
#define CCI_RQ_SIZE 16
#define CCI_WQ_SIZE 16
#define RESET_DELAY 1
#define ENABLE_DRAM_STALLS
#define DRAM_LATENCY 24
#define DRAM_RQ_SIZE 16
@@ -137,9 +139,8 @@ void opae_sim::reset() {
this->eval();
vortex_afu_->reset = 0;
// Turn on assertion after reset
Verilated::assertOn(true);
reset_time_ = timestamp;
}
void opae_sim::step() {
@@ -153,6 +154,11 @@ void opae_sim::step() {
vortex_afu_->clk = 1;
this->eval();
if ((timestamp - reset_time_) == (RESET_DELAY*2)) {
// Turn on assertion after reset
Verilated::assertOn(true);
}
#ifndef NDEBUG
fflush(stdout);
#endif

View File

@@ -85,6 +85,8 @@ private:
std::mutex mutex_;
uint64_t reset_time_;
RAM ram_;
Vvortex_afu_shim *vortex_afu_;
#ifdef VCD_OUTPUT