Forum Discussion
Hello Richard,
Thank you for your feedback. I took a closer look at the directories in my project and conducted more research online, and the issue seemed to be more related to the dependency order for compiled packages/included files in the .do file, and less related to the CXL IP license.
Before running the Nativelink flow, I've included all files that are used in my project in the Quartus Pro project's .qsf file. And while checking the .do file, I noticed that the order of files in .qsf and .do are exactly the same.
From the messages in the Questa terminal, it seems that the files included with `include statements are parsed without any error.
e.g.) vlog -sv -work work +incdir+/root/CHMU/ASPLOS-2025-M5-main_VERSION000/hw/r1bes_mmio/r1bes_mmio/hardware_test_design/common/mc_top+/root/CHMU/ASPLOS-2025-M5-main_VERSION000/hw/r1bes_mmio/r1bes_mmio/hardware_test_design/ {/root/CHMU/ASPLOS-2025-M5-main_VERSION000/hw/r1bes_mmio/r1bes_mmio/hardware_test_design/common/mc_top/axi2avmm_bridge.sv}
However, the files included as packages, if listed in the .do file after the file that is including it, always gives an error.
e.g.) # ** Error: /root/CHMU/ASPLOS-2025-M5-main_VERSION000/hw/r1bes_mmio/r1bes_mmio/hardware_test_design/common/cm_sketch_sorted_cam/afu_banking/src/hot_tracker_top.sv(9): (vlog-13006) Could not find the package (mc_axi_if_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
- Is it that for `include files, +incdir+ command takes care of the dependency order, but for packages, the packages need to be explicitly compiled before any and all files that try to refer to it?
- Is there a way to get either Quartus or Questa to automatically detect dependencies and produce a re-ordered .do file (no matter the file listing order in .qsf file)? Or do I have to manually order my package files in .qsf and/or .do?
Thank you for your time.
Update: I tried re-ordering the files in the .qfs according to the dependencies that were implied in the error messages in the Word file attached above, but I received a very similar set of error messages, still regarding could not find the package (package_name).
- RichardT_altera5 months ago
Super Contributor
I might need to access the project to further debug the issue.
Could you share your design by archiving the project (Project > Archive Project) so that I further investigate.
Regards,
Richard Tan
- skim35 months ago
New Contributor
I appreciate your offer for help.
However, the project file is unfortunately too big, and when I tried to split it up using 7zip, the first part of the split file could not be uploaded to the forum. If you could provide a separate link for the file to be submitted to, that would be great.
If that is not possible, as I'm simply trying to implement and simulate a public project from GitHub without modifications for now, I can share the GitHub site here as well: GitHub - ece-fast-lab/ASPLOS-2025-M5: This is the respository that holds the artifacts of ASPLOS'25 -- M5: Mastering Page Migration and Memory Management for CXL-based Tiered Memory Systems
From the GitHub repo, I've been testing with the testbench file that can be found in the directory:
ASPLOS-2025-M5/hw/m5_rtl/r1bes_mmio/hardware_test_design/common/cm_sketch_sorted_cam/cm_sketch/sim/cm_sketch_tb_random.svBest regards,