Skip to content

Conversation

@aryd
Copy link
Contributor

@aryd aryd commented Sep 1, 2025

This PR consists of a set of updates to both project_generation_scripts and firmware_hls to solve several disagreemetns bwtween the reduced FPGA1 project and the CMSSW C++ emulation. Many of the fixes here should be considered "patches" - e.g. the filewriting should be moved into the memory modules to make sure that we accurately print the correct debud information. Now there is a fair bit of manual adjustment to get the debug printout to allign with the memory writing.

project_generation_scripts:

  • To avoid an overwrite of the InputLink memories I changed them to use 4 pages instead of two. Could probably have used two page after adding delays in the memory writing. This is particularly a problem here as we read multiple input memories in the VMR and the last memory to be read was over written in one of the 100 events.

  • Add delay in the FileWriterFIFO modules to allign debug writing with correct BX. Similarly allign debug printout for VMSTE, IL, and AS

firmware_hls:

  • Add delay in the FileWriterFIFO.vhd

  • tf_merge_streamer.vhd has some significant rewrites to process data on each BX. The logic is a bit convoluted as the bx_in_vld signal is not alligned with the change in bx. A delay of three clocks has been added to fix this. This should probably be fixed in a cleaner way.

  • Fixes to CompareMemPrintsFW.py to handle MPAR and AS memories. This could be avoided if the debug printout followed the memory writing.

  • Make the IL memory use 4 pages instead of 2.

@aryd aryd closed this Sep 2, 2025
@aryd
Copy link
Contributor Author

aryd commented Sep 2, 2025

Replaced with new PR

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.

3 participants