Tests: Smaller t_vpi_var test

This commit is contained in:
Wilson Snyder 2020-11-11 20:57:24 -05:00
parent b84c9bb4c0
commit 5634a18f78
2 changed files with 3 additions and 3 deletions

View File

@ -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));

View File

@ -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