Skip to content

Draw Partitions for Floorplanning #2134

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

Closed
wants to merge 10 commits into from
Closed

Conversation

jmah76
Copy link
Contributor

@jmah76 jmah76 commented Aug 16, 2022

Description

Given a constraints file, VPR can now:

  • Toggle on/off partition drawing
  • Highlight partitions included in the constraints file
  • Highlight primitives constrained in partitions
  • Label highlighted partitions and constrained primitives

image
image

Tests

  1. More partitions than number of colours available:
    image
    image
    Number of possible colours for partitions was limited to 5 colours. Number of partitions in the constraint file was set to 9. Having moe partitions than colours available does not crash the program. Pictures above.

  2. Checking different architectures:
    Ran vpr/vpr (insert architecture here) vtr_flow/benchmarks/blif/tseng.blif --route_chan_width 100 --read_vpr_constraints constraints.xml then vpr/vpr (insert architecture here) vtr_flow/benchmarks/blif/tseng.blif --route_chan_width 100 --read_vpr_constraints constraints.xml --analysis --disp on with EArch.xml, k6_frac_N10_40nm.xml, and k6_frac_N10_mem32K_40nm.xml. All draw the partitions properly and their atoms inside their respective partitions properly.

  3. Valgrind
    Even on the master branch, running Valgrind with graphics results in memory leaks. Because of this, I'm not sure how to test if I added more memory leaks. Valgrind was run with the command valgrind --leak-check=full --suppressions=./vpr/valgrind.supp --suppressions=/usr/share/glib-2.0/valgrind/glib.supp --suppressions /usr/share/gtk-3.0/valgrind/gtk.supp vpr/vpr (insert architecture here) vtr_flow/benchmarks/blif/tseng.blif --route_chan_width 100 --read_vpr_constraints constraints.xml --analysis --disp on. Without graphics it produces no leaks.

@github-actions github-actions bot added the VPR VPR FPGA Placement & Routing Tool label Aug 16, 2022
@jmah76
Copy link
Contributor Author

jmah76 commented Aug 30, 2022

With respect to Valgrind:
Running valgrind --leak-check=full --suppressions=./vpr/valgrind.supp --suppressions=/usr/share/glib-2.0/valgrind/glib.supp --suppressions /usr/share/gtk-3.0/valgrind/gtk.supp vpr/vpr (insert architecture here) vtr_flow/benchmarks/blif/tseng.blif --route_chan_width 100 --read_vpr_constraints constraints.xml --analysis --disp on on master yields this output:
image

Running the same command on draw_placement_constraint gives this output:
image

Without graphics (i.e. valgrind --leak-check=full --suppressions=./vpr/valgrind.supp --suppressions=/usr/share/glib-2.0/valgrind/glib.supp --suppressions /usr/share/gtk-3.0/valgrind/gtk.supp vpr/vpr (insert architecture here) vtr_flow/benchmarks/blif/tseng.blif --route_chan_width 100 --read_vpr_constraints constraints.xml), this is the output of draw_placement_constraint:
image

@jmah76 jmah76 mentioned this pull request Aug 30, 2022
@jmah76 jmah76 closed this Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant