Altera Mentor Verification IP Altera Edition AMBA AXI3/4TM User Manual

Page 722

Advertising
background image

Mentor VIP AE AXI3/4 User Guide, V10.2b

702

SystemVerilog AXI3 and AXI4 Test Programs
SystemVerilog AXI3 Master BFM Test Program

September 2013

if (trans7.get_data_words(1) == 'hACE2ACE3)
$display ( "@ %t, master_test_program: Read correct data (hACE2ACE3)
at address (36)", $time);
else
$display ( "@ %t, master_test_program: Error: Expected data
(hACE2ACE3) at address (36), but got %h", $time,
trans7.get_data_words(1));

if (trans7.get_data_words(2) == 'hACE4ACE5)
$display ( "@ %t, master_test_program: Read correct data (hACE4ACE5)
at address (40)", $time);
else
$display ( "@ %t, master_test_program: Error: Expected data
(hACE4ACE5) at address (40), but got %h", $time,
trans7.get_data_words(2));

// Read data from address 64.
trans8 = bfm.create_read_transaction(64,5);
trans8.set_id(4);

bfm.execute_transaction(trans8);
if (trans8.get_data_words(0) == 'hACE0ACE1)
$display ( "@ %t, master_test_program: Read correct data (hACE0ACE1)
at address (64)", $time);
else
$display ( "@ %t, master_test_program: Error: Expected data
(hACE0ACE1) at address (64), but got %h", $time,
trans8.get_data_words(0));

if (trans8.get_data_words(1) == 'hACE2ACE3)
$display ( "@ %t, master_test_program: Read correct data (hACE2ACE3)
at address (68)", $time);
else
$display ( "@ %t, master_test_program: Error: Expected data
(hACE2ACE3) at address (68), but got %h", $time,
trans8.get_data_words(1));

if (trans8.get_data_words(2) == 'hACE4ACE5)
$display ( "@ %t, master_test_program: Read correct data (hACE4ACE5)
at address (72)", $time);
else
$display ( "@ %t, master_test_program: Error: Expected data
(hACE4ACE5) at address (72), but got %h", $time,
trans8.get_data_words(2));

#10000
$finish();
end
endmodule

Advertising