diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-04 06:52:35 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-04 06:52:35 +0200 |
commit | 4cb565baea6e93f804bef253200f0872428a3daa (patch) | |
tree | 6ed5ee76fe6c1c9e52d94a03666e1d121ccfd094 /testsuite/synth/dispin01/tb_rec01.vhdl | |
parent | 95433bc986b16badf5a48ab00df861d0424ca983 (diff) | |
download | ghdl-4cb565baea6e93f804bef253200f0872428a3daa.tar.gz ghdl-4cb565baea6e93f804bef253200f0872428a3daa.tar.bz2 ghdl-4cb565baea6e93f804bef253200f0872428a3daa.zip |
testsuite/synth: rename disp01 to dispin01
Diffstat (limited to 'testsuite/synth/dispin01/tb_rec01.vhdl')
-rw-r--r-- | testsuite/synth/dispin01/tb_rec01.vhdl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/testsuite/synth/dispin01/tb_rec01.vhdl b/testsuite/synth/dispin01/tb_rec01.vhdl new file mode 100644 index 000000000..fbfda0a7e --- /dev/null +++ b/testsuite/synth/dispin01/tb_rec01.vhdl @@ -0,0 +1,28 @@ +entity tb_rec01 is +end tb_rec01; + +library ieee; +use ieee.std_logic_1164.all; +use work.rec01_pkg.all; + +architecture behav of tb_rec01 is + signal inp : myrec; + signal r : std_logic; +begin + dut: entity work.rec01 + port map (inp => inp, o => r); + + process + constant av : std_logic_vector := b"11001"; + constant bv : std_logic_vector := b"01011"; + constant rv : std_logic_vector := b"11011"; + begin + for i in av'range loop + inp.a <= av (i); + inp.b <= bv (i); + wait for 1 ns; + assert r = rv(i) severity failure; + end loop; + wait; + end process; +end behav; |