From 5b7080a2621b2a16e066d2da18328d02059e33a9 Mon Sep 17 00:00:00 2001 From: Raragyay Date: Tue, 24 Oct 2023 16:35:58 +0200 Subject: [PATCH] Verilator: don't scale time as nanoseconds --- target/common/test/verilator_lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/common/test/verilator_lib.cc b/target/common/test/verilator_lib.cc index 63ac66d5b..2fefe225d 100644 --- a/target/common/test/verilator_lib.cc +++ b/target/common/test/verilator_lib.cc @@ -78,7 +78,7 @@ void Sim::main() { } // namespace sim // Verilator callback to get the current time. -double sc_time_stamp() { return sim::TIME * 1e-9; } +double sc_time_stamp() { return sim::TIME; } // DPI calls. void tb_memory_read(long long addr, int len, const svOpenArrayHandle data) {