diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-25 20:39:46 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-25 20:39:46 +0200 |
commit | 6e9336d11dfc4f53dba234e1f02a2b0172461e0c (patch) | |
tree | 12f93ed2cbbb62c0e8e2fb6b7124201fe0a216bd /testsuite/synth/issue39 | |
parent | dcc353b07b82a84f2aa598de3884c58f406e0652 (diff) | |
download | ghdl-6e9336d11dfc4f53dba234e1f02a2b0172461e0c.tar.gz ghdl-6e9336d11dfc4f53dba234e1f02a2b0172461e0c.tar.bz2 ghdl-6e9336d11dfc4f53dba234e1f02a2b0172461e0c.zip |
testsuite/synth: rename issueXX to synthXX for ghdlsynth-beta issues.
Diffstat (limited to 'testsuite/synth/issue39')
-rw-r--r-- | testsuite/synth/issue39/rec2.vhdl | 43 | ||||
-rw-r--r-- | testsuite/synth/issue39/record_test.vhdl | 43 | ||||
-rw-r--r-- | testsuite/synth/issue39/tb_rec2.vhdl | 65 | ||||
-rw-r--r-- | testsuite/synth/issue39/tb_record_test.vhdl | 65 | ||||
-rwxr-xr-x | testsuite/synth/issue39/testsuite.sh | 16 |
5 files changed, 0 insertions, 232 deletions
diff --git a/testsuite/synth/issue39/rec2.vhdl b/testsuite/synth/issue39/rec2.vhdl deleted file mode 100644 index a631d0505..000000000 --- a/testsuite/synth/issue39/rec2.vhdl +++ /dev/null @@ -1,43 +0,0 @@ -library ieee; - use ieee.std_logic_1164.all; - use ieee.numeric_std.all; - -entity rec2 is - port ( - clk : in std_logic; - - sl_in : in std_logic; - slv_in : in std_logic_vector(7 downto 0); - int_in : in integer range 0 to 15; - usig_in : in unsigned(7 downto 0); - - sl_out : out std_logic; - slv_out : out std_logic_vector(7 downto 0); - int_out : out integer range 0 to 15; - usig_out : out unsigned(7 downto 0) - ); -end rec2; - -architecture rtl of rec2 is - type t_record is record - sl : std_logic; - slv : std_logic_vector(7 downto 0); - int : integer range 0 to 15; - usig : unsigned(7 downto 0); - end record t_record; - signal sample_record : t_record; -begin - process(clk) - begin - if rising_edge(clk) then - sample_record.sl <= sl_in; - sample_record.slv <= slv_in; - sample_record.int <= int_in; - sample_record.usig <= usig_in; - end if; - end process; - sl_out <= sample_record.sl; - slv_out <= sample_record.slv; - int_out <= sample_record.int; - usig_out <= sample_record.usig; -end rtl; diff --git a/testsuite/synth/issue39/record_test.vhdl b/testsuite/synth/issue39/record_test.vhdl deleted file mode 100644 index b199cfa36..000000000 --- a/testsuite/synth/issue39/record_test.vhdl +++ /dev/null @@ -1,43 +0,0 @@ -library ieee; - use ieee.std_logic_1164.all; - use ieee.numeric_std.all; - -entity record_test is - port ( - clk : in std_logic; - - sl_in : in std_logic; - slv_in : in std_logic_vector(7 downto 0); - int_in : in integer range 0 to 15; - usig_in : in unsigned(7 downto 0); - - sl_out : out std_logic; - slv_out : out std_logic_vector(7 downto 0); - int_out : out integer range 0 to 15; - usig_out : out unsigned(7 downto 0) - ); -end record_test; - -architecture rtl of record_test is - type t_record is record - sl : std_logic; - slv : std_logic_vector(7 downto 0); - int : integer range 0 to 15; - usig : unsigned(7 downto 0); - end record t_record; - signal sample_record : t_record := ('0', (others => '0'), 0, (others => '0')); -begin - process(clk) - begin - if rising_edge(clk) then - sample_record.sl <= sl_in; - sample_record.slv <= slv_in; - sample_record.int <= int_in; - sample_record.usig <= usig_in; - end if; - end process; - sl_out <= sample_record.sl; - slv_out <= sample_record.slv; - int_out <= sample_record.int; - usig_out <= sample_record.usig; -end rtl; diff --git a/testsuite/synth/issue39/tb_rec2.vhdl b/testsuite/synth/issue39/tb_rec2.vhdl deleted file mode 100644 index 8d955df2d..000000000 --- a/testsuite/synth/issue39/tb_rec2.vhdl +++ /dev/null @@ -1,65 +0,0 @@ -entity tb_rec2 is -end tb_rec2; - -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -architecture behav of tb_rec2 is - signal clk : std_logic; - signal sl_in : std_logic; - signal slv_in : std_logic_vector(7 downto 0); - signal int_in : integer range 0 to 15; - signal usig_in : unsigned(7 downto 0); - signal sl_out : std_logic; - signal slv_out : std_logic_vector(7 downto 0); - signal int_out : integer range 0 to 15; - signal usig_out : unsigned(7 downto 0); -begin - dut: entity work.rec2 - port map ( - clk => clk, - sl_in => sl_in, - slv_in => slv_in, - int_in => int_in, - usig_in => usig_in, - sl_out => sl_out, - slv_out => slv_out, - int_out => int_out, - usig_out => usig_out); - - process - begin - clk <= '0'; - sl_in <= '1'; - slv_in <= x"12"; - int_in <= 13; - usig_in <= x"d5"; - - wait for 1 ns; - clk <= '1'; - wait for 1 ns; - - assert sl_out = '1' severity failure; - assert slv_out = x"12" severity failure; - assert int_out = 13 severity failure; - assert usig_out = x"d5" severity failure; - - sl_in <= '0'; - slv_in <= x"9b"; - int_in <= 3; - usig_in <= x"72"; - - clk <= '0'; - wait for 1 ns; - clk <= '1'; - wait for 1 ns; - - assert sl_out = '0' severity failure; - assert slv_out = x"9b" severity failure; - assert int_out = 3 severity failure; - assert usig_out = x"72" severity failure; - - wait; - end process; -end behav; diff --git a/testsuite/synth/issue39/tb_record_test.vhdl b/testsuite/synth/issue39/tb_record_test.vhdl deleted file mode 100644 index 31db03d59..000000000 --- a/testsuite/synth/issue39/tb_record_test.vhdl +++ /dev/null @@ -1,65 +0,0 @@ -entity tb_record_test is -end tb_record_test; - -library ieee; -use ieee.std_logic_1164.all; -use ieee.numeric_std.all; - -architecture behav of tb_record_test is - signal clk : std_logic; - signal sl_in : std_logic; - signal slv_in : std_logic_vector(7 downto 0); - signal int_in : integer range 0 to 15; - signal usig_in : unsigned(7 downto 0); - signal sl_out : std_logic; - signal slv_out : std_logic_vector(7 downto 0); - signal int_out : integer range 0 to 15; - signal usig_out : unsigned(7 downto 0); -begin - dut: entity work.record_test - port map ( - clk => clk, - sl_in => sl_in, - slv_in => slv_in, - int_in => int_in, - usig_in => usig_in, - sl_out => sl_out, - slv_out => slv_out, - int_out => int_out, - usig_out => usig_out); - - process - begin - clk <= '0'; - sl_in <= '1'; - slv_in <= x"12"; - int_in <= 13; - usig_in <= x"d5"; - - wait for 1 ns; - clk <= '1'; - wait for 1 ns; - - assert sl_out = '1' severity failure; - assert slv_out = x"12" severity failure; - assert int_out = 13 severity failure; - assert usig_out = x"d5" severity failure; - - sl_in <= '0'; - slv_in <= x"9b"; - int_in <= 3; - usig_in <= x"72"; - - clk <= '0'; - wait for 1 ns; - clk <= '1'; - wait for 1 ns; - - assert sl_out = '0' severity failure; - assert slv_out = x"9b" severity failure; - assert int_out = 3 severity failure; - assert usig_out = x"72" severity failure; - - wait; - end process; -end behav; diff --git a/testsuite/synth/issue39/testsuite.sh b/testsuite/synth/issue39/testsuite.sh deleted file mode 100755 index 9bef83a1f..000000000 --- a/testsuite/synth/issue39/testsuite.sh +++ /dev/null @@ -1,16 +0,0 @@ -#! /bin/sh - -. ../../testenv.sh - -for t in record_test rec2; do - analyze $t.vhdl tb_$t.vhdl - elab_simulate tb_$t - clean - - synth $t.vhdl -e $t > syn_$t.vhdl - analyze syn_$t.vhdl tb_$t.vhdl - elab_simulate tb_$t - clean -done - -echo "Test successful" |