Skip to content

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

@gigeresk

Description

@gigeresk

Some BLIF error reports point to the end of the file because the BLIF has already been parsed. It should point to the errrant line number.
example error: "BLIF model '%s' has no equivalent architecture model." in read_blif.cpp:verify_blackbox_model()

Expected Behaviour

Errors should be thrown as the file is parsed so that users can find errors quickly.

Current Behaviour

Certain BLIF errors point to the end of the file as the entire file has already been parsed.

Possible Solution

Run more checks while parsing BLIF, while the lineno_ context is correct.

Steps to Reproduce

One way to reproduce this is:
Given a BLIF file and an architecture XML, change the name of a model in the BLIF to something invalid. An exception should be thrown in verify_blackbox_model(). The line number (lineno_) will point to the end of the BLIF file.

Your Environment

  • VTR revision used: issue date HEAD (6a1fe64)
  • Operating System and version: Ubuntu 24.04
  • Compiler version: g++ 13.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    VPRVPR FPGA Placement & Routing ToolbugIncorrect behaviour

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions