add minitest stand-in for now
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 22 Jul 2018 08:26:11 +0000 (09:26 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 22 Jul 2018 08:26:11 +0000 (09:26 +0100)
.gitignore [new file with mode: 0644]
.gitmodules [new file with mode: 0644]
Makefile [new file with mode: 0644]
bin/gitmoduleupdate.sh [new file with mode: 0755]
src/peripherals [new submodule]
src/pinmux [new submodule]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..378eac2
--- /dev/null
@@ -0,0 +1 @@
+build
diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..9c4476f
--- /dev/null
@@ -0,0 +1,6 @@
+[submodule "src/peripherals"]
+       path = src/peripherals
+       url = gitolite3@libre-riscv.org:shakti-peripherals.git
+[submodule "src/pinmux"]
+       path = src/pinmux
+       url = gitolite3@libre-riscv.org:pinmux.git
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..265399b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+all: spec_to_pinmux pinmux_to_bsv gen_verilog
+       @echo making minitest
+
+spec_to_pinmux:
+       @mkdir -p build
+       @cd src/pinmux/ && python src/pinmux_generator.py -s minitest \
+                                               -o ../../build/minitest
+pinmux_to_bsv:
+       @mkdir -p build
+       @cd src/pinmux/ && python src/pinmux_generator.py \
+                                               -o ../../build/minitest
+gen_verilog:
+       @echo making minitest verilog
+       @make -C build/minitest/bsv_src gen_verilog
diff --git a/bin/gitmoduleupdate.sh b/bin/gitmoduleupdate.sh
new file mode 100755 (executable)
index 0000000..d823df7
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+git submodule init
+git submodule update
+cd src/peripherals && git checkout master && git pull
+cd ../pinmux && git checkout master && git pull
diff --git a/src/peripherals b/src/peripherals
new file mode 160000 (submodule)
index 0000000..7dfbba6
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 7dfbba622da759890ef294c6b7f9113476d272de
diff --git a/src/pinmux b/src/pinmux
new file mode 160000 (submodule)
index 0000000..f548b72
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit f548b72cadf68afa8890cd552f4ac2933120ff90