From d195b9e32c343ed24b54e257d7f03e52b51997b1 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 2 Dec 2020 17:03:48 -0700 Subject: [PATCH] [Tool] Bug fix in XML syntax to define default values for a global tile port --- libopenfpga/libarchopenfpga/src/read_xml_tile_annotation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenfpga/libarchopenfpga/src/read_xml_tile_annotation.cpp b/libopenfpga/libarchopenfpga/src/read_xml_tile_annotation.cpp index 692cd2288..28d2a6ab8 100644 --- a/libopenfpga/libarchopenfpga/src/read_xml_tile_annotation.cpp +++ b/libopenfpga/libarchopenfpga/src/read_xml_tile_annotation.cpp @@ -67,7 +67,7 @@ void read_xml_tile_global_port_annotation(pugi::xml_node& xml_tile, tile_annotation.set_global_port_is_reset(tile_global_port_id, get_attribute(xml_tile, "is_reset", loc_data, pugiutil::ReqOpt::OPTIONAL).as_bool(false)); /* Get default_value attributes */ - tile_annotation.set_global_port_default_value(tile_global_port_id, get_attribute(xml_tile, "default_value", loc_data, pugiutil::ReqOpt::OPTIONAL).as_int(0)); + tile_annotation.set_global_port_default_value(tile_global_port_id, get_attribute(xml_tile, "default_val", loc_data, pugiutil::ReqOpt::OPTIONAL).as_int(0)); /* Ensure valid port attributes */ if (false == tile_annotation.valid_global_port_attributes(tile_global_port_id)) {