How to add .ip file to sources.txt? - for ASE simulation
Daniel Granhão <up201406280 at fe.up.pt>
Hi,
I'm experiencing some difficulties while trying to use an .ip file as source for ASE. I'm currently simply adding the .ip file to the sources.txt file that's fed to afu_sim_setup. The file was generated by Intel HLS and is inside the component directory.
When I try to execute "make" in the build directory VCS complains that the module from the IP is unresolved:
Quoted 5 lines
Quoted 5 lines
Error-[URMI] Unresolved modules
/home/daniel/Desktop/transparent-acceleration/prototype/kernel_1/hw/rtl/cci_mpf_mult_afu.sv, 236
"kernel_1_acckernel_1_acc_inst( .clock (clk));"
Module definition of above instance is not found in the design.
I have consulted the AFU development guide and I think .ip files should be accepted. It also references some example source text files that use IP but I can't find them as I only have access to platform release 5.0.3.
Does anyone know how to solve this? Also, where can I find other platform releases so that I can check more examples?
Unrelated to this problem, where can I find the CCI-P to Avalon-MM adapter? I have seen it referenced but also can't find it.
Thank you,
Daniel Granhão
Adler
Sorry, I forgot to answer this question that you asked in the HARP forum. Let's continue the conversation there. This is what I just posted:
The current ASE support for .ip files assumes that they are part of logic generated by Qsys, not HLS. As part of ASE setup, Qsys is invoked on .qsys files and the .ip files may be input to that. The generated RTL is added to the simulation environment. I confess I don't know how HLS input files are managed, though it appears we need to do something similar to support it. There is currently no code in ASE's generate_ase_environment.py to do this. (You can see the config_qsys_sources method there for handling Qsys.)
For now, I recommend that you invoke HLS outside of ASE's setup and add the HLS-generated RTL to your sources.txt. Note that, if necessary, it is possible to put Quartus-specific and simulator-specific definitions in sources.txt. Of course it is better to avoid that if possible. Invoke "rtl_src_config --help" to see the syntax. rtl_src_config is used in both ASE and Quartus configuration to parse sources.txt.
I don't believe we have ever released the CCI-P to Avalon adapter, though we should consider doing that as a BBB.
-Michael
On 4/23/19, 10:12 AM, "OPAE on behalf of Daniel Granhão" <opae-bounces(a)lists.01.org on behalf of up201406280(a)fe.up.pt> wrote:
Hi,
I'm experiencing some difficulties while trying to use an .ip file as source for ASE. I'm currently simply adding the .ip file to the sources.txt file that's fed to afu_sim_setup. The file was generated by Intel HLS and is inside the component directory.
When I try to execute "make" in the build directory VCS complains that the module from the IP is unresolved:
>> Error-[URMI] Unresolved modules
>> /home/daniel/Desktop/transparent-acceleration/prototype/kernel_1/hw/rtl/cci_mpf_mult_afu.sv, >> 236
>> "kernel_1_acc kernel_1_acc_inst( .clock (clk));"
>> Module definition of above instance is not found in the design.
I have consulted the AFU development guide and I think .ip files should be accepted. It also references some example source text files that use IP but I can't find them as I only have access to platform release 5.0.3.
Does anyone know how to solve this? Also, where can I find other platform releases so that I can check more examples?
Unrelated to this problem, where can I find the CCI-P to Avalon-MM adapter? I have seen it referenced but also can't find it.
Thank you,
Daniel Granhão
_______________________________________________
OPAE mailing list
OPAE(a)lists.01.org
https://lists.01.org/mailman/listinfo/opae