04-02-2019 03:37 PM - edited 04-02-2019 03:40 PM
Hello,
I'm trying to import CLIP to Labview FPGA. The CLIP consists of a set of .vhd files that some are related. If I import one of the related .vhd file, labview will report the error that some related files are not compiled in library. I'v tried to first import these files reported in error, but it doesn't help. How can I solve this problem?
Solved! Go to Solution.
04-03-2019 07:49 AM
If there are any missing or unclear points in the question, please feel free to ask.
04-04-2019 08:25 AM
A CLIP is not just a VHD file.
I'm not sure your VHD code is suited as a CLIP..... Have you developed the VHD code along the guidelines provided by NI for CLIP files?
04-04-2019 08:27 AM
Will the CLIP interface to hardware?
04-04-2019 09:04 AM
Also, I believe you need to import ALL files required for the CLIP in one go. Essentially the entire dependency tree needs to be included AFAIK. You seem to be trying to import only a single file..... are you sure this is all the CLIP consists of? PArt of the CLIP import is actually chekcing the syntax of the imported files (making sure all signals are routed and so on)
04-04-2019 09:39 AM
My $0.02 - if you're trying to import a large (more than 5-10 files) VHD heirarchy, you'll probably have much greater success with building the IP into a post synthesis netlist or DCP and then just importing that. Here's the specific steps:
04-04-2019 02:38 PM
I have tried to import all files that for this CLIP in one time. But there is also the same error. I have attached the VHD files. When it is possible, could you please see where the problem is?
And here is the error information:
04-04-2019 02:39 PM
Yeah, this CLIP will interface to sbRIO 9651.
04-04-2019 03:03 PM
Hello T-REX,
thanks for the reply. I think your solution is very worth trying. But I'm not very familiar with vivado. Could you please explain how to do the second step "Use DCP for synthesis file and generated VHD for simulation"?
04-04-2019 04:52 PM - edited 04-04-2019 05:01 PM
That part is actually in LabVIEW in the CLIP configuration dialog box. The Vivado part is to run the 3 commands that I listed in my first post. This is done in the TCL Console of your Vivado project.
synth_design -top your_top_module_name -part your_full_part_name -mode out_of_context
write_checkpoint -force -noxdef your_top_module_name.dcp
write_vhd -mode funcsim your_top_module_name.vhd
Once you have the file from steps 2 and 3, you can bring them into LabVIEW via the CLIP integration dialog. I'll reference the same image you put in your first post. Instead of selecting that vhd file, select the DCP generated by command 2, then click the set simulation behavior on the right to select the functional simulation model we generated in step 3 above.
If this isn't clear, let me know and I'll try to make some time to create a video running through this for a simple project.
Also, just for my benefit, what's your experience level with VHDL in general? Did you write this IP yourself, or find this IP online somewhere, or maybe someone else at your company wrote it?