Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APPack] Added read_flat_place Option and Verifier #2861

Merged

Conversation

AlexandreSinger
Copy link
Contributor

Added the read_flat_place option to VPR's CLI. This allows the user to pass a flat placement file into the packer.

Added code to parse this file into a FlatPlacementInfo object which only verifies that the atom given in the file exists in the atom netlist.

Added code in the packer to read in the flat placement and verify that the flat placement is valid for use in the packer.

@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool docs Documentation lang-cpp C/C++ code labels Jan 16, 2025
Copy link
Contributor

@vaughnbetz vaughnbetz left a comment

Choose a reason for hiding this comment

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

Some suggested updates to commenting, and ideally we'd support 3D layer too.

Should there be a test made that reading in a file works at this point?

doc/src/vpr/command_line_usage.rst Outdated Show resolved Hide resolved
doc/src/vpr/command_line_usage.rst Outdated Show resolved Hide resolved
vpr/src/base/FlatPlacementInfo.h Outdated Show resolved Hide resolved
vpr/src/base/FlatPlacementInfo.h Show resolved Hide resolved
vpr/src/base/load_flat_place.cpp Outdated Show resolved Hide resolved
vpr/src/pack/pack.h Show resolved Hide resolved
vpr/src/pack/verify_flat_placement.cpp Show resolved Hide resolved
vpr/src/pack/verify_flat_placement.cpp Show resolved Hide resolved
Added the read_flat_place option to VPR's CLI. This allows the user to
pass a flat placement file into the packer.

Added code to parse this file into a FlatPlacementInfo object which only
verifies that the atom given in the file exists in the atom netlist.

Added code in the packer to read in the flat placement and verify that
the flat placement is valid for use in the packer.
As per Vaughn's suggestions, added layer to the flat placement file
specification to make it easier to upgrade to 3D FPGAs in the future.

Fixed some small documentation issues.
@AlexandreSinger AlexandreSinger force-pushed the feature-read-flat-place branch from 19b2581 to d3967a6 Compare January 20, 2025 02:40
Copy link
Contributor

@vaughnbetz vaughnbetz left a comment

Choose a reason for hiding this comment

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

Looks good. I suggest trying a bunch of broken files right now (2 things on a line, 8 things on a line, some atoms missing, some atoms duplicated, some atom names that don't exist, -ve x, -ve y, etc.). Doesn't have to be automated but worth trying right now.

Possibly you can add max val checks on x,y,layer and subtile when the device is not auto-sized, and could wrap them in a get_max_coord or some such function that keeps the code simple (returns +max_int or something if the device size isn't known yet).

@vaughnbetz vaughnbetz merged commit 801dc62 into verilog-to-routing:master Jan 20, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation 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