aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/slice01/slice03.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-09-25 21:02:15 +0200
committerTristan Gingold <tgingold@free.fr>2019-09-25 21:02:15 +0200
commit241c2939195143386ad2c4a31127e921ea0e306b (patch)
tree69cab5a1bd4bf44ba535639f67fe42ae30393b6f /testsuite/synth/slice01/slice03.vhdl
parent63c9d7e02e979d721a0ddb12bcdaa3976d50aac9 (diff)
downloadghdl-241c2939195143386ad2c4a31127e921ea0e306b.tar.gz
ghdl-241c2939195143386ad2c4a31127e921ea0e306b.tar.bz2
ghdl-241c2939195143386ad2c4a31127e921ea0e306b.zip
testsuite/synth: add testcase for slice of slice.
Diffstat (limited to 'testsuite/synth/slice01/slice03.vhdl')
-rw-r--r--testsuite/synth/slice01/slice03.vhdl12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/synth/slice01/slice03.vhdl b/testsuite/synth/slice01/slice03.vhdl
new file mode 100644
index 000000000..0509efcbf
--- /dev/null
+++ b/testsuite/synth/slice01/slice03.vhdl
@@ -0,0 +1,12 @@
+library ieee;
+use ieee.std_logic_1164.all;
+
+entity slice03 is
+ port (di : std_logic_vector(7 downto 0);
+ do : out std_logic_vector (3 downto 0));
+end slice03;
+
+architecture behav of slice03 is
+begin
+ do <= di (7 downto 4)(7 downto 4);
+end behav;