diff --git a/libopenfpga/libarchopenfpga/arch/sample_arch.xml b/libopenfpga/libarchopenfpga/arch/sample_arch.xml index 5008fcbe9..fbccba6a7 100644 --- a/libopenfpga/libarchopenfpga/arch/sample_arch.xml +++ b/libopenfpga/libarchopenfpga/arch/sample_arch.xml @@ -9,14 +9,17 @@ --> - - + + - - - - + + + + + + + @@ -234,32 +237,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libopenfpga/libarchopenfpga/src/read_xml_openfpga_arch.cpp b/libopenfpga/libarchopenfpga/src/read_xml_openfpga_arch.cpp index fdaa73506..e596f11c5 100644 --- a/libopenfpga/libarchopenfpga/src/read_xml_openfpga_arch.cpp +++ b/libopenfpga/libarchopenfpga/src/read_xml_openfpga_arch.cpp @@ -32,7 +32,7 @@ openfpga::Arch read_xml_openfpga_arch(const char* arch_file_name) { try { loc_data = pugiutil::load_xml(doc, arch_file_name); - /* Root node should be */ + /* First node should be */ auto xml_circuit_settings = get_single_child(doc, "openfpga_architecture", loc_data); /* Parse circuit_models to circuit library @@ -47,6 +47,11 @@ openfpga::Arch read_xml_openfpga_arch(const char* arch_file_name) { /* Build the timing graph inside the circuit library */ openfpga_arch.circuit_lib.build_timing_graphs(); + /* Second node should be */ + auto xml_simulation_settings = get_single_child(doc, "openfpga_simulation_setting", loc_data); + + /* Parse simulation settings to data structure */ + } catch (pugiutil::XmlError& e) { archfpga_throw(arch_file_name, e.line(), "%s", e.what());