Skip to content

Commit c2ee265

Browse files
committed
WIP: mostly cosmetic changes
Signed-off-by: Paweł Czarnecki <[email protected]>
1 parent 8b09d1b commit c2ee265

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

vpr/src/base/netlist_writer.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,7 +2434,7 @@ void print_verilog_port(std::ostream& os, size_t& unconn_count, const std::strin
24342434
};
24352435

24362436
//Port name
2437-
os << indent(depth) << "." << port_name << "(";
2437+
//os << indent(depth) << "." << port_name << "(";
24382438

24392439
//Pins
24402440
if (nets.size() == 1) {
@@ -2470,11 +2470,11 @@ void print_verilog_port(std::ostream& os, size_t& unconn_count, const std::strin
24702470
// Empty connection
24712471
} else {
24722472
// Individual bits
2473-
os << "{"
2474-
<< "\n";
2473+
//os << "{"
2474+
//<< "\n";
24752475
for (int ipin = (int)nets.size() - 1; ipin >= 0; --ipin) { //Reverse order to match endianess
24762476
std::string name = port_name + "[" + std::to_string(ipin) + "]";
2477-
os << indent(depth) << "." << escape_verilog_identifier(name) << " (";
2477+
os << indent(depth) << "." << escape_verilog_identifier(name) << "(";
24782478
if (nets[ipin].empty()) {
24792479
//Disconnected
24802480
if (type == PortType::INPUT || type == PortType::CLOCK) {
@@ -2490,12 +2490,13 @@ void print_verilog_port(std::ostream& os, size_t& unconn_count, const std::strin
24902490
//Connected
24912491
os << escape_verilog_identifier(nets[ipin]);
24922492
}
2493-
if (ipin != 0) {
2494-
os << ",";
2495-
}
2493+
if (ipin != 0)
2494+
os << "),";
2495+
else
2496+
os << ")";
24962497
os << "\n";
24972498
}
2498-
os << indent(depth) + " }";
2499+
//os << indent(depth) + " }";
24992500
}
25002501
}
25012502
}

0 commit comments

Comments
 (0)