Skip to content

Commit d827825

Browse files
committed
support perfcct
1 parent 14117b1 commit d827825

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ endif
9292
# ChiselDB
9393
WITH_CHISELDB ?= 1
9494
ifeq ($(WITH_CHISELDB), 1)
95-
SIM_CXXFILES += $(BUILD_DIR)/chisel_db.cpp
95+
SIM_CXXFILES += $(BUILD_DIR)/chisel_db.cpp $(BUILD_DIR)/perfCCT.cpp
9696
SIM_CXXFLAGS += -I$(BUILD_DIR) -DENABLE_CHISEL_DB
9797
SIM_LDFLAGS += -lsqlite3
9898
endif

src/test/csrc/common/main.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#include "common.h"
1818
#include "dut.h"
1919

20+
21+
uint64_t global_sim_tick = 0;
22+
2023
#ifdef VERILATOR
2124
#include "emu.h"
2225
#define DUT_MODEL Emulator
@@ -45,6 +48,7 @@ int main(int argc, const char *argv[]) {
4548
// main simulation loop
4649
while (!emu->is_finished()) {
4750
emu->tick();
51+
global_sim_tick++;
4852
}
4953
bool is_good = emu->is_good();
5054
delete emu;

0 commit comments

Comments
 (0)