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:
parent
40cf82c2cb
commit
490f9f7dbc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue