mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
100%
This commit is contained in:
parent
eeb15ea2a2
commit
65d50db4ef
13 changed files with 74 additions and 67 deletions
|
@ -342,11 +342,12 @@ struct JnyWriter
|
|||
}
|
||||
}
|
||||
|
||||
void write_prams(dict<RTLIL::IdString, RTLIL::Const>& params, uint16_t indent_level = 0) {
|
||||
template <typename SmellsLikeDict>
|
||||
void write_prams(SmellsLikeDict& params, uint16_t indent_level = 0) {
|
||||
const auto _indent = gen_indent(indent_level);
|
||||
|
||||
bool first_param{true};
|
||||
for (auto& param : params) {
|
||||
for (auto param : params) {
|
||||
if (!first_param)
|
||||
f << stringf(",\n");
|
||||
const auto param_val = param.second;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue