From bb5425f814e0c7f09683432e4cc8b1950d1c57eb Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sat, 30 Dec 2023 22:30:58 +0100 Subject: [PATCH] tests: add messages to checks --- tb/i2c/tb_i2c_master_pkg.vhd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tb/i2c/tb_i2c_master_pkg.vhd b/tb/i2c/tb_i2c_master_pkg.vhd index 0883bdc..6b51678 100644 --- a/tb/i2c/tb_i2c_master_pkg.vhd +++ b/tb/i2c/tb_i2c_master_pkg.vhd @@ -75,9 +75,9 @@ package body tb_i2c_master_pkg is sda_override <= '0'; scl_rise(scl_override); if exp_ack = '1' then - check_equal(sda, '0'); + check_equal(sda, '0', "No acknowledge"); elsif exp_ack = '0' then - check_equal(sda, '1'); + check_equal(sda, '1', "There was acknowledge even though there shouldn't have been"); end if; if stop_condition = '1' then @@ -108,7 +108,7 @@ package body tb_i2c_master_pkg is -- data for i in 7 downto 0 loop scl_rise(scl_override); - check_equal(sda, exp_data(i)); + check_equal(sda, exp_data(i), "Received data (sda) not as expected"); scl_fall(scl_override); end loop; -- i -- 2.48.1