[core] fixed a bug
This commit is contained in:
parent
c6f33bcd7f
commit
83ef35b2da
|
@ -141,11 +141,11 @@ bool BitstreamWriterOption::validate(bool show_err_msg) const {
|
|||
"specified, please define one of them\n");
|
||||
return false;
|
||||
}
|
||||
if (!filter_value_.empty() && (filter_value_ != std::to_string(0) ||
|
||||
if (!filter_value_.empty() && (filter_value_ != std::to_string(0) &&
|
||||
filter_value_ != std::to_string(1))) {
|
||||
VTR_LOGV_ERROR(show_err_msg,
|
||||
"Invalid value '%s' for filter values. Expect [0|1]!\n",
|
||||
filter_value_);
|
||||
filter_value_.c_str());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,9 +118,9 @@ static int write_fabric_config_bit_to_xml_file(
|
|||
hie_path += std::to_string(bit_idx_in_parent_block);
|
||||
hie_path += std::string("]");
|
||||
|
||||
fp << " path=\"" << hie_path;
|
||||
fp << " path=\"" << hie_path << "\"";
|
||||
}
|
||||
fp << "\">\n";
|
||||
fp << ">\n";
|
||||
|
||||
switch (config_type) {
|
||||
case CONFIG_MEM_STANDALONE:
|
||||
|
|
Loading…
Reference in New Issue