Merge pull request #3102 from YosysHQ/claire/enumxz

Fix verific import of enum values with x and/or z
This commit is contained in:
Miodrag Milanović 2021-12-10 19:36:37 +01:00 committed by GitHub
commit 2412497c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att
p = nullptr; p = nullptr;
else else
for (auto q = p+2; *q != '\0'; q++) for (auto q = p+2; *q != '\0'; q++)
if (*q != '0' && *q != '1') { if (*q != '0' && *q != '1' && *q != 'x' && *q != 'z') {
p = nullptr; p = nullptr;
break; break;
} }