-
Notifications
You must be signed in to change notification settings - Fork 395
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
Placer class #2813
Placer class #2813
Conversation
/* Allocated here because it goes into timing critical code where each memory allocation is expensive */ | ||
IntraLbPbPinLookup pb_gpin_lookup(device_ctx.logical_block_types); | ||
//Enables fast look-up of atom pins connect to CLB pins | ||
ClusteredPinAtomPinsLookup netlist_pin_lookup(cluster_ctx.clb_nlist, atom_ctx.nlist, pb_gpin_lookup); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vaughnbetz
pb_gpin_lookup
and netlist_pin_lookup
are initialized after the placement timer starts in line 215. Is their initialization times intentionally included in the total placement time?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably just what was convenient. They can be moved outside placement if it cleans up the code, but please measure how long they take and if it can be significant they should get their own timers (either on their own or together).
titan_quick_qor
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @soheilshahrouz these changes look great to me! I left some minor comments. I am excited to see this PR merged!
…once in header files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; some suggested commenting and a few minor tweaks.
…ties and NetPinTimingInvalidator
@vaughnbetz |
Add
Placer
class that encapsulates all objects and variable that are placement instance specific. Shared objects like delay model are still constructed outside this class and shared across allPlacer
instances.Don't look at the code yet; it's a mess! :)