[Tool] Fix typo in io mapping writing

This commit is contained in:
tangxifan 2021-04-27 14:39:57 -06:00
parent 43c1e052ef
commit c5d36757c6
1 changed files with 3 additions and 3 deletions

View File

@ -66,13 +66,13 @@ int write_io_mapping_pair_to_xml_file(std::fstream& fp,
fp << "name=\"" << io_port.get_name().c_str() << "[" << io_port.get_lsb() << ":" << io_port.get_msb() << "]" << "\"";
VTR_ASSERT(1 == io_map.io_net(io_map_id).get_width());
fp << "net=\"" << io_map.io_net(io_map_id).get_name().c_str() << "\"";
fp << " net=\"" << io_map.io_net(io_map_id).get_name().c_str() << "\"";
if (io_map.is_io_input(io_map_id)) {
fp << "dir=\"" << "input" << "\"";
fp << " dir=\"" << "input" << "\"";
} else {
VTR_ASSERT_SAFE(io_map.is_io_output(io_map_id));
fp << "dir=\"" << "output" << "\"";
fp << " dir=\"" << "output" << "\"";
}
fp << "/>\n";