aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue795/tb_ex.vhdl
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2021-09-07 21:15:44 +0200
committerTristan Gingold <tgingold@free.fr>2021-09-07 21:15:44 +0200
commit4341334801df81f31bcca25ab4840be2f8c95c22 (patch)
treef131560a8410d31610442de04b757a6dce9c5671 /testsuite/gna/issue795/tb_ex.vhdl
parentea8d2686efd3a8474eb5beef8aa25b5e2e5c0bd5 (diff)
downloadghdl-4341334801df81f31bcca25ab4840be2f8c95c22.tar.gz
ghdl-4341334801df81f31bcca25ab4840be2f8c95c22.tar.bz2
ghdl-4341334801df81f31bcca25ab4840be2f8c95c22.zip
testsuite/gna: add a test for #795
Diffstat (limited to 'testsuite/gna/issue795/tb_ex.vhdl')
-rw-r--r--testsuite/gna/issue795/tb_ex.vhdl30
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuite/gna/issue795/tb_ex.vhdl b/testsuite/gna/issue795/tb_ex.vhdl
new file mode 100644
index 000000000..2e0f694c7
--- /dev/null
+++ b/testsuite/gna/issue795/tb_ex.vhdl
@@ -0,0 +1,30 @@
+library ieee;
+use ieee.std_logic_1164.all;
+use ieee.numeric_std.all;
+use work.all;
+entity tbCrashExample2 is
+ generic (
+ vectorFilename : string
+ );
+end entity tbCrashExample2;
+
+architecture BEHAVORIAL of tbCrashExample2 is
+ --! General Simulation variables/signals
+ signal fVctrEnd : boolean; --! Flag from vector reader to indicate file end
+ signal vctrCmt : string(1 to 256); --! Current vector line comment
+ signal syncPulse : std_logic; --! Main Sync Signal
+ signal syncCount : integer; --! Sync count
+ signal val1 : std_logic_vector(15 downto 0);
+ signal val2 : std_logic_vector(15 downto 0);
+ signal val3 : std_logic_vector(15 downto 0);
+begin
+ cmp_TestVector : entity crashExample(BEHAVIORAL)
+ port map ( vctrFlNm => vectorFilename,
+ fEnd => fVctrEnd,
+ syncPulse => syncPulse,
+ syncCount => syncCount,
+ v1 => val1,
+ v2 => val2,
+ v3 => val3,
+ vctrCmt => vctrCmt);
+end BEHAVORIAL;