diff options
author | Patrick Lehmann <Patrick.Lehmann@tu-dresden.de> | 2016-06-23 18:25:29 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@tu-dresden.de> | 2016-06-23 18:28:34 +0200 |
commit | f4c8c6bc32d1d082dc1e3d3d35f40a5dc969ac7d (patch) | |
tree | 5f388e099e5370dbaeb87a357b0e1b2757961e69 /libraries/vendors/compile-altera.sh | |
parent | e4e537afc5ba96e8732e86a213d566922f8c553a (diff) | |
download | ghdl-f4c8c6bc32d1d082dc1e3d3d35f40a5dc969ac7d.tar.gz ghdl-f4c8c6bc32d1d082dc1e3d3d35f40a5dc969ac7d.tar.bz2 ghdl-f4c8c6bc32d1d082dc1e3d3d35f40a5dc969ac7d.zip |
Added missing Lattice compile script. Enabled VHDL-2008 compilation in all vendor library compile scripts, since VHDL-2008 flavor synopsys is working. Updated README.md.
Diffstat (limited to 'libraries/vendors/compile-altera.sh')
-rwxr-xr-x | libraries/vendors/compile-altera.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libraries/vendors/compile-altera.sh b/libraries/vendors/compile-altera.sh index e943dac3a..d6830abc6 100755 --- a/libraries/vendors/compile-altera.sh +++ b/libraries/vendors/compile-altera.sh @@ -113,10 +113,6 @@ while [[ $# > 0 ]]; do ;; --vhdl2008) VHDLStandard=2008 - echo 1>&2 -e "${COLORED_ERROR} VHDL-2008 is not yet supported by Altera.${ANSI_NOCOLOR}" - echo 1>&2 -e "${ANSI_YELLOW}Possible workaround: ${ANSI_NOCOLOR}" - echo 1>&2 -e "${ANSI_YELLOW} Compile 'std_logic_arith' and 'std_logic_unsigned' into library IEEE.${ANSI_NOCOLOR}" - exit -1 ;; --ghdl) GHDLBinDir="$2" @@ -193,6 +189,11 @@ if [ "$COMPILE_ALL" == "TRUE" ]; then COMPILE_NM=TRUE fi +if [ $VHDLStandard -eq 2008 ]; then + echo -e "${ANSI_RED}Not all Altera packages are VHDL-2008 compatible! Setting HALT_ON_ERROR to FALSE.${ANSI_NOCOLOR}" + HALT_ON_ERROR=0 +fi + DefaultDirectories=("/opt/Altera" "/opt/altera") if [ ! -z $QUARTUS_ROOTDIR ]; then EnvSourceDir=$QUARTUS_ROOTDIR/${SourceDirectories[AlteraQuartus]} @@ -660,7 +661,7 @@ if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_STRATIX" == "TRUE" ] && [ $SKIP_LARGE fi # compile fiftyfivenm library -if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_NANOMETER" == "TRUE" ]; then +if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_NM" == "TRUE" ]; then Library="fiftyfivenm" Files=( fiftyfivenm_atoms.vhd @@ -676,7 +677,7 @@ if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_NANOMETER" == "TRUE" ]; then fi # compile twentynm library -if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_NANOMETER" == "TRUE" ]; then +if [ $STOPCOMPILING -eq 0 ] && [ "$COMPILE_NM" == "TRUE" ]; then Library="twentynm" Files=( twentynm_atoms.vhd |