[Tool] Set (x,y) to be optional XML syntax in tile annotation

This commit is contained in:
tangxifan 2021-01-09 18:56:41 -07:00
parent 2324edc522
commit 4124777948
1 changed files with 2 additions and 2 deletions

View File

@ -60,8 +60,8 @@ void read_xml_tile_global_port_annotation(pugi::xml_node& xml_tile,
openfpga::PortParser tile_port_parser(port_name_attr);
/* Parse tile coordinates */
vtr::Point<size_t> tile_coord(get_attribute(xml_tile_port, "x", loc_data).as_int(-1),
get_attribute(xml_tile_port, "y", loc_data).as_int(-1));
vtr::Point<size_t> tile_coord(get_attribute(xml_tile_port, "x", loc_data, pugiutil::ReqOpt::OPTIONAL).as_int(-1),
get_attribute(xml_tile_port, "y", loc_data, pugiutil::ReqOpt::OPTIONAL).as_int(-1));
/* Add tile port information */
tile_annotation.add_global_port_tile_information(tile_global_port_id,