/* Get the unitsize. */
for (l = o->sdi->probes; l; l = l->next) {
probe = l->data;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
if (!probe->enabled)
continue;
ctx->num_enabled_probes++;
/* Get the number of probes, and the unitsize. */
for (l = o->sdi->probes; l; l = l->next) {
probe = l->data;
- if (probe->enabled)
- ctx->num_enabled_probes++;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
+ if (!probe->enabled)
+ continue;
+ ctx->num_enabled_probes++;
}
ctx->unitsize = (ctx->num_enabled_probes + 7) / 8;
ctx->num_enabled_probes, num_probes);
for (l = o->sdi->probes; l; l = l->next) {
probe = l->data;
- if (probe->enabled)
- g_string_append_printf(ctx->header, "%s, ", probe->name);
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
+ if (!probe->enabled)
+ continue;
+ g_string_append_printf(ctx->header, "%s, ", probe->name);
}
g_string_append_printf(ctx->header, "\n");
ctx->num_enabled_probes = 0;
for (l = o->sdi->probes; l; l = l->next) {
probe = l->data;
- if (probe->enabled)
- ctx->num_enabled_probes++;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
+ if (!probe->enabled)
+ continue;
+ ctx->num_enabled_probes++;
}
ctx->unitsize = (ctx->num_enabled_probes + 7) / 8;
wbuf[0] = '\0';
for (i = 0, l = o->sdi->probes; l; l = l->next, i++) {
probe = l->data;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
if (!probe->enabled)
continue;
c = (char *)&wbuf + strlen((const char *)&wbuf);
num_enabled_probes = 0;
for (l = sdi->probes; l; l = l->next) {
probe = l->data;
- if (probe->enabled)
- num_enabled_probes++;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
+ if (!probe->enabled)
+ continue;
+ num_enabled_probes++;
}
s = g_string_sized_new(512);
for (l = o->sdi->probes; l; l = l->next) {
probe = l->data;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
if (!probe->enabled)
continue;
ctx->probenames = g_slist_append(ctx->probenames, probe->name);
for (l = o->sdi->probes; l; l = l->next) {
probe = l->data;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
if (!probe->enabled)
continue;
ctx->probeindices = g_array_append_val(
/* Wires / channels */
for (i = 0, l = o->sdi->probes; l; l = l->next, i++) {
probe = l->data;
+ if (probe->type != SR_PROBE_LOGIC)
+ continue;
if (!probe->enabled)
continue;
g_string_append_printf(ctx->header, "$var wire 1 %c %s $end\n",