aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorAlberto Gonzalez <boqwxp@airmail.cc>2020-04-14 18:09:05 +0000
committerAlberto Gonzalez <boqwxp@airmail.cc>2020-05-14 20:06:53 +0000
commit2fb4931e5be2c2a0c80ffbca73ad74ebb8c9032f (patch)
tree04317d2d2c2ce5594d466fc38b5a138aa7c61314 /kernel/rtlil.h
parent437f3fb342f91d0c1a1a923c92312301a03cb07d (diff)
downloadyosys-2fb4931e5be2c2a0c80ffbca73ad74ebb8c9032f.tar.gz
yosys-2fb4931e5be2c2a0c80ffbca73ad74ebb8c9032f.tar.bz2
yosys-2fb4931e5be2c2a0c80ffbca73ad74ebb8c9032f.zip
Add specialized `hash()` for type `dict` and use a `dict` instead of a `std::map` for `techmap_cache` and `techmap_do_cache`.
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 11c45bbec..dad8508c3 100644
--- a/kernel/rtlil.h
+++ b/kernel/rtlil.h
@@ -150,7 +150,7 @@ namespace RTLIL
if (!p[0])
return 0;
- log_assert(p[0] == '$' || p[0] == '\\');
+ log_assert(p[0] == '$' || p[0] == '\\' || strncmp(p, "_TECHMAP_", strlen("_TECHMAP_")) == 0);
log_assert(p[1] != 0);
auto it = global_id_index_.find((char*)p);