Skip to content

Clean up and Document Placement #2317

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

Merged
merged 20 commits into from
Jun 14, 2023
Merged

Clean up and Document Placement #2317

merged 20 commits into from
Jun 14, 2023

Conversation

saaramahmoudi
Copy link
Contributor

Description

Small PR; placer seed was always printed as 0 in vpr.out, since It was printed before It was set. Hence, the default value regardless of the command-line was printed. Set it before printing.

Types of changes

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

@saaramahmoudi
Copy link
Contributor Author

@vaughnbetz

@saaramahmoudi saaramahmoudi requested a review from vaughnbetz May 17, 2023 20:42
@github-actions github-actions bot added the VPR VPR FPGA Placement & Routing Tool label May 17, 2023
@saaramahmoudi
Copy link
Contributor Author

@vaughnbetz can you please publish your review so I can take actions?

@@ -666,6 +666,8 @@ static void SetupPlacerOpts(const t_options& Options, t_placer_opts* PlacerOpts)
PlacerOpts->place_constraint_subtile = Options.place_constraint_subtile;
PlacerOpts->floorplan_num_horizontal_partitions = Options.floorplan_num_horizontal_partitions;
PlacerOpts->floorplan_num_vertical_partitions = Options.floorplan_num_vertical_partitions;

PlacerOpts->seed = Options.Seed;
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. Please check if we can remove the PlacerOpts->seed line from the placer now (should be able to). Best to remove it in that case to avoid confusion.
  2. ToDo: document:
  • place_cost_exp: wiring cost is divided by the average channel width over a net's bounding box taken to this exponent. Default: 1. Only impacts devices with different channel widths in different directions or regions.
  1. Document RLPlace options if they aren't already.

Copy link
Contributor

Choose a reason for hiding this comment

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

@saaramahmoudi : placerOpts->seed setting line is now removed from the placer. If the two documentation updates can be made we can merge this. Or if that will take a while please create an issue to track them and I'll merge this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@vaughnbetz will fix the documentation today and will mention you when it is done.

@saaramahmoudi
Copy link
Contributor Author

@vaughnbetz The RLPlace command-line options are now added to the documentation. I also added NoC options to documentation since they weren't available either and fixed some traffic flow typos.

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, except for a few wording nits.
Also, @Srivat97 has simultaneously been making a PR for NoC documentation so you'll need to sync up with him on that part.

@@ -920,6 +980,82 @@ The following options are only valid when the placement engine is in timing-driv

Name of the post-placement timing report file to generate (not generated if unspecfied).


Copy link
Contributor

Choose a reason for hiding this comment

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

I know @Srivat97 has a PR that's about to land that documents the NoC options too. @Srivat97 : I suggest landing yours and then Sara can enhance any NoC documentation that doesn't capture everything she has here.

@saaramahmoudi
Copy link
Contributor Author

Looks good, except for a few wording nits. Also, @Srivat97 has simultaneously been making a PR for NoC documentation so you'll need to sync up with him on that part.

I don't see a PR from @Srivat97. Can you put the PR's name here and I can merge the branches and land both together?

@vaughnbetz
Copy link
Contributor

@Srivat97 : probably you haven't made a PR yet (@saaramahmoudi : Srivatsan showed me the documentation in our meeting today, but I don't see the PR either). Can you make a PR @Srivat97 ?

@saaramahmoudi
Copy link
Contributor Author

@vaughnbetz I just did a small clean-up on NoC router description in vpr.out, I moved printing of router connections in the architecture to echo file instead of printing 100 lines in the vpr.out. Could you please take a look at it to see if that sounds good to you?

@github-actions github-actions bot added the libarchfpga Library for handling FPGA Architecture descriptions label Jun 8, 2023
@saaramahmoudi saaramahmoudi changed the title Fix Placer Seed Print Clean up and Document Placement Jun 8, 2023
@vaughnbetz
Copy link
Contributor

Looks good, thanks. Will merge after talking to Srivatsan today.

@vaughnbetz
Copy link
Contributor

@Srivat97 : I don't see a PR for the NoC documentation yet. I am going to merge this shortly; it might produce a conflict with your NoC command line option documentation but that shouldn't be too hard to resolve.

@saaramahmoudi
Copy link
Contributor Author

@vaughnbetz ready to be merged.

@Srivat97
Copy link
Contributor

@vaughnbetz , @saaramahmoudi : Sorry for the delayed response. You can go ahead and merge this PR first. I'll handle the conflicts on my end.

@vaughnbetz vaughnbetz merged commit c4156f2 into master Jun 14, 2023
@vaughnbetz vaughnbetz deleted the setup_placer_seed branch June 14, 2023 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libarchfpga Library for handling FPGA Architecture descriptions VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants