~ruther/vhdl-i2c

bb5425f814e0c7f09683432e4cc8b1950d1c57eb — Rutherther 1 year, 3 months ago 74d8f5e
tests: add messages to checks
1 files changed, 3 insertions(+), 3 deletions(-)

M tb/i2c/tb_i2c_master_pkg.vhd
M tb/i2c/tb_i2c_master_pkg.vhd => tb/i2c/tb_i2c_master_pkg.vhd +3 -3
@@ 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


Do not follow this link