aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/yosys.cc
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2020-03-12 12:54:30 -0700
committerEddie Hung <eddie@fpgeh.com>2020-04-02 07:14:08 -0700
commit164dd0f6b298e416bd1ef882f21a4d0b5acfd039 (patch)
treeeb57ca590143925cdc5cc86a2f0da131354529ee /kernel/yosys.cc
parent37f42fe102e329793b884a47321423062eedfce7 (diff)
downloadyosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.tar.gz
yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.tar.bz2
yosys-164dd0f6b298e416bd1ef882f21a4d0b5acfd039.zip
kernel: Use constids.inc for global/constant IdStrings
Diffstat (limited to 'kernel/yosys.cc')
-rw-r--r--kernel/yosys.cc9
1 files changed, 3 insertions, 6 deletions
diff --git a/kernel/yosys.cc b/kernel/yosys.cc
index 6d64e2e90..380f7030b 100644
--- a/kernel/yosys.cc
+++ b/kernel/yosys.cc
@@ -515,12 +515,9 @@ void yosys_setup()
return;
already_setup = true;
- RTLIL::ID::A = "\\A";
- RTLIL::ID::B = "\\B";
- RTLIL::ID::Y = "\\Y";
- RTLIL::ID::keep = "\\keep";
- RTLIL::ID::whitebox = "\\whitebox";
- RTLIL::ID::blackbox = "\\blackbox";
+#define X(_id) RTLIL::ID::_id = "\\" # _id;
+#include "constids.inc"
+#undef X
#ifdef WITH_PYTHON
PyImport_AppendInittab((char*)"libyosys", INIT_MODULE);