3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

Added avail params to ilang format, check module params in 'hierarchy -check'

This commit is contained in:
Clifford Wolf 2016-10-22 11:05:49 +02:00
parent 3655d7fea7
commit aa72262330
4 changed files with 25 additions and 3 deletions

View file

@ -278,6 +278,13 @@ void ILANG_BACKEND::dump_module(std::ostream &f, std::string indent, RTLIL::Modu
}
f << stringf("%s" "module %s\n", indent.c_str(), module->name.c_str());
if (!module->avail_parameters.empty()) {
if (only_selected)
f << stringf("\n");
for (auto &p : module->avail_parameters)
f << stringf("%s" " parameter %s\n", indent.c_str(), p.c_str());
}
}
if (print_body)