Skip to content

Move BLIF model existence check in architecture from end of BLIF parse to corresponding blackbox definition line - #3257

Merged
AlexandreSinger merged 1 commit into
masterfrom
blif_parser_printing_error_lines
Aug 28, 2025
Merged

Move BLIF model existence check in architecture from end of BLIF parse to corresponding blackbox definition line#3257
AlexandreSinger merged 1 commit into
masterfrom
blif_parser_printing_error_lines

Conversation

@haydar-c

Copy link
Copy Markdown
Contributor

Moves BLIF model existence check in arch.xml from end of BLIF parse to point where corresponding blackbox model is read.

Old Behaviour

Throw an error if the blackbox BLIF model was not found in the architecture at the end of parsing. This gives the name of the mismatching blackbox model but was pointing the user to the end of BLIF file.

New Behaviour

Throw an error when we read that current model is a blackbox model and not found in architecture. This gives the name of the mismatching blackbox model and also points the user to line where current model is defined to be a blackbox model.

Related Issue

Some BLIF errors point to the wrong line number (end of file) - #3215

Note:

The throws checking the existence of a main model (we should have a non-blackbox) and checking the number of non-blackbox model (we should have only 1 non-blackbox model) are still pointing to the end of BLIF file. These makes sense to me to be at the end of file as design decisions but open to review.

to point where corresponding blackbox model is read.
@github-actions github-actions Bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Aug 28, 2025

@AlexandreSinger AlexandreSinger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @haydar-c !

@AlexandreSinger
AlexandreSinger merged commit 0e890bc into master Aug 28, 2025
30 checks passed
@AlexandreSinger
AlexandreSinger deleted the blif_parser_printing_error_lines branch August 28, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants