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

Updates to remove the generate statements #54

Merged
merged 6 commits into from
Dec 8, 2023
Merged

Updates to remove the generate statements #54

merged 6 commits into from
Dec 8, 2023

Conversation

aryd
Copy link
Contributor

@aryd aryd commented Sep 30, 2023

This PR modifies the code such that the memory modules are not instantiated using "generate" statements, but rather each instance is written out in the SectorProcessor.vhd file. This was already done for the processing modules so this was not as large a change as I had originally thought. This change will then allow to simplify how we implement the memory modules where we will be able to have different number of memory copies for the combined memory modules.

WriteVHDLSyntax.py Outdated Show resolved Hide resolved

for memMod in memList:

mem = memMod.list
Copy link
Contributor

Choose a reason for hiding this comment

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

@aryd The MemModule class doesn't have a member called list. Did you mean inst?

Suggested change
mem = memMod.list
mem = memMod.inst

@aryd
Copy link
Contributor Author

aryd commented Nov 7, 2023 via email

@aehart
Copy link
Contributor

aehart commented Nov 7, 2023

I think this must be memMod.inst. I would need to logon and check, but I think this is what I did in other instances. I guess this code was not executed? Otherwise I should have seen an error?

@aryd I only noticed this because I updated the submodule in cms-L1TK/firmware-hls#298 so that we could see if the CI tests were successful. They failed as soon as emData/download.sh was executed…

So this code is definitely executed, at least by the calls to generator_hdl.py in that script.

@aryd
Copy link
Contributor Author

aryd commented Nov 7, 2023 via email

@aryd
Copy link
Contributor Author

aryd commented Nov 8, 2023 via email

@aehart
Copy link
Contributor

aehart commented Nov 9, 2023

I pushed the fix to the branch RemoveGenerate in project_generation_script. As the PR has already been closed I presume I should open a new PR?

This PR is still open, so I will take a look at it and approve if everything is OK now.

I also pushed the new project_generatio_script version to the branch RemoveGenerate in the main HLS repo.

Thanks. The CI jobs failed with some errors that look transient. I just restarted them, so that we can see if they're happy with the changes to SectorProcessor.

Copy link
Contributor

@aehart aehart left a comment

Choose a reason for hiding this comment

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

@aryd Looks good. Approved!

@aehart aehart merged commit a6fe7ea into master Dec 8, 2023
1 check passed
@aehart aehart deleted the RemoveGenerate branch December 8, 2023 19:26
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