From 5634a18f780fbb32ba15f20f0658c36c3197800c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 11 Nov 2020 20:57:24 -0500 Subject: [PATCH] Tests: Smaller t_vpi_var test --- test_regress/t/t_vpi_var.cpp | 4 ++-- test_regress/t/t_vpi_var.v | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test_regress/t/t_vpi_var.cpp b/test_regress/t/t_vpi_var.cpp index 17f943535..93802d6a7 100644 --- a/test_regress/t/t_vpi_var.cpp +++ b/test_regress/t/t_vpi_var.cpp @@ -456,7 +456,7 @@ int _mon_check_putget_str(p_cb_data cb_data) { t.type = vpiSimTime; t.high = 0; t.low = 0; - for (int i = 2; i <= 128; i++) { + for (int i = 2; i <= 6; i++) { static s_vpi_value v; int words = (i + 31) >> 5; TEST_MSG("========== %d ==========\n", i); @@ -532,7 +532,7 @@ int _mon_check_putget_str(p_cb_data cb_data) { }; } else { // setup and install - for (int i = 1; i <= 128; i++) { + for (int i = 1; i <= 6; i++) { char buf[32]; snprintf(buf, sizeof(buf), TestSimulator::rooted("arr[%d].arr"), i); CHECK_RESULT_NZ(data[i].scope = vpi_handle_by_name((PLI_BYTE8*)buf, NULL)); diff --git a/test_regress/t/t_vpi_var.v b/test_regress/t/t_vpi_var.v index 206b38584..34b94b34e 100644 --- a/test_regress/t/t_vpi_var.v +++ b/test_regress/t/t_vpi_var.v @@ -91,7 +91,7 @@ extern "C" int mon_check(); genvar i; generate - for (i=1; i<=128; i=i+1) begin : arr + for (i=1; i<=6; i=i+1) begin : arr arr #(.LENGTH(i)) arr(); end endgenerate