Skip to content

Commit

Permalink
debug4
Browse files Browse the repository at this point in the history
  • Loading branch information
chungshien-chai committed Aug 2, 2024
1 parent e618faf commit 073b991
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
7 changes: 2 additions & 5 deletions src/Configuration/ModelConfig/ModelConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,11 +917,8 @@ void model_config_entry(CFGCommon_ARG* cmdarg) {
CFGArg::parse("model_config|gen_bitstream_setting_xml", cmdarg->raws.size(),
&cmdarg->raws[0], flag_options, options, positional_options,
{"is_unittest"}, {"device_size", "design", "pin"}, {}, 2);
ModelConfig_BITSREAM_SETTINGS_XML* xml =
new ModelConfig_BITSREAM_SETTINGS_XML(flag_options, options,
positional_options[0],
positional_options[1]);
delete xml;
ModelConfig_BITSREAM_SETTINGS_XML::gen(
flag_options, options, positional_options[0], positional_options[1]);
} else if (cmdarg->raws[0] == "backdoor") {
CFGArg::parse("model_config|gen_ppdb", cmdarg->raws.size(),
&cmdarg->raws[0], flag_options, options, positional_options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ struct PIN_INFO {
};

/*
Constructor
Generate bitstream setting XML
*/
ModelConfig_BITSREAM_SETTINGS_XML::ModelConfig_BITSREAM_SETTINGS_XML(
void ModelConfig_BITSREAM_SETTINGS_XML::gen(
const std::vector<std::string>& flag_options,
const std::map<std::string, std::string>& options, const std::string& input,
const std::string& output) {
Expand Down Expand Up @@ -144,9 +144,4 @@ ModelConfig_BITSREAM_SETTINGS_XML::ModelConfig_BITSREAM_SETTINGS_XML(
}
}

/*
Destructor
*/
ModelConfig_BITSREAM_SETTINGS_XML::~ModelConfig_BITSREAM_SETTINGS_XML() {}

} // namespace FOEDAG
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ namespace FOEDAG {

class ModelConfig_BITSREAM_SETTINGS_XML {
public:
ModelConfig_BITSREAM_SETTINGS_XML(
const std::vector<std::string>& flag_options,
const std::map<std::string, std::string>& options,
const std::string& input, const std::string& output);
~ModelConfig_BITSREAM_SETTINGS_XML();
static void gen(const std::vector<std::string>& flag_options,
const std::map<std::string, std::string>& options,
const std::string& input, const std::string& output);

private:
};
Expand Down

0 comments on commit 073b991

Please sign in to comment.