projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1e3bc0
)
Do not check for 1 and 0 only
author
Miodrag Milanovic
<mmicko@gmail.com>
Sun, 30 Aug 2020 11:15:06 +0000
(13:15 +0200)
committer
Miodrag Milanovic
<mmicko@gmail.com>
Sun, 30 Aug 2020 11:15:06 +0000
(13:15 +0200)
frontends/verific/verific.cc
patch
|
blob
|
history
diff --git
a/frontends/verific/verific.cc
b/frontends/verific/verific.cc
index 0bac2b57ca7f609d2aa39bc1ec3b1ce49ce26a24..c974c3faabc077ed28285877eda365f7d9698736 100644
(file)
--- a/
frontends/verific/verific.cc
+++ b/
frontends/verific/verific.cc
@@
-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 {