fixed bugs in XML when parsing circuit model types

This commit is contained in:
tangxifan 2020-01-13 21:52:13 -07:00
parent db503ffebf
commit ca3ca14cc7
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ e_circuit_model_type string_to_circuit_model_type(const std::string& type_string
return CIRCUIT_MODEL_INVBUF;
}
if (std::string("passgate") == type_string) {
if (std::string("pass_gate") == type_string) {
return CIRCUIT_MODEL_PASSGATE;
}

View File

@ -10,7 +10,7 @@
int main(int argc, const char** argv) {
/* Parse the circuit library from an XML file */
const CircuitSettings& circuit_settings = read_xml_openfpga_arch(argv[1]);
VTR_LOG("Parsed %s circuit models from XML into circuit library.\n",
VTR_LOG("Parsed %lu circuit models from XML into circuit library.\n",
circuit_settings.circuit_lib.num_models());
/* Check the circuit library */