Correction to the verilog parser to recognize modifiers such as

"~", "!", or "-" in front of variable names in a pin list that would
render the module behavioral verilog.
This commit is contained in:
Tim Edwards 2021-07-11 12:06:16 -04:00
parent c287b6cd28
commit 88d53fab15
1 changed files with 8 additions and 0 deletions

View File

@ -1577,6 +1577,14 @@ nextinst:
}
new_port->net = wire_bundle;
}
else if (nexttok[0] == '~' || nexttok[0] == '!' || nexttok[0] == '-') {
/* All of these imply that the signal is logically manipulated */
/* in turn implying behavioral code. */
Printf("Module '%s' is not structural verilog, "
"making black-box.\n", model);
SetClass(CLASS_MODULE);
goto skip_endmodule;
}
else
new_port->net = strsave(nexttok);