aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/polybench-syn/common.mk
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/polybench-syn/common.mk')
-rw-r--r--benchmarks/polybench-syn/common.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/benchmarks/polybench-syn/common.mk b/benchmarks/polybench-syn/common.mk
index 4c6374f..4d450e8 100644
--- a/benchmarks/polybench-syn/common.mk
+++ b/benchmarks/polybench-syn/common.mk
@@ -4,6 +4,9 @@ VERICERT_OPTS ?= -DSYNTHESIS -fschedule
IVERILOG ?= iverilog
IVERILOG_OPTS ?=
+VERILATOR ?= verilator
+VERILATOR_OPTS ?= -Wno-fatal --top main --exe /home/ymherklotz/projects/vericert/driver/verilator_main.cpp
+
TARGETS ?=
%.v: %.c
@@ -15,7 +18,11 @@ TARGETS ?=
%.gcc: %.c
$(CC) $(CFLAGS) $< -o $@
-%: %.iver %.gcc
+%.verilator: %.v
+ $(VERILATOR) $(VERILATOR_OPTS) --Mdir $@ --cc $<
+ $(MAKE) -C $@ -f Vmain.mk
+
+%: %.iver %.gcc %.verilator
cp $< $@
all: $(TARGETS)