3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

kernel: Use constids.inc for global/constant IdStrings

This commit is contained in:
Eddie Hung 2020-03-12 12:54:30 -07:00
parent 37f42fe102
commit 164dd0f6b2
4 changed files with 37 additions and 17 deletions

View file

@ -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);