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

Add missing bits to store the phi region for the inner stub in the combined module trackletparameters #233

Merged
merged 1 commit into from
Aug 25, 2023

Conversation

aryd
Copy link

@aryd aryd commented Aug 25, 2023

PR description:

This PR is a simple change to add three bits to store the phi region to identify which AllStub memory is used in a combined module seed.

PR validation:

I have run this code in CMSSW and produced the test vectors for HLS. I have updated the HLS code to handle these additional bits and checked that the code is working. (PR for HLS is not quite ready yet, some cleanup still needed.)

@@ -122,6 +122,12 @@ std::string Stub::phiregionaddressstr() const {
return phiregion.str() + stubindex_.str();
}

std::string Stub::phiregionstr() const {
int iphi = (phicorr_.value() >> (phicorr_.nbits() - settings_.nbitsallstubs(layerdisk())));
FPGAWord phiregion(iphi, 3, true, __LINE__, __FILE__);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Magic numbers like "3" should be avoided, so try to replace this with a named constant sometime.

Copy link
Collaborator

@tomalin tomalin left a comment

Choose a reason for hiding this comment

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

Approved

@tomalin tomalin merged commit 8dfd21c into L1TK-dev-13_3_0_pre1 Aug 25, 2023
tomalin pushed a commit that referenced this pull request Aug 25, 2023
@aehart aehart mentioned this pull request Sep 7, 2023
tomalin pushed a commit that referenced this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants