diff options
author | LYAM <cous5830@gmail.com> | 2025-05-05 11:38:22 -0400 |
---|---|---|
committer | LYAM <cous5830@gmail.com> | 2025-05-05 11:38:22 -0400 |
commit | ae3f78a5e297097b7817bbd0c2e854b72e249b2f (patch) | |
tree | ee326c876a533de97f899174e2602a0091df848c /pb_APP_log_comb.srcs/sim_1 | |
parent | 95c62ef1b4f8dcb374cb43bbeb815f95532db67c (diff) |
Error detection works and is tested
Diffstat (limited to 'pb_APP_log_comb.srcs/sim_1')
-rw-r--r-- | pb_APP_log_comb.srcs/sim_1/new/Thermo2Bin_tb.vhd | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/pb_APP_log_comb.srcs/sim_1/new/Thermo2Bin_tb.vhd b/pb_APP_log_comb.srcs/sim_1/new/Thermo2Bin_tb.vhd index 47bd13f..52a02fb 100644 --- a/pb_APP_log_comb.srcs/sim_1/new/Thermo2Bin_tb.vhd +++ b/pb_APP_log_comb.srcs/sim_1/new/Thermo2Bin_tb.vhd @@ -61,7 +61,7 @@ architecture Behavioral of Thermo2Bin_tb is ---------------------------------------------------------------------------- -- declaration d'un tableau pour soumettre un vecteur de test ---------------------------------------------------------------------------- - constant amount_of_tests: integer := 13; + constant amount_of_tests: integer := 26; type table_valeurs_tests is array (integer range 0 to amount_of_tests) of std_logic_vector(16 downto 0); constant mem_valeurs_tests : table_valeurs_tests := ( -- therm0 output err @@ -81,6 +81,23 @@ architecture Behavioral of Thermo2Bin_tb is "001111111111" & "1010" & "0", -- 10 "011111111111" & "1011" & "0", -- 11 "111111111111" & "1100" & "0", -- 12 + + "100011111111" & "1100" & "1", -- error + "010011111111" & "1100" & "1", -- error + "001011111111" & "1100" & "1", -- error + "101011111111" & "1100" & "1", -- error + + "111101001111" & "1100" & "1", -- error + "111101011111" & "1100" & "1", -- error + "111110001111" & "1100" & "1", -- error + "111100001111" & "1100" & "1", -- error + + "111111110000" & "1100" & "1", -- error + "111111111000" & "1100" & "1", -- error + "111111110100" & "1100" & "1", -- error + "111111110010" & "1100" & "1", -- error + + "000000010000" & "1100" & "1", -- error -- conserver la ligne ci-bas. others => "000000000000" & "0000" & "0" -- 0 + 0 ); |