3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-21 05:13:40 +00:00

Added "rename -top new_name"

This commit is contained in:
Clifford Wolf 2015-06-17 09:38:56 +02:00
parent 9f7a5b4ef9
commit 99100f367d
3 changed files with 43 additions and 0 deletions

View file

@ -800,6 +800,7 @@ struct RTLIL::Design
RTLIL::ObjRange<RTLIL::Module*> modules();
RTLIL::Module *module(RTLIL::IdString name);
RTLIL::Module *top_module();
bool has(RTLIL::IdString id) const {
return modules_.count(id) != 0;