diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-11-24 07:48:15 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-11-24 07:48:15 +0100 |
commit | 15b84d1fbcfb26b2fb4a4467727eec691c5b73a4 (patch) | |
tree | 9fe96b822f6c98581eb29ac407d719e82d88b7d6 /testsuite/gna/issue1914/delayline1d.vhdl | |
parent | 76f6765bf5228e59f4ffb75878c81849003b7815 (diff) | |
download | ghdl-15b84d1fbcfb26b2fb4a4467727eec691c5b73a4.tar.gz ghdl-15b84d1fbcfb26b2fb4a4467727eec691c5b73a4.tar.bz2 ghdl-15b84d1fbcfb26b2fb4a4467727eec691c5b73a4.zip |
testsuite/gna: add a test for #1914
Diffstat (limited to 'testsuite/gna/issue1914/delayline1d.vhdl')
-rw-r--r-- | testsuite/gna/issue1914/delayline1d.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/issue1914/delayline1d.vhdl b/testsuite/gna/issue1914/delayline1d.vhdl new file mode 100644 index 000000000..e5d79c01c --- /dev/null +++ b/testsuite/gna/issue1914/delayline1d.vhdl @@ -0,0 +1,20 @@ +library IEEE; +use IEEE.std_logic_1164.all; + +entity delayline1d is + generic ( + delay : positive + ); + port ( + clk : in std_logic; + i : in std_logic; + o : out std_logic + ); +end entity; + +architecture rtl of delayline1d is + signal d : std_logic_vector(delay - 1 downto 0); +begin + (o, d) <= d & i when rising_edge(clk); + +end architecture rtl; |