Skip to content

Commit

Permalink
Verilator: don't scale time as nanoseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Raragyay authored Oct 24, 2023
1 parent 8a020de commit 5b7080a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/common/test/verilator_lib.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 5b7080a

Please sign in to comment.