Skip to content

[LibArchFPGA] Added Library Model IDs as constexpr #3022

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexandreSinger
Copy link
Contributor

Created static constexpr references to the library model IDs (such as input, output, names, and latch). It is very common to reference these models during execution of VPR. Often we would search for these models in the LogicalModels structure; however, these model IDs will always be the same.

By storing static references to these IDs, the compiler can easily optimize parts of the code which need to check if a model ID is an input/output for example.

Created static constexpr references to the library model IDs (such as
input, output, names, and latch). It is very common to reference these
models during execution of VPR. Often we would search for these models
in the LogicalModels structure; however, these model IDs will always be
the same.

By storing static references to these IDs, the compiler can easily
optimize parts of the code which need to check if a model ID is an
input/output for example.
@github-actions github-actions bot added VPR VPR FPGA Placement & Routing Tool libarchfpga Library for handling FPGA Architecture descriptions lang-cpp C/C++ code labels May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-cpp C/C++ code 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.

1 participant