From 712142efdb0ac732c160fdeb40d51d2dcd8d17d8 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Thu, 13 Jun 2024 14:27:32 -0500 Subject: [PATCH] fpga: sim: Initialize test_status Initialize test_status for backwards compatability with testbenches that don't call start_tb(). Original-commit: 72295360e65d989dd774deabc4add0a54eb6f97e --- sim/rfnoc/PkgTestExec.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/rfnoc/PkgTestExec.sv b/sim/rfnoc/PkgTestExec.sv index 47e390d..5a96985 100644 --- a/sim/rfnoc/PkgTestExec.sv +++ b/sim/rfnoc/PkgTestExec.sv @@ -30,7 +30,7 @@ package PkgTestExec; 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 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 test_timeout; // Handle to timeout for current test