Relative placement macro - #3717
Open
amin1377 wants to merge 51 commits into
Open
Conversation
…g attraction groups
…rilog-to-routing into relative_placement
Contributor
|
@amin1377 : is this one ready for review (assuming still WIP given the TBD in the description)? |
…rilog-to-routing into relative_placement
…rilog-to-routing into relative_placement
…ap with architecture-driven macros
… a cluster during repack
…rilog-to-routing into relative_placement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for user-defined relative-placement macros in VPR constraint files. These constraints fix the placement of groups of primitives relative to one another without assigning them absolute locations.
This allows users to preserve the internal geometry of a hand-optimized block, such as a DSP with its control logic, a bit-sliced datapath, or an IP block, while leaving the placer free to choose where the block is located on the device.
Syntax
A new
<relative_macro_list>section is supported inside the existing VPR constraints file specified by--read_vpr_constraints, alongside<partition_list>:Each macro contains one
<reference_group>, which acts as the anchor, and one or more<relative_group>elements. The<add_atom>element uses the same matching semantics as<partition>.The constraints affect both packing and placement.
Packing
Placement
The clusters belonging to a relative macro form a rigid placement macro, similar to an architectural carry chain, but with support for heterogeneous block types.
Each group’s cluster must remain at its specified offset from the reference cluster during both initial placement and annealing. The final placement is validated, so a successful run guarantees that all relative-placement constraints were satisfied.
Full documentation, including the file-format reference and detailed semantics, is available in:
Limitations
sub_tile_offsetis required.layer_offsetmust currently be0. Cross-die macros are rejected when the constraints are loaded. Both fields are reserved for future extensions.Testing
This PR adds:
Unit tests for the relative-placement constraints data model.
A new
vtr_reg_strongtask,strong_relative_placement, covering:The implementation was also validated on Titan benchmarks using constraint sets derived from baseline placements.
Results: