mirror of
https://github.com/YosysHQ/yosys
synced 2026-08-07 14:41:26 +00:00
rtlil: sort twines by string, not by ID, in sort methods
This commit is contained in:
parent
2999f9de60
commit
a7938567fe
1 changed files with 2 additions and 2 deletions
|
|
@ -1700,7 +1700,7 @@ void RTLIL::Design::rename(RTLIL::Module *module, TwineRef new_name)
|
|||
void RTLIL::Design::sort()
|
||||
{
|
||||
scratchpad.sort();
|
||||
modules_.sort();
|
||||
modules_.sort(sort_by_twine_str_expensive(twines));
|
||||
for (auto &it : modules_)
|
||||
it.second->sort();
|
||||
}
|
||||
|
|
@ -1708,7 +1708,7 @@ void RTLIL::Design::sort()
|
|||
void RTLIL::Design::sort_modules()
|
||||
{
|
||||
scratchpad.sort();
|
||||
modules_.sort();
|
||||
modules_.sort(sort_by_twine_str_expensive(twines));
|
||||
}
|
||||
|
||||
void check_module(RTLIL::Module *module, ParallelDispatchThreadPool &thread_pool);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue