mirror of https://github.com/YosysHQ/yosys.git
Do not check for 1 and 0 only
This commit is contained in:
parent
b1e3bc059c
commit
2f93579bd1
|
@ -203,12 +203,6 @@ void VerificImporter::import_attributes(dict<RTLIL::IdString, RTLIL::Const> &att
|
||||||
auto p = v;
|
auto p = v;
|
||||||
if (p) {
|
if (p) {
|
||||||
if (*p != '"') {
|
if (*p != '"') {
|
||||||
auto *q = p;
|
|
||||||
for (; *q != '\0'; q++)
|
|
||||||
if (*q != '0' && *q != '1') {
|
|
||||||
p = nullptr;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (p != nullptr)
|
if (p != nullptr)
|
||||||
attributes.emplace(stringf("\\enum_value_%s", p), RTLIL::escape_id(k));
|
attributes.emplace(stringf("\\enum_value_%s", p), RTLIL::escape_id(k));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue