Do not check for 1 and 0 only
authorMiodrag Milanovic <mmicko@gmail.com>
Sun, 30 Aug 2020 11:15:06 +0000 (13:15 +0200)
committerMiodrag Milanovic <mmicko@gmail.com>
Sun, 30 Aug 2020 11:15:06 +0000 (13:15 +0200)
frontends/verific/verific.cc

index 0bac2b57ca7f609d2aa39bc1ec3b1ce49ce26a24..c974c3faabc077ed28285877eda365f7d9698736 100644 (file)
@@ -203,12 +203,6 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att
                                auto p = v;
                                if (p) {
                                        if (*p != '"') {
-                                               auto *q = p;
-                                               for (; *q != '\0'; q++)
-                                                       if (*q != '0' && *q != '1') {
-                                                               p = nullptr;
-                                                               break;
-                                                       }
                                                if (p != nullptr)
                                                        attributes.emplace(stringf("\\enum_value_%s", p), RTLIL::escape_id(k));
                                        } else {