Added a missing check for using a verilog macro definition as an

array delimeter for an instance array in verilog.
This commit is contained in:
Tim Edwards 2023-03-29 09:54:45 -04:00
parent 40cf82c2cb
commit 490f9f7dbc
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
1.5.250
1.5.251

View File

@ -381,6 +381,12 @@ int GetBusTok(struct bus *wb)
// Is name in the parameter list?
kl = (struct property *)HashLookup(nexttok, &verilogparams);
if (kl == NULL) {
// Is name in the definitions list?
kl = (struct property *)HashLookup(nexttok, &verilogdefs);
}
if (kl == NULL) {
Printf("Array value %s is not a number or a parameter.\n",
nexttok);