Add basic build scripts

This commit is contained in:
2025-09-30 16:37:01 +02:00
parent d16ba54786
commit b1bbd48d19
6 changed files with 43 additions and 0 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
module load ./Modulefile

13
Modulefile Normal file
View File

@@ -0,0 +1,13 @@
#%Module######################################################################
##
## Project Module
##
proc ModulesHelp { } {
puts stderr "\tThe TGC-HAMMER Project Module\n"
puts stderr "\tThis module loads PATHs and variables for Longnail and SCAIE-V."
}
prereq tools/sdkman/java
prereq tools/sdkman/mvn
prereq tools/cmake
prereq tools/python

3
README.md Normal file
View File

@@ -0,0 +1,3 @@
# TGC Hammer
This is TGC-Hammer, the HLS flow for custom ISA-Extensions.

10
scripts/build_longnail.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
pushd deps/longnail
git submodule update --init --recursive --depth 1
OR_TOOLS_VER="9.11" ./build_deps.sh
./build_circt.sh
./build_longnail.sh
popd

7
scripts/build_scaie-v.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
pushd deps/scaie-v
mvn package
popd

9
scripts/build_treenail.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
pushd deps/treenail
git submodule update --init
./gradlew build
./gradlew install
popd