From 3a91377e172c469268cdeb14730b8d97af5b0497 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 10 Jan 2020 19:20:10 +0100 Subject: testsuite/synth: add a test for #1075 --- testsuite/synth/issue1075/ent.vhdl | 12 ++++++++++++ testsuite/synth/issue1075/testsuite.sh | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 testsuite/synth/issue1075/ent.vhdl create mode 100755 testsuite/synth/issue1075/testsuite.sh (limited to 'testsuite') diff --git a/testsuite/synth/issue1075/ent.vhdl b/testsuite/synth/issue1075/ent.vhdl new file mode 100644 index 000000000..a4dd7b304 --- /dev/null +++ b/testsuite/synth/issue1075/ent.vhdl @@ -0,0 +1,12 @@ +library ieee; +use ieee.math_real.all; + +entity ent is +end ent; + +architecture a of ent is +constant DELAY_NSEC : real := -1.0; +constant DELAY_TAPS_INT : integer := + integer(round(DELAY_NSEC / 0.078125)); +begin +end a; diff --git a/testsuite/synth/issue1075/testsuite.sh b/testsuite/synth/issue1075/testsuite.sh new file mode 100755 index 000000000..bc1a4b842 --- /dev/null +++ b/testsuite/synth/issue1075/testsuite.sh @@ -0,0 +1,7 @@ +#! /bin/sh + +. ../../testenv.sh + +synth ent.vhdl -e > syn_ent.vhdl + +echo "Test successful" -- cgit v1.2.3