diff options
Diffstat (limited to 'testsuite/gna/bug0125/tb.vhdl')
-rw-r--r-- | testsuite/gna/bug0125/tb.vhdl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/gna/bug0125/tb.vhdl b/testsuite/gna/bug0125/tb.vhdl new file mode 100644 index 000000000..caa3ac0d4 --- /dev/null +++ b/testsuite/gna/bug0125/tb.vhdl @@ -0,0 +1,23 @@ +entity tb is +end; + +use work.repro.all; + +architecture behav of tb +is +begin + process + variable sum : natural; + begin + sum := 0; + + for i in cst'range(1) loop + for j in cst'range(2) loop + sum := (sum + cst(i, j)) mod 4096; + end loop; + end loop; + + report "sum: " & natural'image(sum); + wait; + end process; +end behav; |