fixed bugs in XML when parsing circuit model types
This commit is contained in:
parent
db503ffebf
commit
ca3ca14cc7
|
@ -60,7 +60,7 @@ e_circuit_model_type string_to_circuit_model_type(const std::string& type_string
|
||||||
return CIRCUIT_MODEL_INVBUF;
|
return CIRCUIT_MODEL_INVBUF;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (std::string("passgate") == type_string) {
|
if (std::string("pass_gate") == type_string) {
|
||||||
return CIRCUIT_MODEL_PASSGATE;
|
return CIRCUIT_MODEL_PASSGATE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
int main(int argc, const char** argv) {
|
int main(int argc, const char** argv) {
|
||||||
/* Parse the circuit library from an XML file */
|
/* Parse the circuit library from an XML file */
|
||||||
const CircuitSettings& circuit_settings = read_xml_openfpga_arch(argv[1]);
|
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());
|
circuit_settings.circuit_lib.num_models());
|
||||||
|
|
||||||
/* Check the circuit library */
|
/* Check the circuit library */
|
||||||
|
|
Loading…
Reference in New Issue