Support snps directives

This commit is contained in:
Wilson Snyder
2012-02-02 10:26:45 -05:00
parent 9df8966f4a
commit ca927fe587
3 changed files with 9 additions and 3 deletions
+4
View File
@@ -394,6 +394,10 @@ void V3PreProcImp::comment(const string& text) {
cp+=strlen("synopsys");
synth = true;
if (*cp == '_') fileline()->v3error("Extra underscore in meta-comment; use /*synopsys {...}*/ not /*synopsys_{...}*/");
} else if (0==(strncmp(cp,"snps",strlen("snps")))) {
cp+=strlen("snps");
synth = true;
if (*cp == '_') fileline()->v3error("Extra underscore in meta-comment; use /*snps {...}*/ not /*snps_{...}*/");
} else if (0==(strncmp(cp,"cadence",strlen("cadence")))) {
cp+=strlen("cadence");
synth = true;