fpga: sim: Initialize test_status
Initialize test_status for backwards compatability with testbenches that don't call start_tb(). Original-commit: 72295360e65d989dd774deabc4add0a54eb6f97e
This commit is contained in:
@@ -30,7 +30,7 @@ package PkgTestExec;
|
|||||||
time start_time, end_time; // Start and end time of the testbench
|
time start_time, end_time; // Start and end time of the testbench
|
||||||
bit stop_on_error = 1; // Configuration option to stop when an error occurs
|
bit stop_on_error = 1; // Configuration option to stop when an error occurs
|
||||||
bit done = 0; // Flag that sets when tb is finished
|
bit done = 0; // Flag that sets when tb is finished
|
||||||
logic test_status[$]; // Pass/fail of each test where index matches test number
|
logic test_status[$] = { 1'bX }; // Pass/fail of each test where index matches test number
|
||||||
|
|
||||||
timeout_t tb_timeout; // Handle to timeout for the overall testbench
|
timeout_t tb_timeout; // Handle to timeout for the overall testbench
|
||||||
timeout_t test_timeout; // Handle to timeout for current test
|
timeout_t test_timeout; // Handle to timeout for current test
|
||||||
|
|||||||
Reference in New Issue
Block a user