diff options
Diffstat (limited to 'backends/edif/edif.cc')
-rw-r--r-- | backends/edif/edif.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/backends/edif/edif.cc b/backends/edif/edif.cc index c5977bb1d..8843b3946 100644 --- a/backends/edif/edif.cc +++ b/backends/edif/edif.cc @@ -118,6 +118,11 @@ struct EdifBackend : public Backend { } extra_args(f, filename, args, argidx); + if (top_module_name.empty()) + for (auto & mod_it:design->modules) + if (mod_it.second->get_bool_attribute("\\top")) + top_module_name = mod_it.first; + for (auto module_it : design->modules) { RTLIL::Module *module = module_it.second; |