mirror of https://github.com/YosysHQ/yosys.git
rtlil: Dump empty connections when whole module is selected.
Without this, empty connections will be always skipped by `dump`, since they contain no selected wires. This makes debugging rather confusing.
This commit is contained in:
parent
21fbdb6638
commit
d019b4e681
|
@ -358,8 +358,8 @@ void RTLIL_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu
|
||||||
|
|
||||||
bool first_conn_line = true;
|
bool first_conn_line = true;
|
||||||
for (auto it = module->connections().begin(); it != module->connections().end(); ++it) {
|
for (auto it = module->connections().begin(); it != module->connections().end(); ++it) {
|
||||||
bool show_conn = !only_selected;
|
bool show_conn = !only_selected || design->selected_whole_module(module->name);
|
||||||
if (only_selected) {
|
if (!show_conn) {
|
||||||
RTLIL::SigSpec sigs = it->first;
|
RTLIL::SigSpec sigs = it->first;
|
||||||
sigs.append(it->second);
|
sigs.append(it->second);
|
||||||
for (auto &c : sigs.chunks()) {
|
for (auto &c : sigs.chunks()) {
|
||||||
|
|
Loading…
Reference in New Issue