Skip to content

Commit

Permalink
reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
treelin611 committed Oct 31, 2024
1 parent 539e371 commit bd2cf17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion libs/libpcf/src/io/pcf_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ namespace openfpga {

/* Parse a .pcf file through a stream, return an object which contains all the
* data */
int read_pcf(const char* fname, PcfData& pcf_data, bool reduce_error_to_warning = false);
int read_pcf(const char* fname, PcfData& pcf_data,
bool reduce_error_to_warning = false);

} /* End namespace openfpga*/

Expand Down
4 changes: 3 additions & 1 deletion openfpga/src/base/openfpga_pcf2place_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ int pcf2place_wrapper_template(const Command& cmd,

/* Parse the input files */
openfpga::PcfData pcf_data;
openfpga::read_pcf(pcf_fname.c_str(), pcf_data,cmd_context.option_enable(cmd, opt_reduce_error_to_warning));
openfpga::read_pcf(
pcf_fname.c_str(), pcf_data,
cmd_context.option_enable(cmd, opt_reduce_error_to_warning));
VTR_LOG("Read the design constraints from a pcf file: %s.\n",
pcf_fname.c_str());

Expand Down
7 changes: 4 additions & 3 deletions openfpga/src/base/openfpga_setup_command_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -599,9 +599,10 @@ ShellCommandId add_pcf2place_command_template(
shell_cmd.add_option("no_time_stamp", false,
"Do not print time stamp in output files");

/* Add an option '--reduce_error_to_warning' */
shell_cmd.add_option("reduce_error_to_warning", false,
"reduce error to warning while reading commands in pcf file");
/* Add an option '--reduce_error_to_warning' */
shell_cmd.add_option(
"reduce_error_to_warning", false,
"reduce error to warning while reading commands in pcf file");

/* Add an option '--verbose' */
shell_cmd.add_option("verbose", false, "Enable verbose output");
Expand Down

0 comments on commit bd2cf17

Please sign in to comment.