Skip to content

Commit b4aed55

Browse files
committed
xml read: fixed bug and added temporary OPTIONAL to tiles tag
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent 962e0a2 commit b4aed55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/libarchfpga/src/read_xml_arch_file.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void XmlReadArch(const char *ArchFile, const bool timing_enabled,
243243
CreateModelLibrary(arch);
244244

245245
/* Process tiles */
246-
Next = get_single_child(architecture, "tiles", loc_data);
246+
Next = get_single_child(architecture, "tiles", loc_data, OPTIONAL);
247247
ProcessTiles(Next, arch, loc_data);
248248

249249
/* Process layout */
@@ -2168,7 +2168,7 @@ static void ProcessTileModes(pugi::xml_node Node, t_tile *tile, const pugiutil::
21682168
index++;
21692169

21702170
//Process the <mode> tag attributes
2171-
for(pugi::xml_attribute attr : Node.attributes()) {
2171+
for(pugi::xml_attribute attr : mode.attributes()) {
21722172
if(attr.name() == std::string("name")) {
21732173
tile_mode->name = vtr::strdup(attr.value());
21742174
} else if(attr.name() == std::string("capacity")) {

0 commit comments

Comments
 (0)