diff options
author | Tristan Gingold <tgingold@free.fr> | 2017-01-30 21:09:19 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-01-31 20:22:08 +0100 |
commit | bc10b035f5998d1cc9ec2aa0122ee1c24099ca05 (patch) | |
tree | 56e0e2fc8733caa1fff39a3cce9fd205b307f575 /src/synth/build_header.sh | |
parent | 3a412a309bcea39e5c8ecd094711bc70452a1e73 (diff) | |
download | ghdl-bc10b035f5998d1cc9ec2aa0122ee1c24099ca05.tar.gz ghdl-bc10b035f5998d1cc9ec2aa0122ee1c24099ca05.tar.bz2 ghdl-bc10b035f5998d1cc9ec2aa0122ee1c24099ca05.zip |
Add netlist generation infrastructure.
Diffstat (limited to 'src/synth/build_header.sh')
-rw-r--r-- | src/synth/build_header.sh | 8 |
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 |