libopenfpga/libarchopenfpga/src/read_xml_simulation_setting.cpp
/********************************************************************
 * Parse XML codes of a <stimulus> to an object of simulation setting
 *******************************************************************/
Parse XML codes of a  to an object of simulation setting
Parse XML codes of a to an object of simulation setting
static 
void read_xml_stimulus(pugi::xml_node& xml_stimulus,
                       const pugiutil::loc_data& loc_data,
                       openfpga::SimulationSetting& sim_setting) {
  pugi::xml_node xml_clock = get_single_child(xml_stimulus, "clock", loc_data);
  pugi::xml_node xml_clock_rise = get_single_child(xml_clock, "rise", loc_data);
  read_xml_stimulus_clock(xml_clock_rise, loc_data, sim_setting, SIM_SIGNAL_RISE);
  pugi::xml_node xml_clock_fall = get_single_child(xml_clock, "fall", loc_data);
  read_xml_stimulus_clock(xml_clock_fall, loc_data, sim_setting, SIM_SIGNAL_FALL);
  pugi::xml_node xml_input = get_single_child(xml_stimulus, "input", loc_data);
  pugi::xml_node xml_input_rise = get_single_child(xml_input, "rise", loc_data);
  read_xml_stimulus_input(xml_input_rise, loc_data, sim_setting, SIM_SIGNAL_RISE);
  pugi::xml_node xml_input_fall = get_single_child(xml_input, "fall", loc_data);
  read_xml_stimulus_input(xml_input_fall, loc_data, sim_setting, SIM_SIGNAL_FALL);
}
static void read_xml_stimulus ( pugi :: xml_node & xml_stimulus , const pugiutil :: loc_data & loc_data , openfpga :: SimulationSetting & sim_setting ) { pugi :: xml_node xml_clock = get_single_child ( xml_stimulus , " " , loc_data ) ; pugi :: xml_node xml_clock_rise = get_single_child ( xml_clock , " " , loc_data ) ; read_xml_stimulus_clock ( xml_clock_rise , loc_data , sim_setting , SIM_SIGNAL_RISE ) ; pugi :: xml_node xml_clock_fall = get_single_child ( xml_clock , " " , loc_data ) ; read_xml_stimulus_clock ( xml_clock_fall , loc_data , sim_setting , SIM_SIGNAL_FALL ) ; pugi :: xml_node xml_input = get_single_child ( xml_stimulus , " " , loc_data ) ; pugi :: xml_node xml_input_rise = get_single_child ( xml_input , " " , loc_data ) ; read_xml_stimulus_input ( xml_input_rise , loc_data , sim_setting , SIM_SIGNAL_RISE ) ; pugi :: xml_node xml_input_fall = get_single_child ( xml_input , " " , loc_data ) ; read_xml_stimulus_input ( xml_input_fall , loc_data , sim_setting , SIM_SIGNAL_FALL ) ; }
Parse XML codes of a <stimulus> to an object of simulation setting
Parse XML codes of a <stimulus > to an object of simulation setting