Skip to content

Commit 996f3aa

Browse files
lpawelczmkurc-ant
authored andcommitted
vpr: base: blif parse: descriptive error message for params
Signed-off-by: Pawel Czarnecki <[email protected]>
1 parent 71fc191 commit 996f3aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vpr/src/base/read_blif.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ struct BlifAllocCallback : public blifparse::Callback {
392392
bool is_valid = is_string_param(value) || is_binary_param(value) || is_real_param(value);
393393

394394
if (!is_valid) {
395-
parse_error(lineno_, ".param", "Incorrect parameter value specification");
395+
std::string msg = "Incorrect parameter '" + name + "' value specification. Value '" + value + "' is not recognized as string, binary word or real number. Possible causes:\n\t* lack or inconsistency in quotes (string)\n\t* no dot '.' to separate integer and fractional part (real number)\n\t* use of characters other than '1' and '0' (binary word)";
396+
parse_error(lineno_, ".param", msg);
396397
}
397398

398399
curr_model().set_block_param(curr_block(), name, value);

0 commit comments

Comments
 (0)