[Lib] Upgrade openfpga arch parser to error out for unsupported configuration protocol settings

This commit is contained in:
tangxifan 2021-10-05 14:08:01 -07:00
parent ff339312f6
commit 3d062872de
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ void read_xml_config_organization(pugi::xml_node& xml_config_orgz,
if (xml_wl_protocol) { if (xml_wl_protocol) {
read_xml_wl_protocol(xml_wl_protocol, loc_data, config_protocol); read_xml_wl_protocol(xml_wl_protocol, loc_data, config_protocol);
} }
/* Throw an execption if the BL/WL protocols are different. We currently do not support it! */
if (config_protocol.bl_protocol_type() != config_protocol.wl_protocol_type()) {
archfpga_throw(loc_data.filename_c_str(), loc_data.line(xml_config_orgz),
"Expect same type of protocol for both BL and WL! Other combinations are not supported yet\n");
}
} }
} }