mirror of
https://github.com/RTimothyEdwards/netgen.git
synced 2026-08-22 14:07:07 +02:00
Revised the verilog parser to correctly identify and parse
parameters passed to instances, so that these can match critical parameters in the SPICE netlist being compared against.
This commit is contained in:
+2
-8
@@ -884,6 +884,7 @@ skip_endmodule:
|
||||
|
||||
while (nexttok != NULL) {
|
||||
char *paramname;
|
||||
|
||||
SkipTok(VLOG_DELIMITERS2);
|
||||
while (match(nexttok, "//")) {
|
||||
SkipNewLine(VLOG_DELIMITERS);
|
||||
@@ -896,14 +897,7 @@ skip_endmodule:
|
||||
|
||||
// We need to look for parameters of the type ".name(value)"
|
||||
|
||||
SkipTok(VLOG_DELIMITERS2);
|
||||
while (match(nexttok, "//")) {
|
||||
SkipNewLine(VLOG_DELIMITERS);
|
||||
SkipTok(VLOG_DELIMITERS2);
|
||||
}
|
||||
if (nexttok[0] != '.') {
|
||||
Printf("Badly formed subcircuit parameter line at \"%s\"\n", nexttok);
|
||||
}
|
||||
if (nexttok[0] != '.') break;
|
||||
else {
|
||||
paramname = strsave(nexttok + 1);
|
||||
SkipTok(VLOG_DELIMITERS2);
|
||||
|
||||
Reference in New Issue
Block a user