Skip to content

Commit

Permalink
tb_axi_lite_mailbox: Add simulation outcome print
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Rönninger authored and andreaskurth committed Feb 24, 2020
1 parent 5a344af commit 94973f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/tb_axi_lite_mailbox.sv
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,13 @@ module tb_axi_lite_mailbox;
initial begin : proc_stop_sim
wait (&end_of_sim);
repeat (50) @(posedge clk);
$info("Simulation stopped as all Masters transferred their data, Success.",);
$display("Slave port 0 failed tests: %0d", test_failed[0]);
$display("Slave port 1 failed tests: %0d", test_failed[1]);
if (test_failed[0] > 0 || test_failed[1] > 0) begin
$fatal(1, "Simulation stopped as assertion errors have been encountered, Failure!!!");
end else begin
$info("Simulation stopped as all Masters transferred their data, Success.",);
end
$stop();
end

Expand Down

0 comments on commit 94973f1

Please sign in to comment.