Skip to content
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

Simple Place Delay Model Read/Write #2844

Merged
merged 8 commits into from
Dec 16, 2024
Merged

Conversation

amin1377
Copy link
Contributor

@amin1377 amin1377 commented Dec 13, 2024

Description

This PR implements the read/write functionality for the simple placement delay model. The feature was tested on the Titan murax_stratixiv_arch_timing circuit, and the resulting placement was consistent with the placement delay model read from the previously written file.

Related Issue

This PR addresses Issue #2840

@amin1377 amin1377 linked an issue Dec 13, 2024 that may be closed by this pull request
@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool lang-cpp C/C++ code labels Dec 13, 2024
@amin1377 amin1377 requested a review from vaughnbetz December 16, 2024 13:13
vpr/src/place/place_delay_model.cpp Outdated Show resolved Hide resolved
vpr/src/place/place_delay_model.cpp Outdated Show resolved Hide resolved
void write(const std::string& /*file*/) const override {}
void read(const std::string& /*file*/) override;
void write(const std::string& /*file*/) const override;
const vtr::NdMatrix<float, 5>& delays() const {
Copy link
Contributor

Choose a reason for hiding this comment

The 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?

Copy link
Contributor

Choose a reason for hiding this comment

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

Doxygen comment would be good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

vpr/src/place/place_delay_model.cpp Show resolved Hide resolved
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.

Thanks for the updates.

@vaughnbetz vaughnbetz merged commit 231438e into master Dec 16, 2024
37 checks passed
@vaughnbetz vaughnbetz deleted the read_write_simple_lookahead branch December 16, 2024 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code VPR VPR FPGA Placement & Routing Tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Placement delay lookup can not be readback
2 participants