diff options
author | Clifford Wolf <clifford@clifford.at> | 2013-03-25 02:14:33 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2013-03-25 02:14:33 +0100 |
commit | 4a7d624bef21ee6fd8ac68b2c87fc50f3a8214ea (patch) | |
tree | 301246d7dce299a6eca3083bb340baa708d70368 /kernel | |
parent | 4bd6f1ee8eb13f94fa7b6d3b87b8f19648ec4d6b (diff) | |
download | yosys-4a7d624bef21ee6fd8ac68b2c87fc50f3a8214ea.tar.gz yosys-4a7d624bef21ee6fd8ac68b2c87fc50f3a8214ea.tar.bz2 yosys-4a7d624bef21ee6fd8ac68b2c87fc50f3a8214ea.zip |
Added hierarchy -generate command for generating skeletton modules
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/show.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/kernel/show.cc b/kernel/show.cc index 6ecdc99cb..321d9e2e0 100644 --- a/kernel/show.cc +++ b/kernel/show.cc @@ -351,9 +351,13 @@ struct ShowWorker module = mod_it.second; if (!design->selected_module(module->name)) continue; - if (design->selected_whole_module(module->name)) - log("Dumping module %s to page %d.\n", id2cstr(module->name), ++page_counter); - else + if (design->selected_whole_module(module->name)) { + if (module->cells.empty() && module->connections.empty()) { + log("Skipping skeletton module %s.\n", id2cstr(module->name)); + continue; + } else + log("Dumping module %s to page %d.\n", id2cstr(module->name), ++page_counter); + } else log("Dumping selected parts of module %s to page %d.\n", id2cstr(module->name), ++page_counter); handle_module(); } |