minor fix on the format of arch bitstream writer

This commit is contained in:
tangxifan 2020-06-17 00:08:28 -06:00
parent b91c30191a
commit 4f7e8020a8
1 changed files with 6 additions and 6 deletions

View File

@ -84,13 +84,13 @@ void rec_write_block_bitstream_to_xml_file(std::fstream& fp,
/* Output input/output nets if there are any */
if (false == bitstream_manager.block_input_net_ids(block).empty()) {
fp << "\t<input_nets>\n";
fp << "\t\t\n";
fp << "\t\t";
for (const AtomNetId& net : bitstream_manager.block_input_net_ids(block)) {
if (false == atom_ctx.nlist.valid_net_id(net)) {
fp << " unmapped";
fp << "\tunmapped";
} else {
VTR_ASSERT_SAFE(true == atom_ctx.nlist.valid_net_id(net));
fp << " " << atom_ctx.nlist.net_name(net);
fp << "\t" << atom_ctx.nlist.net_name(net);
}
}
fp << "\n";
@ -99,13 +99,13 @@ void rec_write_block_bitstream_to_xml_file(std::fstream& fp,
if (false == bitstream_manager.block_output_net_ids(block).empty()) {
fp << "\t<output_nets>\n";
fp << "\t\t\n";
fp << "\t\t";
for (const AtomNetId& net : bitstream_manager.block_output_net_ids(block)) {
if (false == atom_ctx.nlist.valid_net_id(net)) {
fp << " unmapped";
fp << "\tunmapped";
} else {
VTR_ASSERT_SAFE(true == atom_ctx.nlist.valid_net_id(net));
fp << " " << atom_ctx.nlist.net_name(net);
fp << "\t" << atom_ctx.nlist.net_name(net);
}
}
fp << "\n";