mirror of
https://github.com/YosysHQ/yosys
synced 2026-05-01 08:03:46 +00:00
cxxrtl: stable TopoSort
This commit is contained in:
parent
41b41fefb3
commit
cd49dc7be8
1 changed files with 2 additions and 1 deletions
|
|
@ -2776,7 +2776,8 @@ struct CxxrtlWorker {
|
||||||
{
|
{
|
||||||
RTLIL::Module *top_module = nullptr;
|
RTLIL::Module *top_module = nullptr;
|
||||||
std::vector<RTLIL::Module*> modules;
|
std::vector<RTLIL::Module*> modules;
|
||||||
TopoSort<RTLIL::Module*> topo_design;
|
using Order = IdString::compare_ptr_by_name<RTLIL::NamedObject>;
|
||||||
|
TopoSort<RTLIL::Module*, Order> topo_design;
|
||||||
for (auto module : design->modules()) {
|
for (auto module : design->modules()) {
|
||||||
if (!design->selected_module(module))
|
if (!design->selected_module(module))
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue