diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/gna/issue917/dut.vhdl | 26 | ||||
-rwxr-xr-x | testsuite/gna/issue917/testsuite.sh | 11 |
2 files changed, 37 insertions, 0 deletions
diff --git a/testsuite/gna/issue917/dut.vhdl b/testsuite/gna/issue917/dut.vhdl new file mode 100644 index 000000000..56d09cdca --- /dev/null +++ b/testsuite/gna/issue917/dut.vhdl @@ -0,0 +1,26 @@ +library ieee; +use ieee.std_logic_1164.all; +entity avmm_csr is + Generic (width : positive); + Port ( + reg_i : in std_ulogic_vector(width-1 downto 0) + ); +end avmm_csr; +architecture rtl of avmm_csr is +begin +end rtl; + +library ieee; +use ieee.std_logic_1164.all; +entity dut is +end entity dut; +architecture rtl of dut is + signal s : std_ulogic_vector(1 downto 0); +begin + inst : entity work.avmm_csr + generic map (width => 4) + port map ( + reg_i => "11"&s + ); +end architecture rtl; + diff --git a/testsuite/gna/issue917/testsuite.sh b/testsuite/gna/issue917/testsuite.sh new file mode 100755 index 000000000..0a831521f --- /dev/null +++ b/testsuite/gna/issue917/testsuite.sh @@ -0,0 +1,11 @@ +#! /bin/sh + +. ../../testenv.sh + +export GHDL_STD_FLAGS=--std=08 +analyze dut.vhdl +elab_simulate dut + +clean + +echo "Test successful" |