Merge branch 'master' into netgen-1.5
This commit is contained in:
commit
59aefced7a
|
|
@ -1225,7 +1225,12 @@ skip_endmodule:
|
||||||
lhs = LookupObject(nodename, CurrentCell);
|
lhs = LookupObject(nodename, CurrentCell);
|
||||||
*aptr = '[';
|
*aptr = '[';
|
||||||
}
|
}
|
||||||
else strcpy(noderoot, nexttok);
|
else {
|
||||||
|
strcpy(noderoot, nexttok);
|
||||||
|
/* Set LHS to the start of the vector */
|
||||||
|
sprintf(nodename, "%s[%d]", nexttok, wb.start);
|
||||||
|
lhs = LookupObject(nodename, CurrentCell);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
lhs = LookupObject(nexttok, CurrentCell);
|
lhs = LookupObject(nexttok, CurrentCell);
|
||||||
|
|
@ -1290,13 +1295,21 @@ skip_endmodule:
|
||||||
if (rhs != NULL) {
|
if (rhs != NULL) {
|
||||||
Printf("Improper assignment; left-hand side cannot "
|
Printf("Improper assignment; left-hand side cannot "
|
||||||
"be parsed.\n");
|
"be parsed.\n");
|
||||||
Printf("Right-hand side is \"%s\".\n", rhs->name);
|
if (j != -1)
|
||||||
|
Printf("Right-hand side is \"%s\".\n", assignroot);
|
||||||
|
else
|
||||||
|
Printf("Right-hand side is \"%s\".\n", rhs->name);
|
||||||
|
Printf("Improper expression is \"%s\".\n", nexttok);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (lhs != NULL) {
|
if (lhs != NULL) {
|
||||||
Printf("Improper assignment; right-hand side cannot "
|
Printf("Improper assignment; right-hand side cannot "
|
||||||
"be parsed.\n");
|
"be parsed.\n");
|
||||||
Printf("Left-hand side is \"%s\".\n", lhs->name);
|
if (i != -1)
|
||||||
|
Printf("Left-hand side is \"%s\".\n", noderoot);
|
||||||
|
else
|
||||||
|
Printf("Left-hand side is \"%s\".\n", lhs->name);
|
||||||
|
Printf("Improper expression is \"%s\".\n", nexttok);
|
||||||
/* Not parsable, probably behavioral verilog? */
|
/* Not parsable, probably behavioral verilog? */
|
||||||
Printf("Module '%s' is not structural verilog, "
|
Printf("Module '%s' is not structural verilog, "
|
||||||
"making black-box.\n", model);
|
"making black-box.\n", model);
|
||||||
|
|
@ -1854,7 +1867,7 @@ nextinst:
|
||||||
if (is_bundle &&
|
if (is_bundle &&
|
||||||
((i == -1) ||
|
((i == -1) ||
|
||||||
((wbb.start > wbb.end) && (i < wbb.end)) ||
|
((wbb.start > wbb.end) && (i < wbb.end)) ||
|
||||||
((wbb.start < wbb.end) && (i > wbb.end)))) {
|
((wbb.start <= wbb.end) && (i > wbb.end)))) {
|
||||||
if (bptr) *bptr = '[';
|
if (bptr) *bptr = '[';
|
||||||
|
|
||||||
netname = cptr + 1;
|
netname = cptr + 1;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue