Merge pull request #716 from antmicro/fix-sdf-escape

VPR: netlist writer: sdf: don't escape '[' and ']' chars for black boxes
This commit is contained in:
tangxifan 2022-07-15 11:00:46 -07:00 committed by GitHub
commit 0a119f2ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -696,12 +696,12 @@ class BlackBoxInst : public Instance {
os << indent(depth + 3) << "(IOPATH ";
os << escape_sdf_identifier(arc.source_name());
if (find_port_size(arc.source_name()) > 1) {
os << "\\[" << arc.source_ipin() << "\\]";
os << "[" << arc.source_ipin() << "]";
}
os << " ";
os << escape_sdf_identifier(arc.sink_name());
if (find_port_size(arc.sink_name()) > 1) {
os << "\\[" << arc.sink_ipin() << "\\]";
os << "[" << arc.sink_ipin() << "]";
}
os << " ";
os << delay_triple.str();