Skip to content

Commit

Permalink
Account for a fmt change in Yosys v0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Jun 11, 2024
1 parent b41d629 commit f7bdc0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slang_frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -998,7 +998,7 @@ struct ProceduralVisitor : public ast::ASTVisitor<ProceduralVisitor, true, false
Yosys::Fmt fmt = {};
fmt.parse_verilog(fmt_args, /* sformat_like */ false, /* default_base */ 10,
std::string{call.getSubroutineName()}, mod->name);
fmt.append_string("\n");
fmt.append_literal("\n");
fmt.emit_rtlil(cell);
} else if (!call.isSystemCall()) {
auto subroutine = std::get<0>(call.subroutine);
Expand Down Expand Up @@ -1286,7 +1286,7 @@ struct ModulePopulatingVisitor : public ast::ASTVisitor<ModulePopulatingVisitor,
// TODO: default_base is subroutine dependent, final newline is $display-only
fmt.parse_verilog(fmt_args, /* sformat_like */ false, /* default_base */ 10,
std::string{call.getSubroutineName()}, mod->name);
fmt.append_string("\n");
fmt.append_literal("\n");
fmt.emit_rtlil(cell);
transfer_attrs(call, cell);
}
Expand Down

0 comments on commit f7bdc0c

Please sign in to comment.