Fix waveform dumpers to use vpiInstance when dumping all variables.

This commit is contained in:
Martin Whitaker 2021-04-21 09:08:26 +01:00
parent d2521878d7
commit a7cb93842e
4 changed files with 12 additions and 12 deletions

View File

@ -825,10 +825,10 @@ static PLI_INT32 sys_dumpvars_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
}
if (!depth) depth = 10000;
/* This dumps all the modules in the design if none are given. */
/* This dumps all the instances in the design if none are given. */
if (!argv || !(item = vpi_scan(argv))) {
argv = vpi_iterate(vpiModule, 0x0);
assert(argv); /* There must be at least one top level module. */
argv = vpi_iterate(vpiInstance, 0x0);
assert(argv); /* There must be at least one top level instance. */
item = vpi_scan(argv);
}

View File

@ -769,10 +769,10 @@ static PLI_INT32 sys_dumpvars_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
}
if (!depth) depth = 10000;
/* This dumps all the modules in the design if none are given. */
/* This dumps all the instances in the design if none are given. */
if (!argv || !(item = vpi_scan(argv))) {
argv = vpi_iterate(vpiModule, 0x0);
assert(argv); /* There must be at least one top level module. */
argv = vpi_iterate(vpiInstance, 0x0);
assert(argv); /* There must be at least one top level instance. */
item = vpi_scan(argv);
}

View File

@ -821,10 +821,10 @@ static PLI_INT32 sys_dumpvars_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
}
if (!depth) depth = 10000;
/* This dumps all the modules in the design if none are given. */
/* This dumps all the instances in the design if none are given. */
if (!argv || !(item = vpi_scan(argv))) {
argv = vpi_iterate(vpiModule, 0x0);
assert(argv); /* There must be at least one top level module. */
argv = vpi_iterate(vpiInstance, 0x0);
assert(argv); /* There must be at least one top level instance. */
item = vpi_scan(argv);
}

View File

@ -805,10 +805,10 @@ static PLI_INT32 sys_dumpvars_calltf(ICARUS_VPI_CONST PLI_BYTE8*name)
}
if (!depth) depth = 10000;
/* This dumps all the modules in the design if none are given. */
/* This dumps all the instances in the design if none are given. */
if (!argv || !(item = vpi_scan(argv))) {
argv = vpi_iterate(vpiModule, 0x0);
assert(argv); /* There must be at least one top level module. */
argv = vpi_iterate(vpiInstance, 0x0);
assert(argv); /* There must be at least one top level instance. */
item = vpi_scan(argv);
}