aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-03-07 10:52:44 -0800
committerClifford Wolf <clifford@clifford.at>2019-03-07 10:52:44 -0800
commitcda37830b060fd46834d8eb7af1171a1ffaee8ca (patch)
treebb4f0790fef0a09ca72d335a607e865a204776af
parent350dfd3745ec2efa92a601d3bab7712fd9bec07c (diff)
downloadyosys-cda37830b060fd46834d8eb7af1171a1ffaee8ca.tar.gz
yosys-cda37830b060fd46834d8eb7af1171a1ffaee8ca.tar.bz2
yosys-cda37830b060fd46834d8eb7af1171a1ffaee8ca.zip
Add hack for handling SVA labels via Verific
Signed-off-by: Clifford Wolf <clifford@clifford.at>
-rw-r--r--frontends/verific/verificsva.cc15
1 files changed, 14 insertions, 1 deletions
diff --git a/frontends/verific/verificsva.cc b/frontends/verific/verificsva.cc
index 6681115df..8ea8372d3 100644
--- a/frontends/verific/verificsva.cc
+++ b/frontends/verific/verificsva.cc
@@ -1666,7 +1666,20 @@ struct VerificSvaImporter
log(" importing SVA property at root cell %s (%s) at %s:%d.\n", root->Name(), root->View()->Owner()->Name(),
LineFile::GetFileName(root->Linefile()), LineFile::GetLineNo(root->Linefile()));
- RTLIL::IdString root_name = module->uniquify(importer->mode_names || root->IsUserDeclared() ? RTLIL::escape_id(root->Name()) : NEW_ID);
+ bool is_user_declared = root->IsUserDeclared();
+
+ // FIXME
+ if (!is_user_declared) {
+ const char *name = root->Name();
+ for (int i = 0; name[i]; i++) {
+ if (i ? (name[i] < '0' || name[i] > '9') : (name[i] != 'i')) {
+ is_user_declared = true;
+ break;
+ }
+ }
+ }
+
+ RTLIL::IdString root_name = module->uniquify(importer->mode_names || is_user_declared ? RTLIL::escape_id(root->Name()) : NEW_ID);
// parse SVA sequence into trigger signal