summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.sh8
-rw-r--r--tb/soc/irq/Makefile5
2 files changed, 13 insertions, 0 deletions
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..d4c03b2
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+dirlist=$(find tb/ -type f -name "Makefile")
+
+for dir in $dirlist
+do
+ make -C $(dirname $dir)
+done
diff --git a/tb/soc/irq/Makefile b/tb/soc/irq/Makefile
new file mode 100644
index 0000000..33e94e5
--- /dev/null
+++ b/tb/soc/irq/Makefile
@@ -0,0 +1,5 @@
+.PHONY: all
+all:
+ verilator -Wall --trace -cc ../../../sv/soc/irq/pimc.sv --exe tb_pimc.cpp
+ make -C obj_dir/ -f Vpimc.mk Vpimc
+ ./obj_dir/Vpimc