From 01c5e502bdaba4d0a653bf37cda8770e3ebcd94c Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 31 May 2023 22:35:21 -0700 Subject: [PATCH] Update tests so they can be converted to vlog95 --- ivtest/ivltests/sv_ap_parray3.v | 4 +++- ivtest/ivltests/sv_ap_struct3.v | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ivtest/ivltests/sv_ap_parray3.v b/ivtest/ivltests/sv_ap_parray3.v index e1ec2bca8..6bee3a1dc 100644 --- a/ivtest/ivltests/sv_ap_parray3.v +++ b/ivtest/ivltests/sv_ap_parray3.v @@ -10,7 +10,9 @@ module test; assign y = '{'{1'b1, 1 + 1, 3.0, "TEST"}, '{5, 6, '{1'b0, 1 * 1, 3, 1.0}, 8}}; - final begin + // Use an inital block with a delay since a final block cannot be converted to vlog95 + initial begin + #1; if (x === 16'h1234 && y == 32'h12345678) begin $display("PASSED"); end else begin diff --git a/ivtest/ivltests/sv_ap_struct3.v b/ivtest/ivltests/sv_ap_struct3.v index 64f9cf17a..ae859813c 100644 --- a/ivtest/ivltests/sv_ap_struct3.v +++ b/ivtest/ivltests/sv_ap_struct3.v @@ -20,7 +20,9 @@ module test; assign x = '{1'b1, 2.0, 2 + 1}; assign y = '{'{1'b1, 2.0, 2 + 1}, '{4, 5, 6}}; - final begin + // Use an inital block with a delay since a final block cannot be converted to vlog95 + initial begin + #1; if (x === 56'h00000001000203 && y === 68'h00000001000203456) begin $display("PASSED");