-
Notifications
You must be signed in to change notification settings - Fork 430
Simple Place Delay Model Read/Write #2844
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
Changes from all commits
6aa8244
18622c6
e99cfd4
e09d260
b85b8b6
8b9e623
66c5c72
6b597f4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -235,6 +235,15 @@ class SimpleDelayModel : public PlaceDelayModel { | |
| public: | ||
| SimpleDelayModel() {} | ||
|
|
||
| /** | ||
| * @brief Initializes the `delays_` data structure. This involves retrieving the corresponding delays for each entry from | ||
| * the router lookahead and storing the minimum among them. | ||
| * | ||
| * @param router The router used to retrieve information from the router lookahead. | ||
| * @param placer_opts Placment parameters. | ||
| * @param router_opts Routing parameters. | ||
| * @param longest_length The length of the longest routing track. | ||
| */ | ||
| void compute( | ||
| RouterDelayProfiler& router, | ||
| const t_placer_opts& placer_opts, | ||
|
|
@@ -243,8 +252,14 @@ class SimpleDelayModel : public PlaceDelayModel { | |
| float delay(const t_physical_tile_loc& from_loc, int /*from_pin*/, const t_physical_tile_loc& to_loc, int /*to_pin*/) const override; | ||
| void dump_echo(std::string /*filepath*/) const override {} | ||
|
|
||
| void read(const std::string& /*file*/) override {} | ||
| void write(const std::string& /*file*/) const override {} | ||
| void read(const std::string& /*file*/) override; | ||
| void write(const std::string& /*file*/) const override; | ||
| /** | ||
| @brief Returns a reference to the array containing the placement delay matrix. | ||
| */ | ||
| const vtr::NdMatrix<float, 5>& delays() const { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reasonable n why this is always a template parameter of 5 rather than a passed one n template parameter?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doxygen comment would be good.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The underlying array that stores the delay is a 5D array, and its dimension size remains constant across all instances of this class. So, I don’t think we need to pass a template parameter for it. |
||
| return delays_; | ||
| } | ||
|
|
||
| private: | ||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.