aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/build_header.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/synth/build_header.sh')
-rw-r--r--src/synth/build_header.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/synth/build_header.sh b/src/synth/build_header.sh
new file mode 100644
index 000000000..5733bd2d3
--- /dev/null
+++ b/src/synth/build_header.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+{
+echo "/* This file is automatically generated by build_header.sh - DO NOT MODIFY */"
+echo "enum Module_Id {"
+grep -h "constant Module_Id :=" netlists.ads netlists-gates.ads | sed -e '/constant Module_Id :=/s/:.*://' -e 's/;/,/' -e 's/ *--.*$//'
+echo "};"
+} > ghdlsynth_gates.h