Skip to content

Commit 2b08966

Browse files
committed
Update Verilator test-bench so that it works on arm64 Macs
1 parent b648c25 commit 2b08966

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj_dir/*
2+
reqwalker_tb

protocols/tests/wishbone/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ obj_dir/Vreqwalker__ALL.a: obj_dir/Vreqwalker.cpp
4444

4545
reqwalker_tb: reqwalker.cpp obj_dir/Vreqwalker__ALL.a
4646
g++ -I$(VINC) -I obj_dir $(VINC)/verilated.cpp \
47-
$(VINC)/verilated_vcd_c.cpp reqwalker.cpp \
47+
$(VINC)/verilated_vcd_c.cpp \
48+
$(VINC)/verilated_threads.cpp reqwalker.cpp \
4849
obj_dir/Vreqwalker__ALL.a -o reqwalker_tb
4950

5051
.PHONY: clean

protocols/tests/wishbone/reqwalker.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include "verilated.h"
3030
#include "verilated_vcd_c.h"
3131

32+
// Required by Verilator when not using SystemC
33+
double sc_time_stamp() { return 0; }
34+
3235
int tickcount = 0;
3336
Vreqwalker *tb;
3437
VerilatedVcdC *tfp;

0 commit comments

Comments
 (0)