Added back a correction that did not get made in this code base

and so didn't make it into the commit.  Handles implicit pins in
verilog.
This commit is contained in:
Tim Edwards 2020-06-16 17:16:30 -04:00
parent 6f81e1d294
commit fb0e1d10b0
1 changed files with 8 additions and 4 deletions

View File

@ -1918,11 +1918,15 @@ nextinst:
scan = scan->next;
}
if (scan == NULL) {
Fprintf(stderr, "Error: No match in call for pin %s\n", obpinname);
break;
}
char localnet[100];
if (GetBus(scan->net, &wb) == 0) {
/* Assume an implicit unconnected pin */
sprintf(localnet, "_noconnect_%d_", localcount++);
Node(localnet);
join(localnet, obptr->name);
Fprintf(stderr, "Note: Implicit pin %s\n", obpinname);
}
else if (GetBus(scan->net, &wb) == 0) {
char *bptr2;
char *scanroot;
scanroot = strsave(scan->net);