aboutsummaryrefslogtreecommitdiffstats
path: root/src/synth/build_header.sh
blob: 5733bd2d34a8343ce73e85b85d9be94f3f2aaadb (plain)
1
2
3
4
5
6
7
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