summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-08-03 13:28:51 -0400
committerIan Moffett <ian@osmora.org>2024-08-03 13:28:51 -0400
commit7809654477167686e34819b13356393e74f7df67 (patch)
treeaecd1b6397d58feac4cfdb5bc1a8c8b78dd101d3
parentaba8a9f6f4c7589889a7134b5592369395ec498e (diff)
tb: Add build scripts
Signed-off-by: Ian Moffett <ian@osmora.org>
-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