Altera Mentor Verification IP Altera Edition AMBA AXI3/4T Instrukcja Użytkownika Strona 767

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 783
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 766
VHDL AXI3 and AXI4 Test Programs
VHDL AXI4 Master BFM Test Program
Mentor VIP AE AXI3/4 User Guide, V10.2b
747
September 2013
get_data_words(data_words, 1, tr_id, index, axi_tr_if_0(index));
if(data_words(31 downto 0) = x"ACE2ACE3") then
report "master_test_program: Read correct data (hACE2ACE3) at
address (20)";
else
hwrite(lp, data_words(31 downto 0));
report "master_test_program: Error: Expected data (hACE2ACE3) at
address (20), but got " & lp.all;
end if;
-- Read data burst of length 1 from address 128.
create_read_transaction(128, 1, tr_id, index, axi_tr_if_0(index));
execute_transaction(tr_id, index, axi_tr_if_0(index));
get_data_words(data_words, 0, tr_id, index, axi_tr_if_0(index));
if(data_words(31 downto 0) = x"ACE0AC00") then
report “master_test_program: Read correct data (ACE0AC00) at address
(128)";
else
hwrite(lp, data_words(31 downto 0));
report "master_test_program: Error: Expected data (ACE0AC00) at
address (128), but got " & lp.all;
end if;
get_data_words(data_words, 1, tr_id, index, axi_tr_if_0(index));
if(data_words(31 downto 0) = x"ACE2ACE3") then
report "master_test_program: Read correct data (hACE2ACE3) at
address (132)";
else
hwrite(lp, data_words(31 downto 0));
report "master_test_program: Error: Expected data (hACE2ACE3) at
address (132), but got " & lp.all;
end if;
wait;
end process;
end master_test_program_a;
Przeglądanie stron 766
1 2 ... 762 763 764 765 766 767 768 769 770 771 772 ... 782 783

Komentarze do niniejszej Instrukcji

Brak uwag