libopenfpga/libarchopenfpga/src/read_xml_simulation_setting.cpp
/********************************************************************
 * Parse XML codes about <openfpga_simulation_setting> to an object of technology library
 *******************************************************************/
Parse XML codes about  to an object of technology library
Parse XML codes about to an object of technology library
openfpga::SimulationSetting read_xml_simulation_setting(pugi::xml_node& Node,
                                                        const pugiutil::loc_data& loc_data) {
  openfpga::SimulationSetting sim_setting;
  pugi::xml_node xml_clock_setting = get_single_child(Node, "clock_setting", loc_data);
  read_xml_clock_setting(xml_clock_setting, loc_data, sim_setting);
  pugi::xml_node xml_simulator_option = get_single_child(Node, "simulator_option", loc_data);
  read_xml_simulator_option(xml_simulator_option, loc_data, sim_setting);
  pugi::xml_node xml_mc = get_single_child(Node, "monte_carlo", loc_data, pugiutil::ReqOpt::OPTIONAL);
  if (xml_mc) {
    read_xml_monte_carlo(xml_mc, loc_data, sim_setting);
  }
  pugi::xml_node xml_measurement = get_single_child(Node, "measurement_setting", loc_data);
  read_xml_measurement_setting(xml_measurement, loc_data, sim_setting);
  pugi::xml_node xml_stimulus = get_single_child(Node, "stimulus", loc_data);
  read_xml_stimulus(xml_stimulus, loc_data, sim_setting);
  return sim_setting;
}
openfpga :: SimulationSetting read_xml_simulation_setting ( pugi :: xml_node & Node , const pugiutil :: loc_data & loc_data ) { openfpga :: SimulationSetting sim_setting ; pugi :: xml_node xml_clock_setting = get_single_child ( Node , " " , loc_data ) ; read_xml_clock_setting ( xml_clock_setting , loc_data , sim_setting ) ; pugi :: xml_node xml_simulator_option = get_single_child ( Node , " " , loc_data ) ; read_xml_simulator_option ( xml_simulator_option , loc_data , sim_setting ) ; pugi :: xml_node xml_mc = get_single_child ( Node , " " , loc_data , pugiutil :: ReqOpt :: OPTIONAL ) ; if ( xml_mc ) { read_xml_monte_carlo ( xml_mc , loc_data , sim_setting ) ; } pugi :: xml_node xml_measurement = get_single_child ( Node , " " , loc_data ) ; read_xml_measurement_setting ( xml_measurement , loc_data , sim_setting ) ; pugi :: xml_node xml_stimulus = get_single_child ( Node , " " , loc_data ) ; read_xml_stimulus ( xml_stimulus , loc_data , sim_setting ) ; return sim_setting ; }
Parse XML codes about <openfpga_simulation_setting> to an object of technology library
Parse XML codes about <openfpga_simulation_setting > to an object of technology library
/* Parse clock settings */ /* Parse simulator options */ /* Parse Monte carlo simulation options */ /* Parse measurement settings */ /* Parse stimulus settings */