diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-01-01 11:48:46 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-01-01 14:15:40 +0100 |
commit | 28a81b3a60952607c03191b8f71e11588047c721 (patch) | |
tree | ada0d8ca32e9e08bdaec56acca2e1a39282adcb8 /testsuite/synth/issue1572/ent.psl | |
parent | cbeafcc2a33209e6825e590561726cf10ef66d11 (diff) | |
download | ghdl-28a81b3a60952607c03191b8f71e11588047c721.tar.gz ghdl-28a81b3a60952607c03191b8f71e11588047c721.tar.bz2 ghdl-28a81b3a60952607c03191b8f71e11588047c721.zip |
testsuite/synth: add a test for #1572
Diffstat (limited to 'testsuite/synth/issue1572/ent.psl')
-rw-r--r-- | testsuite/synth/issue1572/ent.psl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/synth/issue1572/ent.psl b/testsuite/synth/issue1572/ent.psl new file mode 100644 index 000000000..87b1a8c48 --- /dev/null +++ b/testsuite/synth/issue1572/ent.psl @@ -0,0 +1,11 @@ +vunit i_ent(ent(synthesis)) +{ + default clock is rising_edge(clk_i); + + process (all) + variable num_colors : integer_vector(0 to 7); + begin + num_colors := (others => 0); + num_colors(to_integer(u0)) := num_colors(to_integer(u0)) + 1; + end process; +} |