diff options
author | Tristan Gingold <tgingold@free.fr> | 2016-07-17 16:20:52 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2016-07-17 16:20:52 +0200 |
commit | d5c2e058c24a05f78f857f5aa4f3727de3a7fa79 (patch) | |
tree | 7316b6520d61a7bb2a105c45179e6e1b9eb5535a /testsuite/gna/issue98/test_load.vhdl | |
parent | e35b24adbb1d0e76c076fe475c8442738b3378be (diff) | |
download | ghdl-d5c2e058c24a05f78f857f5aa4f3727de3a7fa79.tar.gz ghdl-d5c2e058c24a05f78f857f5aa4f3727de3a7fa79.tar.bz2 ghdl-d5c2e058c24a05f78f857f5aa4f3727de3a7fa79.zip |
Add testcase for issue #98
Diffstat (limited to 'testsuite/gna/issue98/test_load.vhdl')
-rw-r--r-- | testsuite/gna/issue98/test_load.vhdl | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/gna/issue98/test_load.vhdl b/testsuite/gna/issue98/test_load.vhdl new file mode 100644 index 000000000..9aefe7915 --- /dev/null +++ b/testsuite/gna/issue98/test_load.vhdl @@ -0,0 +1,31 @@ +library ieee ; +use ieee.std_logic_1164.all; + +entity test_load is + +port( + clk_i : in std_ulogic; + rst_i : in std_ulogic; + dat_i : in std_ulogic_vector(0 to 31); + sot_in : in std_ulogic; + dat_o : out std_ulogic_vector(0 to 2559) + + ); +end test_load; + +architecture RTL of test_load is + + signal w : std_ulogic_vector(0 to 2559); + +begin + + process(clk_i) + begin + if (clk_i'event and clk_i = '1') then + w <= dat_i & w(0 to 2559-32); + + end if; + end process; + dat_o <= w; + +end RTL; |